private void CreateTextBox(int rowHeight, PluginConfigItem item)
        {
            TextBox textbox = new TextBox();

            textbox.Margin            = new Thickness(130, rowHeight, 10, 0);
            textbox.Text              = item.Value;
            textbox.VerticalAlignment = VerticalAlignment.Top;
            textbox.Tag = item.Name;
            ConfigurationItems.Children.Add(textbox);
            mControls.Add(textbox);
        }
        private void CreateBoolean(int rowHeight, PluginConfigItem item)
        {
            CheckBox checkBox = new CheckBox();

            checkBox.Margin              = new Thickness(130, rowHeight + 5, 0, 0);
            checkBox.VerticalAlignment   = VerticalAlignment.Top;
            checkBox.HorizontalAlignment = HorizontalAlignment.Left;
            checkBox.IsChecked           = Boolean.Parse(item.Value);
            checkBox.Tag = item.Name;
            ConfigurationItems.Children.Add(checkBox);
            mControls.Add(checkBox);
        }
        private void CreateFileChooser(int rowHeight, PluginConfigItem item)
        {
            TextBox textbox = new TextBox();

            textbox.Margin            = new Thickness(130, rowHeight, 110, 0);
            textbox.Text              = item.Value;
            textbox.VerticalAlignment = VerticalAlignment.Top;
            textbox.Tag = item.Name;
            ConfigurationItems.Children.Add(textbox);
            mControls.Add(textbox);

            Button btnSelectFile = new Button();

            btnSelectFile.Click              += new RoutedEventHandler(btnSelectFile_Click);
            btnSelectFile.Content             = UI.Select;
            btnSelectFile.VerticalAlignment   = VerticalAlignment.Top;
            btnSelectFile.HorizontalAlignment = HorizontalAlignment.Right;
            btnSelectFile.Margin              = new Thickness(0, rowHeight, 10, 0);
            btnSelectFile.Width               = 75;
            btnSelectFile.Tag = textbox;
            ConfigurationItems.Children.Add(btnSelectFile);
        }
        private void CreateFolderSelect(int rowHeight, PluginConfigItem item)
        {
            TextBox textbox = new TextBox();

            textbox.Margin            = new Thickness(130, rowHeight, 145, 0);
            textbox.Text              = item.Value;
            textbox.VerticalAlignment = VerticalAlignment.Top;
            textbox.Tag = item.Name;
            ConfigurationItems.Children.Add(textbox);
            mControls.Add(textbox);

            Button btnSelectFolder = new Button();

            btnSelectFolder.Click              += new RoutedEventHandler(btnSelectFolder_Click);
            btnSelectFolder.Content             = UI.Browse;
            btnSelectFolder.VerticalAlignment   = VerticalAlignment.Top;
            btnSelectFolder.HorizontalAlignment = HorizontalAlignment.Right;
            btnSelectFolder.Margin              = new Thickness(0, rowHeight, 10, 0);
            btnSelectFolder.Width               = 125;
            btnSelectFolder.Tag = textbox;
            ConfigurationItems.Children.Add(btnSelectFolder);
        }
Example #5
0
 public void ClosePlugin(PluginConfigItem thePlugin, IPluginContext context)
 {
 }
Example #6
0
 public void ShowPlugin(PluginConfigItem thePlugin, IPluginContext context)
 {
     System.Windows.Forms.MessageBox.Show("I am do nothing here....");
 }
Example #7
0
 public void InitPlugin(PluginConfigItem thePlugin, IPluginContext context)
 {
 }
Example #8
0
        public void ShowPlugin(PluginConfigItem thePlugin, IPluginContext context)
        {
            HelloWorldPluginForm helloWorld = new HelloWorldPluginForm();

            helloWorld.ShowDialog();
        }
 private void CreateTextBox(int rowHeight, PluginConfigItem item)
 {
     TextBox textbox = new TextBox();
     textbox.Margin = new Thickness(130, rowHeight, 10, 0);
     textbox.Text = item.Value;
     textbox.VerticalAlignment = VerticalAlignment.Top;
     textbox.Tag = item.Name;
     ConfigurationItems.Children.Add(textbox);
     mControls.Add(textbox);
 }
        private void CreateFolderSelect(int rowHeight, PluginConfigItem item)
        {
            TextBox textbox = new TextBox();
            textbox.Margin = new Thickness(130, rowHeight, 110, 0);
            textbox.Text = item.Value;
            textbox.VerticalAlignment = VerticalAlignment.Top;
            textbox.Tag = item.Name;
            ConfigurationItems.Children.Add(textbox);
            mControls.Add(textbox);

            Button btnSelectFolder = new Button();
            btnSelectFolder.Click += new RoutedEventHandler(btnSelectFolder_Click);
            btnSelectFolder.Content = "Browse";
            btnSelectFolder.VerticalAlignment = VerticalAlignment.Top;
            btnSelectFolder.HorizontalAlignment = HorizontalAlignment.Right;
            btnSelectFolder.Margin = new Thickness(0, rowHeight, 10, 0);
            btnSelectFolder.Width = 75;
            btnSelectFolder.Tag = textbox;
            ConfigurationItems.Children.Add(btnSelectFolder);
        }
 private void CreateBoolean(int rowHeight, PluginConfigItem item)
 {
     CheckBox checkBox = new CheckBox();
     checkBox.Margin = new Thickness(130, rowHeight + 5, 0, 0);
     checkBox.VerticalAlignment = VerticalAlignment.Top;
     checkBox.HorizontalAlignment = HorizontalAlignment.Left;
     checkBox.IsChecked = Boolean.Parse(item.Value);
     checkBox.Tag = item.Name;
     ConfigurationItems.Children.Add(checkBox);
     mControls.Add(checkBox);
 }