public MonitoringViewModel(ILogEntryView logEntryView, ILogRepository logRepository) { MainUserControl = MainUserControlViewModel.GetInstance(); LogEntryView = logEntryView; LogRepository = logRepository; InitalViewModel(); }
private void OnCmdNavigateToMonitoringView() { MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance(); mainUserControl.LocationVisibility = Visibility.Collapsed; mainUserControl.MonitoringVisibility = Visibility.Visible; }
public void OnCmdNavigateToMonitoringView() { MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance(); mainUserControl.AddLogEntryVisibility = Visibility.Collapsed; mainUserControl.MonitoringVisibility = Visibility.Visible; }
private void OnCmdNavigateToCustomerView() { MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance(); mainUserControl.CustomerVisibility = Visibility.Visible; mainUserControl.CustomerDetailVisibility = Visibility.Collapsed; }
public MainUserControlView() { InitializeComponent(); DataContext = MainUserControlViewModel.GetInstance(); }
public CustomerViewModel(ICustomerRepository customerRepository) { CustomerRepository = customerRepository; InitialViewModel(); MainUserControl = MainUserControlViewModel.GetInstance(); }