Пример #1
0
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     t_Screen tNew =(t_Screen)cbScreen.SelectedItem;
     //MessageBox.Show(tNew.ScreenName);
     MonitorServers _DataContext = new MonitorServers();
     _DataContext.CopyScreenElement(tNew.ScreenID,_oldScreen.ScreenID);
     this.DialogResult = true;
 }
        public SetSinglePropertyDrawLine()
        {
            InitializeComponent();
            _dataContext = LoadScreen._DataContext;

            cbDeviceID.ItemsSource = _DataCV.t_Devices;
            cbDeviceID.DisplayMemberPath = "DeviceName";
        }
 public SetSingleProperty()
 {
     InitializeComponent();
     _dataContext = LoadScreen._DataContext;
     _DataCV = LoadScreen._DataCV;
     //cbDeviceID.ItemsSource = _dataContext.t_Devices;
     Devices = new ObservableCollection<t_Device>(_DataCV.t_Devices);
     cbDeviceID.DisplayMemberPath = "DeviceName";
     //查询
     this.DataContext = this;
 }
 public RealtimeProperty()
 {
     InitializeComponent();
     _dataContext = LoadScreen._DataContext;
     this.DataContext = this;
 }