Beispiel #1
0
 void HyperlinkButtonPhasors_Click(object sender, RoutedEventArgs e)
 {
     int deviceId = Convert.ToInt32(((HyperlinkButton)sender).Tag.ToString());
     string acronym = ((HyperlinkButton)sender).Name;
     Phasors phasors = new Phasors(deviceId, acronym);
     phasors.Show();
 }
 void HyperlinkButtonPhasors_Click(object sender, RoutedEventArgs e)
 {
     int deviceId = Convert.ToInt32(((Button)sender).Tag.ToString());
     string acronym = ToolTipService.GetToolTip((Button)sender).ToString();
     Phasors phasors = new Phasors(deviceId, acronym);
     #if SILVERLIGHT
     phasors.Show();
     #else
     phasors.Owner = Window.GetWindow(this);
     phasors.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     phasors.ShowDialog();
     #endif
 }