Пример #1
0
        public void lockUI(LOCK_STATE lockState)
        {
            switch (lockState)
            {
            case LOCK_STATE.RECORDING:
                RecButtons = false;
                Stop       = true;
                BarColor   = new SolidColorBrush(Colors.Red);
                break;

            case LOCK_STATE.PPREC:
                recButtons = false;
                Stop       = true;
                BarColor   = new SolidColorBrush(Colors.Orange);
                break;

            case LOCK_STATE.ALL:
                RecButtons = false;
                Stop       = false;
                BarColor   = new SolidColorBrush(Colors.Orange);
                break;

            case LOCK_STATE.NONE:
                RecButtons = true;
                Stop       = false;
                BarColor   = new SolidColorBrush(Color.FromArgb(255, 0, 148, 80));
                break;

            default:
                RecButtons = false;
                Stop       = false;
                BarColor   = new SolidColorBrush(Color.FromArgb(255, 0, 148, 80));
                break;
            }
        }
Пример #2
0
 public void lockUI(LOCK_STATE lockState)
 {
     switch (lockState)
     {
         case LOCK_STATE.RECORDING:
             RecButtons = false;
             Stop = true;
             BarColor = new SolidColorBrush(Colors.Red);
             break;
         case LOCK_STATE.PPREC:
             recButtons = false;
             Stop = true;
             BarColor = new SolidColorBrush(Colors.Orange);
             break;
         case LOCK_STATE.ALL:
             RecButtons = false;
             Stop = false;
             BarColor = new SolidColorBrush(Colors.Orange);
             break;
         case LOCK_STATE.NONE:
             RecButtons = true;
             Stop = false;
             BarColor = new SolidColorBrush(Color.FromArgb(255, 0, 148, 80));
             break;
         default:
             RecButtons = false;
             Stop = false;
             BarColor = new SolidColorBrush(Color.FromArgb(255, 0, 148, 80));
             break;
     }
 }