public BatchControlViewModel(BookInfoViewModel bookInfoVM) { this.bookInfoVM_ = bookInfoVM_; this.loadBookInfo(); //this.ReferenceDate_ = DateTime.Now; }
public InstrumentExplorerViewModel(MainWindow mainWindow, BookInfoViewModel bookInfoVM) { this.bookInfoVM_ = bookInfoVM; this.loadBookInfo(); this.view_ = new ExplorerBookInstView(mainWindow, bookInfoVM_); this.view_.DataContext = this; }
public InstrumentExplorerViewModel(MainWindow mainWindow,BookInfoViewModel bookInfoVM) { this.bookInfoVM_ = bookInfoVM; this.loadBookInfo(); this.view_ = new ExplorerBookInstView(mainWindow, bookInfoVM_); this.view_.DataContext = this; }
private void BookListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { //argument 변환 BookManagerView bookManagerView = sender as BookManagerView; if (bookManagerView != null) { BookInfoViewModel selectedBookVM = bookManagerView.BookListDataGrid_.SelectedItem as BookInfoViewModel; if (selectedBookVM != null) { //this.viewModel_ = new MainWindowViewModel(selectedBookVM); //ExplorerPortfolio_.Children.Add(layoutAnch); this.initialize(selectedBookVM); this.DocumentPane_.Children.Clear(); //this.StartDocument_.Close(); } } //if (this.instExView_ == null) //{ //} //else //{ // this.instExView_.IsVisible = true; //} }
private void initialize(BookInfoViewModel bookInfoVM) { //instExView_ = new ExplorerBookInstView(this, bookInfoVM); this.viewModel_ = new MainWindowViewModel(this, bookInfoVM); LayoutAnchorable layoutAnch = new LayoutAnchorable(); layoutAnch.Content = this.viewModel_.ExplorerBookInstVM_.View_; ExplorerPortfolio_.Children.Add(layoutAnch); }
public InstrumentExplorerViewCtrl(MainWindow mainWindow , BookInfoViewModel bookInfoVM) { InitializeComponent(); this.mainWindow_ = mainWindow; InstExViewModel_ = new InstrumentExplorerViewModel(mainWindow,bookInfoVM); ExplorerListView_.DataContext = InstExViewModel_; ExplorerListView_.ItemsSource = InstExViewModel_.InstHierarchyList_; //ExplorerListView_.Height = mainWindow.DocumentPane_.DockHeight.Value; OutputLogViewModel.addResult(new MessageOutput("Explore Load Complete")); }
public ExplorerBookInstView(MainWindow mainWindow, BookInfoViewModel bookInfoVM) { InitializeComponent(); this.mainWindow_ = mainWindow; //InstExViewModel_ = new InstrumentExplorerViewModel(mainWindow,bookInfoVM); this.DataContextChanged += new DependencyPropertyChangedEventHandler(ViewModelChanged); //ExplorerListView_.Height = mainWindow.DocumentPane_.DockHeight.Value; OutputLogViewModel.addResult(new MessageOutput("Explore Load Complete")); }
public InstrumentExplorerViewCtrl(MainWindow mainWindow, BookInfoViewModel bookInfoVM) { InitializeComponent(); this.mainWindow_ = mainWindow; InstExViewModel_ = new InstrumentExplorerViewModel(mainWindow, bookInfoVM); ExplorerListView_.DataContext = InstExViewModel_; ExplorerListView_.ItemsSource = InstExViewModel_.InstHierarchyList_; //ExplorerListView_.Height = mainWindow.DocumentPane_.DockHeight.Value; OutputLogViewModel.addResult(new MessageOutput("Explore Load Complete")); }
private void initialize(BookInfoViewModel bookInfoVM) { //instExView_ = new ExplorerBookInstView(this, bookInfoVM); this.viewModel_ = new MainWindowViewModel(this,bookInfoVM); LayoutAnchorable layoutAnch = new LayoutAnchorable(); layoutAnch.Content = this.viewModel_.ExplorerBookInstVM_.View_; ExplorerPortfolio_.Children.Add(layoutAnch); }
public MainWindowViewModel(MainWindow mainWindow, BookInfoViewModel bookInfoVM) { this.mainWindow_ = mainWindow; this.ExplorerBookInstVM_ = new ExplorerBookInstViewModel(mainWindow, bookInfoVM); this.BookInfoVM_ = bookInfoVM; }