Example #1
0
 //ListView Stock Update Group --- Card 1
 private void UCMedicineUpdateRightClick(object sender, RoutedEventArgs e)
 {
     if (ct.Ping())
     {
         if (MDLW == null)
         {
             MDLW              = new MedicineListWindow();
             MDLW.Closing     += MDLW_Closing;
             MDLW.ControlTheme = currntTheme;
             OpendWindowElement opp4 = new OpendWindowElement("Medicine List Window");
             opp4.ControlTheme      = currntTheme;
             opp4.closebtnHandaler += Opp4_closebtnHandaler;;
             opp4.showbtnHandaler  += Opp4_showbtnHandaler;;
             RegisterName("MDLW", opp4);
             OpenWindowNameHolder.Children.Add(opp4);
         }
         MDLW.Show();
         MDLW.WindowState = WindowState.Normal;
         MDLW.Focus();
     }
     else
     {
         MessageBox.Show("Not Connected!");
     }
 }
Example #2
0
 private void MDLW_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (MDLW != null)
     {
         CloseListForm();
     }
     MDLW = null;
 }