Example #1
0
 private void buttonExtend_Click(object sender, System.EventArgs e)
 {
     if (buttonExtend.Text == eLePhantForm.Globalization["LBL_CANCEL"])
     {
         if (tabSearchs.SelectedIndex >= 0)
         {
             m_OnEndSearch((int)tabSearchs.TabPages[tabSearchs.SelectedIndex].Tag);
         }
         if (tabSearchs.SelectedIndex >= 0)
         {
             krnGateway.CancelSearch((int)tabSearchs.TabPages[tabSearchs.SelectedIndex].Tag);
         }
     }
     else
     {
         if (tabSearchs.SelectedIndex >= 0)
         {
             krnGateway.ExtendSearch((int)tabSearchs.TabPages[tabSearchs.SelectedIndex].Tag);
         }
     }
 }