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();
 }