Ejemplo n.º 1
0
 private void lvStaffSecurity_DoubleClick(object sender, EventArgs e)
 {
     if (lvStaffSecurity.SelectedItem != null)
     {
         SystemSecurityWizard wizSystemSecurity = new SystemSecurityWizard();
         wizSystemSecurity._SecurityId = Guid.Parse(lvStaffSecurity.SelectedItem.SubItems[0].Text);
         wizSystemSecurity._StaffId    = Guid.Parse(lvStaffSecurity.SelectedItem.SubItems[1].Text);
         wizSystemSecurity.Closed     += new EventHandler(wizSystemSecurity_Closed);
         wizSystemSecurity.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the ButtonClick event of the tbWizardAction control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Gizmox.WebGUI.Forms.ToolBarButtonClickEventArgs"/> instance containing the event data.</param>
 void tbWizardAction_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
 {
     if (e.Button.Tag != null)
     {
         switch (e.Button.Tag.ToString().ToLower())
         {
         case "Add":
             SystemSecurityWizard wizSystemSecurity = new SystemSecurityWizard();
             wizSystemSecurity.Closed += new EventHandler(wizSystemSecurity_Closed);
             wizSystemSecurity.ShowDialog();
             break;
         }
     }
 }