public MessagerForm(ManagerForm manager, MessagerType m, string s) { InitializeComponent(); Options.ApplyTheme(this); _manager = manager; mode = m; msg.Text = s; if (mode == MessagerType.Info) { nobtn.Visible = false; yesbtn.Text = "OK"; this.AcceptButton = nobtn; this.AcceptButton = yesbtn; this.CancelButton = nobtn; this.CancelButton = yesbtn; } }
private void button4_Click(object sender, EventArgs e) { ManagerForm f = new ManagerForm(); f.ShowDialog(this); }