示例#1
0
 public ControlUI(object app)
 {
     InitializeComponent();
     try
     {
         this.corelApp    = app as corel.Application;
         stylesController = new Styles.StylesController(this.Resources, this.corelApp);
     }
     catch
     {
         global::System.Windows.MessageBox.Show("VGCore Erro");
     }
     btn_Command.Click += (s, e) => { corelApp.MsgShow("Working"); };
 }
示例#2
0
 public ControlUI(object app)
 {
     InitializeComponent();
     try
     {
         this.corelApp = app as corel.Application;
         this.corelApp.OnApplicationEvent += CorelApp_OnApplicationEvent;
     }
     catch (Exception)
     {
         global::System.Windows.MessageBox.Show("VGCore Erro");
     }
     btn_Command.Click += (s, e) => { corelApp.MsgShow("Working"); };
 }
 public ControlUI(object app)
 {
     InitializeComponent();
     try
     {
         this.corelApp    = app as corel.Application;
         stylesController = new Styles.StylesController(this.Resources, this.corelApp);
     }
     catch
     {
         global::System.Windows.MessageBox.Show("VGCore Erro");
     }
     btn_Command.Click += (s, e) => {
         ColorPicker c = new ColorPicker(corelApp.ActivePalette);
         if ((bool)c.ShowDialog())
         {
             corelApp.MsgShow(c.SelectedColor.CorelColorName);
         }
     };
 }