public BroadcastMainWindow() { WindowState = WindowState.Maximized ; MaxHeight = Screen.PrimaryScreen.WorkingArea.Height + 9; viewModel = SimpleIoc.Default.GetInstance<IBroadcastMainViewModel>(); dialogService = SimpleIoc.Default.GetInstance<IDialogService>(); var entryType = viewModel.GetEntryType(); properties = entryType.GetProperties(); InitializeGrid(); InitializeComponent(); viewModel.PropertyChanged += ViewModelOnPropertyChanged; DataContext = viewModel; Messenger.Default.Register<NotificationMessage>(this, MessageReceived); Closed += MainWindow_Closed; }
public BroadcastMainWindow() { WindowState = WindowState.Maximized; MaxHeight = Screen.PrimaryScreen.WorkingArea.Height + 9; viewModel = SimpleIoc.Default.GetInstance <IBroadcastMainViewModel>(); dialogService = SimpleIoc.Default.GetInstance <IDialogService>(); var entryType = viewModel.GetEntryType(); properties = entryType.GetProperties(); InitializeGrid(); InitializeComponent(); viewModel.PropertyChanged += ViewModelOnPropertyChanged; DataContext = viewModel; Messenger.Default.Register <NotificationMessage>(this, MessageReceived); Closed += MainWindow_Closed; }