示例#1
0
        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
 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();
 }