Exemplo n.º 1
0
        /// <summary>
        /// Handles the Closed event of the Wizard control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void Wizard_Closed(object sender, EventArgs e)
        {
            SpecialRequestWizard wizSR = sender as SpecialRequestWizard;

            if (wizSR.HeaderId != System.Guid.Empty)
            {
                BindData();
                this.Update();
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the Click event of the btnAddNew control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void btnAddNew_Click(object sender, EventArgs e)
 {
     if (RT2020.DAL.Common.Utility.IsGUID(cboFromLocation.SelectedValue.ToString()))
     {
         SpecialRequestWizard wizSR = new SpecialRequestWizard();
         wizSR.FromLocation = new System.Guid(cboFromLocation.SelectedValue.ToString());
         wizSR.Closed      += new EventHandler(Wizard_Closed);
         wizSR.ShowDialog();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handles the DoubleClick event of the listView control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void listView_DoubleClick(object sender, EventArgs e)
 {
     if (listView.SelectedItem != null)
     {
         if (RT2020.DAL.Common.Utility.IsGUID(listView.SelectedItem.Text))
         {
             SpecialRequestWizard wizSR = new SpecialRequestWizard();
             wizSR.HeaderId = new System.Guid(listView.SelectedItem.Text);
             wizSR.Closed  += new EventHandler(Wizard_Closed);
             wizSR.ShowDialog();
         }
     }
 }