public TrainPropertiesDlg(TISMonitor.Train t, List<string> possibleTrainIds, Uri u, bool enable) { this.InitializeComponent(); this.OKButton.Focus(); this.m_enable = enable; this.m_train = t; base.Title = string.Format("Zug '{0}' Eigenschaften", this.m_train.ID); this.hyperlinkButton.set_TargetName("_blank"); this.hyperlinkButton.set_NavigateUri(u); this.comboBoxTrainNumbers.set_ItemsSource(possibleTrainIds); this.comboBoxTrainNumbers.set_SelectedItem(this.m_train.ID); this.checkBoxGoodsTrain.set_IsChecked(new bool?(this.m_train.Locomotive)); this.textBoxTrainDescription.set_Text(this.m_train.Description); if (!this.m_enable) { this.comboBoxTrainNumbers.set_IsEnabled(false); this.textBoxTrainDescription.set_IsEnabled(false); this.checkBoxGoodsTrain.set_IsEnabled(false); this.OKButton.set_IsEnabled(false); } }
public ElementClickEventArgs(TISMonitor.Element el, System.Windows.Point pt, System.Windows.Input.MouseEventArgs mea) { this.Element = el; this.Point = pt; this.MouseEventArgs = mea; }