public void OpenDataView() { //localに一応保存。次回にデータベースと差異がある場合更新 mycontrol.Output(); AnalizeViewModel viewModel = new AnalizeViewModel(mycontrol); Analize view = new Analize(viewModel); view.Owner = Application.Current.MainWindow; view.ShowDialog(); //統計データ表示画面 }
public Analize(AnalizeViewModel viewModel) { InitializeComponent(); myviewmodel = viewModel; this.DataContext = myviewmodel; }