示例#1
0
        //------------------------------------------

        public void ModeWorkForDevice(IModeOfWork sameDevice)
        {
            Console.WriteLine("Set mode of work for device: ");
            try
            {
                sameDevice.ChangeModeWork(Int32.Parse(Console.ReadLine()));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
示例#2
0
 //------------------------------------------
 public void ModeWorkForDevice(IModeOfWork sameDevice)
 {
     Console.WriteLine("Set mode of work for device: ");
     try
     {
         sameDevice.ChangeModeWork(Int32.Parse(Console.ReadLine()));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }