public MonitoringViewModel(ILogEntryView logEntryView, ILogRepository logRepository)
 {
     MainUserControl = MainUserControlViewModel.GetInstance();
     LogEntryView    = logEntryView;
     LogRepository   = logRepository;
     InitalViewModel();
 }
예제 #2
0
        private void OnCmdNavigateToMonitoringView()
        {
            MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance();

            mainUserControl.LocationVisibility   = Visibility.Collapsed;
            mainUserControl.MonitoringVisibility = Visibility.Visible;
        }
예제 #3
0
        public void OnCmdNavigateToMonitoringView()
        {
            MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance();

            mainUserControl.AddLogEntryVisibility = Visibility.Collapsed;
            mainUserControl.MonitoringVisibility  = Visibility.Visible;
        }
예제 #4
0
        private void OnCmdNavigateToCustomerView()
        {
            MainUserControlViewModel mainUserControl = MainUserControlViewModel.GetInstance();

            mainUserControl.CustomerVisibility       = Visibility.Visible;
            mainUserControl.CustomerDetailVisibility = Visibility.Collapsed;
        }
 public MainUserControlView()
 {
     InitializeComponent();
     DataContext = MainUserControlViewModel.GetInstance();
 }
예제 #6
0
 public CustomerViewModel(ICustomerRepository customerRepository)
 {
     CustomerRepository = customerRepository;
     InitialViewModel();
     MainUserControl = MainUserControlViewModel.GetInstance();
 }