Example #1
0
        public MessagerForm(MainForm main, MessagerType m, string s)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            _main    = main;
            mode     = m;
            msg.Text = s;

            if (mode == MessagerType.Error)
            {
                nobtn.Visible = false;
                yesbtn.Text   = "OK";

                this.AcceptButton = nobtn;
                this.AcceptButton = yesbtn;
                this.CancelButton = nobtn;
                this.CancelButton = yesbtn;
            }
            if (mode == MessagerType.Optimize)
            {
                chkPrint.Checked   = true;
                chkPrint.Visible   = true;
                chkSensors.Checked = false;
                chkSensors.Visible = true;
            }
        }
Example #2
0
        public InfoForm(string info)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            msg.Text = info;
        }
Example #3
0
        public MainForm()
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            columnSorter = new ListViewColumnSorter();
            listStartupItems.ListViewItemSorter = columnSorter;
        }
Example #4
0
        public HostsEditorForm()
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            if (HostsHelper.GetReadOnly())
            {
                savebtn.Enabled = false;
            }
        }
Example #5
0
        private void Helper_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
            Options.ApplyTheme(this);

            dotter.Start();

            Task t = new Task(() => ApplyAll());

            t.Start();
        }
Example #6
0
        internal HelperForm(MainForm main, MessageType m, string text)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            _main = main;
            _type = m;

            lblMessage.Text = text;

            if (_type == MessageType.Error)
            {
                btnNo.Visible = false;
                btnYes.Text   = "OK";

                this.AcceptButton = btnNo;
                this.AcceptButton = btnYes;
                this.CancelButton = btnNo;
                this.CancelButton = btnYes;
            }
        }
Example #7
0
 private void limetheme_CheckedChanged(object sender, EventArgs e)
 {
     Options.CurrentOptions.Color = Theme.Lime;
     Options.ApplyTheme(this);
 }
Example #8
0
 private void carameltheme_CheckedChanged(object sender, EventArgs e)
 {
     Options.CurrentOptions.Color = Theme.Caramel;
     Options.ApplyTheme(this);
 }
Example #9
0
 public AboutForm()
 {
     InitializeComponent();
     Options.ApplyTheme(this);
 }
Example #10
0
 public HostsEditorForm()
 {
     InitializeComponent();
     Options.ApplyTheme(this);
 }