Exemple #1
0
 public ConfigPreviews()
 {
     InitializeComponent();
     Icon = Resources.Icon_Vixen3;
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     this.ShowInTaskbar = false;
     _displayedController = null;
 }
 public ConfigPreviews()
 {
     InitializeComponent();
     _displayedController = null;
 }
        private void _PopulateFormWithController(OutputPreview oc)
        {
            _displayedController = oc;

            if(oc == null) {
                textBoxName.Text = "";
                buttonDeleteController.Enabled = false;
                groupBoxSelectedController.Enabled = false;
            } else {
                textBoxName.Text = oc.Name;
                buttonDeleteController.Enabled = true;
                groupBoxSelectedController.Enabled = true;
            }
        }
Exemple #4
0
 public ConfigPreviews()
 {
     InitializeComponent();
     Icon = Resources.Icon_Vixen3;
     _displayedController = null;
 }
Exemple #5
0
        private void _PopulateFormWithController(OutputPreview oc)
        {
            _displayedController = oc;

            if (oc == null) {
                textBoxName.Text = string.Empty;
                buttonDeleteController.Enabled = false;
                textBoxName.Enabled = false;
                buttonUpdate.Enabled = false;
                buttonUpdate.ForeColor = ThemeColorTable.ForeColorDisabled;
                buttonConfigureController.Enabled = false;
                buttonDeleteController.ForeColor = ThemeColorTable.ForeColorDisabled;
                buttonConfigureController.ForeColor = ThemeColorTable.ForeColorDisabled;
                label1.ForeColor = ThemeColorTable.ForeColorDisabled;
                label2.ForeColor = ThemeColorTable.ForeColorDisabled;
            }
            else {
                textBoxName.Text = oc.Name;
                buttonDeleteController.Enabled = true;
                textBoxName.Enabled = true;
                buttonUpdate.Enabled = true;
                buttonUpdate.ForeColor = ThemeColorTable.ForeColor;
                buttonConfigureController.Enabled = true;
                buttonDeleteController.ForeColor = ThemeColorTable.ForeColor;
                buttonConfigureController.ForeColor = ThemeColorTable.ForeColor;
                label1.ForeColor = ThemeColorTable.ForeColor;
                label2.ForeColor = ThemeColorTable.ForeColor;
            }
        }