示例#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;
            }
        }
示例#2
0
        public InfoForm(string info)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

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

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

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

            dotter.Start();

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

            t.Start();
        }
示例#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;
            }
        }
示例#7
0
 private void limetheme_CheckedChanged(object sender, EventArgs e)
 {
     Options.CurrentOptions.Color = Theme.Lime;
     Options.ApplyTheme(this);
 }
示例#8
0
 private void carameltheme_CheckedChanged(object sender, EventArgs e)
 {
     Options.CurrentOptions.Color = Theme.Caramel;
     Options.ApplyTheme(this);
 }
示例#9
0
 public AboutForm()
 {
     InitializeComponent();
     Options.ApplyTheme(this);
 }
示例#10
0
 public HostsEditorForm()
 {
     InitializeComponent();
     Options.ApplyTheme(this);
 }