private void LayoutOneandOpenNextWindow()
 {
     if (NoOfBedSelector.SelectedItem.ToString() == "10")
     {
         //string ICUID = "ICU004";
         ICU1Beds10Window obj1 = new ICU1Beds10Window();
         obj1.Show();
         this.Close();
     }
     else
     {
         //string ICUID = "ICU003";
         ICU1Beds12Window obj2 = new ICU1Beds12Window();
         obj2.Show();
         this.Close();
     }
 }
예제 #2
0
        private void LayoutOneandOpenNextWindow()
        {
            ICU1Beds10Window obj1 = new ICU1Beds10Window();
            ICU1Beds12Window obj2 = new ICU1Beds12Window();

            if (NoOfBedSelector.SelectedItem.ToString() == "10")
            {
                alertContext.ICUID = "IC001";
                obj1.Show();
                this.Close();
            }
            else
            {
                alertContext.ICUID = "IC002";
                obj2.Show();
                this.Close();
            }
        }