//Cost Box Visability #endregion #region Constructor public QuickQuoteViewModel(Window window, QuickQuote QQ) { Window = window; this.SetStateLawn = new RelayCommand(LawnState); this.SetStatePassenger = new RelayCommand(PassengerState); this.SetStateMediumTruck = new RelayCommand(MediumTruckState); //Event Subscribers QQ.CostStackPanel.MouseEnter += new MouseEventHandler(OnMouseEnter); QQ.CostStackPanel.MouseLeave += new MouseEventHandler(OnMouseLeave); }
public MainWindowViewModel(Window window) { mWindow = window; QQ = new QuickQuote(); SP = new SettingsPage(); mSPVM = new SettingsPageViewModel(); mQQVM = new QuickQuoteViewModel(mWindow, QQ); CurrentPage = QQ; CurrentPage.DataContext = mQQVM; OpenSettings = new RelayCommand(SwitchPageToSettings); OpenQuickQuote = new RelayCommand(SwitchPageToQuickQuote); }