public ReportPrintControl()
 {
     InitializeComponent();
     NotificationToAlarm = new GenericInteractionRequest<AlarmInfo>();
    // DataContext = new ReportPrintViewModel(this);
     DataContext = new PrintTest(this,gvTest);
 }
예제 #2
0
        public Login()
        {
            InitializeComponent();
            NotificationToAlarm = new GenericInteractionRequest<AlarmInfo>();            
            DataContext = new LoginViewModel();
            PwdBox.KeyDown += (sender, e) => { if (e.Key == Key.Enter)logBtn_Click(null, null); };

        }
예제 #3
0
 public ShellViewModel(IEventAggregator eventAggregator, IConfigService configService)
 {
     _eventAggregator     = eventAggregator;
     _configService       = configService;
     _adminInfo           = _configService.AdminInfos;
     ConfigDisplayCommand = new DelegateCommand(ConfigDisplayExecuted);
     AdminLoginRequest    = new GenericInteractionRequest <AdminLoginNotification>();
     ConfigRequest        = new GenericInteractionRequest <ConfigNotification>();
     //注册消息
 }
        public ShellViewModel(IEventAggregator eventAggregator, IConfigService configService)
        {
            _eventAggregator = eventAggregator;
            _configService = configService;
            _adminInfo = _configService.AdminInfos;
            ConfigDisplayCommand = new DelegateCommand(ConfigDisplayExecuted);
            AdminLoginRequest = new GenericInteractionRequest<AdminLoginNotification>();
            ConfigRequest = new GenericInteractionRequest<ConfigNotification>();
            //注册消息

        }
 public FitActionControl(ObservableCollection<ItemDemo> ActionList)
 {
     InitializeComponent();
     NotificationToAlarm = new GenericInteractionRequest<AlarmInfo>();
     ControlIsEnabled(true);
     this.playBtn.imgStop.IsEnabled = false; //停止禁止使用
     playBtn.PlayClick += new EventHandler(playBtn_PlayClick);
     playBtn.PauseClick += new EventHandler(playBtn_PauseClick);
     playBtn.StopClick += new EventHandler(playBtn_StopClick);
     
     txtPrompt.Text = "提示信息";
 }
예제 #6
0
        public ActionControl(ObservableCollection<ItemDemo> ActionList)
        {
            InitializeComponent();
            NotificationToAlarm = new GenericInteractionRequest<AlarmInfo>();
            ControlIsEnabled(true);
            if (ActionList != null)
            {
                this.ActionList = ActionList;
                MyActionListBox.ItemsSource = ActionList;
                MyActionListBox.SelectedIndex = 0;

                if (ActionList.Count >= 2)
                {
                    this.txtNextAction.Text = ActionList[1].ActionName;
                }
            }
            this.playBtn.imgStop.IsEnabled = false; //停止禁止使用
            playBtn.PlayClick += new EventHandler(playBtn_PlayClick);
            playBtn.PauseClick += new EventHandler(playBtn_PauseClick);
            playBtn.StopClick += new EventHandler(playBtn_StopClick);
            playBtn.NextClick += new EventHandler(playBtn_NextClick);
            playBtn.PrevClick += new EventHandler(playBtn_PrevClick);
            setControlTimes.SelectChange += new EventHandler(SelectChange_Click);
            
            txtPrompt.Text = "提示信息";
            

        }