コード例 #1
0
 public FilterDialog()
 {
     InitializeComponent();
     tbFilter.Focus();
     _parentWindowViewModel = null;
 }
コード例 #2
0
 public FilterDialog(MainWindowViewModel parentWindowViewModel) : this()
 {
     _parentWindowViewModel = parentWindowViewModel;
     this.DataContext = _parentWindowViewModel;
 }
コード例 #3
0
 public AppendTextDialog(MainWindowViewModel parentWindowViewModel) : this()
 {
     _parentWindowViewModel = parentWindowViewModel;
     this.DataContext = _parentWindowViewModel;
 }
コード例 #4
0
		private void Window_Loaded(object sender, RoutedEventArgs e)
        {
			ViewModel = new MainWindowViewModel(this);
			DataContext = ViewModel;
        }
コード例 #5
0
 public MainWindow()
 {
     InitializeComponent();
     viewModel      = (MainWindowViewModel)base.DataContext;
     viewModel.View = this;
 }