Exemplo n.º 1
0
        public MainViewModel(DClient client)
        {
            _client = client;
            // client.GetData += Client_GetData;
            StretchCommand = new ReallyCommand(StretchingExecute);

            // Инстализируем отдельный поток для обновления вилок
            //_thForksUpdate = new Thread(ForksUpdate) {IsBackground = true};
            //_thForksUpdate.Start();
        }
        public BookkeeperViewModel()
        {
            ShowCurrentCommand = new ReallyCommand(ShowCurrentExeute);
            ShowSumCommand     = new ReallyCommand(ShowSumExecute);
            DivCommand         = new ReallyCommand(DivExecute);
            SumCommand         = new ReallyCommand(SumExecute);
            SaveCommand        = new ReallyCommand(SaveExecute);
            ShowPanelCommand   = new ReallyCommand(ShowPanel);

            ShowLoginStyle = (Style)Application.Current.Resources["RoundCornerBlackInverse"];
            ShowBookStyle  = (Style)Application.Current.Resources["RoundCornerBlack"];
        }