개정판 1c7f408a
mainWindow를 RadWindow로 변경
Change-Id: I0ac468f572b53cd39e832aed20e7d350b5c03d42
KCOM/Controls/PrintControl.xaml.cs | ||
---|---|---|
22 | 22 |
using iTextSharp.text.pdf; |
23 | 23 |
using Microsoft.Office.Core; |
24 | 24 |
using System.Net; |
25 |
using KCOM; |
|
25 | 26 |
|
26 | 27 |
namespace KCOM.Control |
27 | 28 |
{ |
... | ... | |
597 | 598 |
} |
598 | 599 |
|
599 | 600 |
SaveDig.Title = "Save an PDF File"; |
600 |
if(SaveDig.ShowDialog().Value) |
|
601 |
var mainwindow = (RadWindowManager.Current.GetWindows().Find(x => x is MainWindow) as MainWindow); |
|
602 |
|
|
603 |
if (SaveDig.ShowDialog().Value) |
|
601 | 604 |
{ |
602 | 605 |
Printimg_List = new Dictionary<int, System.Drawing.Image>(); |
603 | 606 |
|
... | ... | |
688 | 691 |
})); |
689 | 692 |
PageChanged(_StartPageNo); |
690 | 693 |
|
691 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.DialogMessage_Alert("Success", "Alert");
|
|
694 |
(RadWindowManager.Current.GetWindows().Find(x=>x is MainWindow) as MainWindow).dzMainMenu.DialogMessage_Alert("Success", "Alert");
|
|
692 | 695 |
}else |
693 | 696 |
{ |
694 | 697 |
Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(delegate |
... | ... | |
696 | 699 |
printIndy.IsBusy = false; |
697 | 700 |
})); |
698 | 701 |
|
699 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.DialogMessage_Alert("Cancel", "Alert");
|
|
702 |
mainwindow.dzMainMenu.DialogMessage_Alert("Cancel", "Alert");
|
|
700 | 703 |
} |
701 | 704 |
} |
702 | 705 |
catch (Exception ex) |
내보내기 Unified diff