/// <summary>
 /// Creates an instance of <see cref="OutputStreamDeviceDigitalUserControl"/>
 /// </summary>
 public OutputStreamDeviceDigitalUserControl(int outputStreamDeviceID)
 {
     InitializeComponent();
     m_dataContext = new OutputStreamDeviceDigitals(outputStreamDeviceID, 5, true);
     this.DataContext = m_dataContext;
     m_dataContext.PropertyChanged += ViewModel_PropertyChanged;
     DataGridList.SelectionChanged += DataGridList_SelectionChanged;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an instance of <see cref="OutputStreamDeviceDigitalUserControl"/>
 /// </summary>
 public OutputStreamDeviceDigitalUserControl(int outputStreamDeviceID)
 {
     InitializeComponent();
     m_dataContext    = new OutputStreamDeviceDigitals(outputStreamDeviceID, 5, true);
     this.DataContext = m_dataContext;
     m_dataContext.PropertyChanged += ViewModel_PropertyChanged;
     DataGridList.SelectionChanged += DataGridList_SelectionChanged;
 }
Exemplo n.º 3
0
        private void HyperlinkButtonDigitals_Click(object sender, RoutedEventArgs e)
        {
            int    outputStreamDeviceId = Convert.ToInt32(((Button)sender).Tag.ToString());
            string acronym = ToolTipService.GetToolTip((Button)sender).ToString();  // ((HyperlinkButton)sender).Name;
            OutputStreamDeviceDigitals osdd = new OutputStreamDeviceDigitals(outputStreamDeviceId, acronym);

      #if SILVERLIGHT
            osdd.Show();
#else
            osdd.Owner = Window.GetWindow(this);
            osdd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            osdd.ShowDialog();
#endif
        }