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"); }; }
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); } }; }