Пример #1
0
        public void ShowView()
        {
            Msa961AnalogTableView energomeraAnalogTableView = new Msa961AnalogTableView();


            CurrentA = null;
            CurrentB = null;
            CurrentC = null;
            VoltageA = null;
            VoltageB = null;
            VoltageC = null;



            _nalogWnd = new Window
            {
                Owner   = Application.Current.MainWindow,
                Content = energomeraAnalogTableView,
                // Title = String.Format("Показания {0}", this.DeviceName),
                ResizeMode    = ResizeMode.CanMinimize,
                SizeToContent = SizeToContent.Height,
                Width         = 275
            };
            _nalogWnd.DataContext = this;
            _analogTimerInterrogation.StartInterrogation();
            _analogTimerInterrogation.InterrogationCycleComplete += () =>
            {
                Update();
            };
            _nalogWnd.Closing += (o, e) =>
            {
                _analogTimerInterrogation.StopInterrogation();
            };
            _nalogWnd.Show();
        }