Example #1
0
        public override void OnExecute(object sender)
        {
            var form = new WebLogForm()
            {
                Owner = Model.Window
            };

            form.Model.AppModel = Model;
            form.Model.Addin    = this;
            form.Show();
        }
Example #2
0
 public override void OnNotifyAddin(string command, object parameter)
 {
     if (command == "newweblogpost")
     {
         var form = new WebLogForm(WeblogModel)
         {
             Owner = Model.Window
         };
         form.Model.AppModel = Model;
         form.Show();
         form.TabControl.SelectedIndex = 1;
     }
 }
        public override void OnExecute(object sender)
        {
            // read settings on startup
            WeblogAddinConfiguration.Current.Read();

            var form = new WebLogForm()
            {
                Owner = Model.Window
            };

            form.Model.AppModel = Model;
            form.Model.Addin    = this;
            form.Show();
        }