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; } }
public InfoForm(string info) { InitializeComponent(); Options.ApplyTheme(this); msg.Text = info; }
public MainForm() { InitializeComponent(); Options.ApplyTheme(this); columnSorter = new ListViewColumnSorter(); listStartupItems.ListViewItemSorter = columnSorter; }
public HostsEditorForm() { InitializeComponent(); Options.ApplyTheme(this); if (HostsHelper.GetReadOnly()) { savebtn.Enabled = false; } }
private void Helper_Load(object sender, EventArgs e) { CheckForIllegalCrossThreadCalls = false; Options.ApplyTheme(this); dotter.Start(); Task t = new Task(() => ApplyAll()); t.Start(); }
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; } }
private void limetheme_CheckedChanged(object sender, EventArgs e) { Options.CurrentOptions.Color = Theme.Lime; Options.ApplyTheme(this); }
private void carameltheme_CheckedChanged(object sender, EventArgs e) { Options.CurrentOptions.Color = Theme.Caramel; Options.ApplyTheme(this); }
public AboutForm() { InitializeComponent(); Options.ApplyTheme(this); }
public HostsEditorForm() { InitializeComponent(); Options.ApplyTheme(this); }