예제 #1
0
 //Medicine Stock Update Group --- Card 1
 private void UCMedicineUpdateLeftClick(object sender, RoutedEventArgs e)
 {
     //show new Medicine Batch entry dialoge
     if (ct.Ping())
     {
         if (MBEW == null)
         {
             MBEW = new MedicineBatchEntry();
             MBEW.ControlTheme = currntTheme;
             MBEW.Closing     += MBEW_Closing;
             OpendWindowElement opp3 = new OpendWindowElement("Stock/Batch Entry Window");
             opp3.ControlTheme      = currntTheme;
             opp3.closebtnHandaler += Opp3_closebtnHandaler;;
             opp3.showbtnHandaler  += Opp3_showbtnHandaler;;
             RegisterName("MBEW", opp3);
             OpenWindowNameHolder.Children.Add(opp3);
         }
         MBEW.Show();
         MBEW.WindowState = WindowState.Normal;
         MBEW.Focus();
     }
     else
     {
         MessageBox.Show("Not Connected!");
     }
 }
예제 #2
0
 private void MBEW_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (MBEW != null)
     {
         CloseBatchStockUpdateForm();
     }
     MBEW = null;
 }