Example #1
0
        private void ShowPalette()
        {
            if (PaletteSet == null)
            {
                PaletteSet = new PaletteSet("Notches")
                {
                    DockEnabled = DockSides.None,

                    Size        = new Size(270, 400),
                    MinimumSize = new Size(270, 300)
                };

                var plugin     = new NotchesPlugin();
                var paramsView = new UI.ParamsView {
                    DataContext = plugin.Params
                };

                var host = new System.Windows.Forms.Integration.ElementHost();
                host.AutoSize = true;
                host.Dock     = System.Windows.Forms.DockStyle.Fill;
                host.Child    = paramsView;

                PaletteSet.Add("ParamsView ElementHost", host);

                plugin.Init();
            }

            PaletteSet.KeepFocus = true;
            PaletteSet.Visible   = true;
        }
Example #2
0
 public UpdateDestinationNotchesCommand(NotchesPlugin plugin)
 {
     this.plugin = plugin;
 }
Example #3
0
 public ReadSelectionCommand(NotchesPlugin plugin)
 {
     this.plugin = plugin;
 }