Exemple #1
0
 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();
         }
     }
 }
Exemple #2
0
 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();
         }
     }
 }
Exemple #3
0
 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();
 }
Exemple #4
0
 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();
         }
     }
 }