Beispiel #1
0
 public IntensiveSignControl()
 {
     InitializeComponent();
     _intensiveSignModel = new IntensiveSignViewModel();
     this.DataContext    = _intensiveSignModel;
     VitalSignsControl1.MoveXAxisAction = (sender, xMove) =>
     {
         dateAxis1.MoveXAxis(xMove);
     };
     dateAxis1.DrawTimeProcessAction = (time) =>
     {
         VitalSignsControl1.DrawTimeProcess(time);
     };
     timer.Tick    += new EventHandler(timer_Tick);
     timer.Interval = TimeSpan.FromSeconds(30);
     timer.Start();
 }
Beispiel #2
0
 public TestWindow()
 {
     InitializeComponent();
     this.DataContext = new TestViewModel();
     // this.DataContext = new DrugGraphViewModel();
     graph1.MoveXAxisAction = (sender, xMove) =>
     {
         dateAxis1.MoveXAxis(xMove);
         VitalSignsControl1.MoveXAxis(xMove);
     };
     VitalSignsControl1.MoveXAxisAction = (sender, xMove) =>
     {
         dateAxis1.MoveXAxis(xMove);
         graph1.MoveXAxis(xMove);
     };
     dateAxis1.DrawTimeProcessAction = (time) =>
     {
         graph1.DrawTimeProcess(time);
         VitalSignsControl1.DrawTimeProcess(time);
     };
 }
Beispiel #3
0
        /// <summary>
        /// 无参构造
        /// </summary>
        public InOperationWindow()
        {
            InitializeComponent();

            inOperationViewModel             = new InOperationViewModel();
            drugGraphViewModel               = new DrugGraphViewModel();
            vitalSignYAxisViewModel          = new VitalSignYAxisViewModel();
            inOperationViewModel.IsResueShow = Visibility.Collapsed;
            //注册消息
            RegisterKeyBoardMessage();
            // 绑定关闭事件
            this.Closing                  += this.InOperationWindow_Closing;
            this.DataContext               = inOperationViewModel;
            graph1.DataContext             = drugGraphViewModel;
            VitalSignsControl1.DataContext = vitalSignYAxisViewModel;
            dateAxis1.DataContext          = vitalSignYAxisViewModel;

            graph1.MoveXAxisAction = (sender, xMove) =>
            {
                dateAxis1.MoveXAxis(xMove);
                VitalSignsControl1.MoveXAxis(xMove);
            };
            VitalSignsControl1.MoveXAxisAction = (sender, xMove) =>
            {
                dateAxis1.MoveXAxis(xMove);
                graph1.MoveXAxis(xMove);
            };
            dateAxis1.DrawTimeProcessAction = (time) =>
            {
                graph1.DrawTimeProcess(time);
                VitalSignsControl1.DrawTimeProcess(time);
            };

            //this.Unloaded += (sender, e) => Messenger.Default.Unregister(this);
            timer.Tick    += new EventHandler(timer_Tick);
            timer.Interval = TimeSpan.FromSeconds(30);
            timer.Start();
        }