コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: JoeGilkey/RadioLog
        private void dtEditRadio_Click(object sender, RoutedEventArgs e)
        {
            FrameworkElement fe = sender as FrameworkElement;

            if (fe == null || fe.Tag == null)
            {
                return;
            }
            ViewModels.RadioSignalItemModel radioModel = fe.Tag as ViewModels.RadioSignalItemModel;
            if (radioModel == null)
            {
                return;
            }
            Windows.SingleRadioEditorWindow editor = new Windows.SingleRadioEditorWindow(radioModel);
            editor.ShowDialog();
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: JoeGilkey/RadioLog
 private void dtEditRadio_Click(object sender, RoutedEventArgs e)
 {
     FrameworkElement fe = sender as FrameworkElement;
     if (fe == null || fe.Tag == null)
         return;
     ViewModels.RadioSignalItemModel radioModel = fe.Tag as ViewModels.RadioSignalItemModel;
     if (radioModel == null)
         return;
     Windows.SingleRadioEditorWindow editor = new Windows.SingleRadioEditorWindow(radioModel);
     editor.ShowDialog();
 }