Exemple #1
0
 public UIService(ProgramStatusViewModel statusVm)
 {
     if (statusVm == null)
     {
         throw new ArgumentNullException("statusVm");
     }
     this.statusVm = statusVm;
 }
        public MainWindow()
        {
            InitializeComponent();

            recentValues          = new RecentValuesStorage();
            connectionString.Text = recentValues.ConnectionString;

            ProgramStatusViewModel statusVm = new ProgramStatusViewModel();

            statusBar.DataContext = statusVm;
            uiService             = new UIService(statusVm);
        }