Exemplo n.º 1
0
        public View_LDI()
        {
            InitializeComponent();

            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1.0);
            timer.Tick    += (s, e) => sec++;


            timerSS             = new DispatcherTimer();
            timerSS.Interval    = TimeSpan.FromSeconds(1.0);
            VM_Bvk              = this.ds.DataContext as ViewModel.ViewModel_LDI;
            this.ds.DataContext = null;
            timerSS.Tick       += new EventHandler(delegate(object s, EventArgs a)
            {
                Ssec++;
                ShowRast(Ssec);
            });
        }
Exemplo n.º 2
0
        private void Button_ClickISX(object sender, System.Windows.RoutedEventArgs e)
        {
            FirstZamer = false;
            this.Tochki_Copy.Content = 1;
            timer.Stop();
            sec    = 0;
            VM_Bvk = new ViewModel.ViewModel_LDI();


            if ((bool)checkBox1.IsChecked)
            {
                ds.DataContext = VM_Bvk;
            }

            timerSS.Stop();
            Ssec = 0;

            // TODO: Add event handler implementation here.
        }
Exemplo n.º 3
0
        private void checkBox1_Click(object sender, RoutedEventArgs e)
        {
            timerSS.Stop();
            Ssec = 0;
            timer.Stop();
            sec = 0;

            if ((bool)checkBox1.IsChecked)
            {
                VM_Bvk = new ViewModel.ViewModel_LDI();
                this.ds.DataContext = VM_Bvk;
                //var dc = this.ds.DataContext as ViewModel.ViewModel_LDI;
                VM_Bvk.CmdISX.Execute(0);
            }
            else
            {
                this.ds.DataContext = null;
            }
        }
Exemplo n.º 4
0
        public View_LDI()
        {
            InitializeComponent();

            var i = new Inv(new KeyEventHandler(UserControl_KeyDown));

            Application.Current.MainWindow.PreviewKeyDown += i.EventHandler;

            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1.0);
            timer.Tick    += (s, e) => sec++;


            timerSS             = new DispatcherTimer();
            timerSS.Interval    = TimeSpan.FromSeconds(1.0);
            VM_Bvk              = this.ds.DataContext as ViewModel.ViewModel_LDI;
            this.ds.DataContext = null;
            timerSS.Tick       += new EventHandler(delegate(object s, EventArgs a)
            {
                Ssec++;
                ShowRast(Ssec);
            });
        }