개정판 3908a575
issue #926: fixed page change logic
Change-Id: If039ebecb0b06e996ca13be190f7aeb82e85ece4
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
1224 | 1224 |
{ |
1225 | 1225 |
try |
1226 | 1226 |
{ |
1227 |
|
|
1228 | 1227 |
var instanceMain = this.ParentOfType<MainWindow>(); |
1229 | 1228 |
var max = instanceMain.dzMainMenu.pageNavigator._thumbnailItems.Max(f => f.PageNumber); |
1230 | 1229 |
if (string.IsNullOrEmpty(tlcurrentPage.Text)) |
... | ... | |
1295 | 1294 |
} |
1296 | 1295 |
} |
1297 | 1296 |
|
1298 |
|
|
1297 |
/// <summary> |
|
1298 |
/// 입력한 페이지로 이동한다 |
|
1299 |
/// </summary> |
|
1300 |
/// <param name="sender"></param> |
|
1301 |
/// <param name="e"></param> |
|
1299 | 1302 |
private void tlcurrentPage_readonly_KeyDown(object sender, KeyEventArgs e) |
1300 | 1303 |
{ |
1301 |
//강인구 추가 tlcurrentPage을 이상하게 입력할수 있기때문에 Try Catch |
|
1302 | 1304 |
if (e.Key == Key.Enter) |
1303 | 1305 |
{ |
1304 | 1306 |
try |
... | ... | |
1316 | 1318 |
Content = "페이지 번호를 정확하게 입력해 주세요", |
1317 | 1319 |
}); |
1318 | 1320 |
} |
1319 |
|
|
1320 | 1321 |
} |
1321 | 1322 |
} |
1322 | 1323 |
|
1323 |
|
|
1324 |
//public event EventHandler<WindowClosedEventArgs> Closed; |
|
1325 |
|
|
1326 |
//private void CheckEvent(object sender, RoutedEventArgs e) |
|
1327 |
//{ |
|
1328 |
// RadWindow CheckPop = new RadWindow(); |
|
1329 |
// test check = new test(); |
|
1330 |
|
|
1331 |
// CheckPop = new RadWindow |
|
1332 |
// { |
|
1333 |
// Width = 1700, |
|
1334 |
// Height = 510, |
|
1335 |
// Header = "My Check List", |
|
1336 |
// Content = check, |
|
1337 |
// Owner = this, |
|
1338 |
// ResizeMode = System.Windows.ResizeMode.NoResize, |
|
1339 |
// WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen, |
|
1340 |
// }; |
|
1341 |
// StyleManager.SetTheme(CheckPop, new VisualStudio2013Theme()); |
|
1342 |
|
|
1343 |
// CheckPop.Closed += CheckPop_Closed; |
|
1344 |
// CheckPop.ShowDialog(); |
|
1345 |
//} |
|
1346 |
|
|
1347 | 1324 |
private void PanoramaEvent(object sender, RoutedEventArgs e) |
1348 | 1325 |
{ |
1349 | 1326 |
PanoramaShow(); |
... | ... | |
1658 | 1635 |
var instance = instanceMain.dzMainMenu.CurrentDoc.docInfo.DOCPAGE.Where(p => p.PAGE_NUMBER == instanceMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber).FirstOrDefault(); |
1659 | 1636 |
instance.PAGE_ANGLE = int.Parse(instanceMain.dzMainMenu.rotate.Angle.ToString()); |
1660 | 1637 |
|
1661 |
instanceMain.dzMainMenu.pageNavigator.setPageChange(data);
|
|
1638 |
instanceMain.dzMainMenu.pageNavigator.GotoPage(data.PageNumber);
|
|
1662 | 1639 |
|
1663 | 1640 |
//rotation page add or update |
1664 | 1641 |
var rotationdoc = ViewerDataModel.Instance.RotationDocs.Where(d => d.ID == instance.ID).FirstOrDefault(); |
내보내기 Unified diff