/// <summary>
 /// Creates an instance of <see cref="OutputStreamDevicePhasorUserControl"/> class.
 /// </summary>
 public OutputStreamDevicePhasorUserControl(int outputStreamDeviceID)
 {
     InitializeComponent();
     m_dataContext = new OutputStreamDevicePhasors(outputStreamDeviceID, 20, true);
     m_dataContext.PropertyChanged += ViewModel_PropertyChanged;
     this.DataContext = m_dataContext;
 }
예제 #2
0
 /// <summary>
 /// Creates an instance of <see cref="OutputStreamDevicePhasorUserControl"/> class.
 /// </summary>
 public OutputStreamDevicePhasorUserControl(int outputStreamDeviceID)
 {
     InitializeComponent();
     m_dataContext = new OutputStreamDevicePhasors(outputStreamDeviceID, 20, true);
     m_dataContext.PropertyChanged += ViewModel_PropertyChanged;
     this.DataContext = m_dataContext;
 }
예제 #3
0
        private void HyperlinkButtonPhasors_Click(object sender, RoutedEventArgs e)
        {
            int    outputStreamDeviceId = Convert.ToInt32(((Button)sender).Tag.ToString());
            string acronym = ToolTipService.GetToolTip((Button)sender).ToString();  // ((HyperlinkButton)sender).Name;
            OutputStreamDevicePhasors osdp = new OutputStreamDevicePhasors(outputStreamDeviceId, acronym);

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