private void btnSmtp_Click(object sender, EventArgs e) { using (DialogForm df = new DialogForm()) { df.Text = Translation.General.SetStmp; using (var smtp = new _ucSmtp()) { df.mainPanel.Controls.Add(smtp); df.ShowDialog(); } } }
private void btnRegister_Click(object sender, EventArgs e) { using (DialogForm df = new DialogForm()) { df.Text = Translation.General.RegisterUser; using (var register = new _ucRegister()) { df.mainPanel.Controls.Add(register); df.ShowDialog(); } } }
private void btnAddTrigger_Click(object sender, EventArgs e) { using (DialogForm df = new DialogForm()) { df.Text = Translation.General.AddTrigger; using (var trigger = new _ucAddTrigger()) { df.mainPanel.Controls.Add(trigger); df.ShowDialog(); } } FillOlv(); }
private void olvUsers_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e) { using (DialogForm df = new DialogForm()) { df.Text = Translation.General.ChangePassword; df.Text = string.Empty; LoginModel model = e.Model as LoginModel; using (var pass = new _ucChangePass(model.Login)) { df.mainPanel.Controls.Add(pass); df.ShowDialog(); } } }