예제 #1
0
 public MainWindowViewModel()
 {
     Settings = Settings.Instance;
     _fileHelper = new FileHelper();
     ClockInCommand = new RelayCommand(ClockIn);
     ReportsCommand = new RelayCommand(Reports);
     SettingsCommand = new RelayCommand(ShowSettings);
     TimeEntries = new ObservableCollection<TimeEntry>();
     new Thread(() =>
     {
         var entries = _fileHelper.GetEntries();
         if (entries != null)
             entries.ForEach(e => TimeEntries.Add(e));
         SetElapsed();
     }){IsBackground = true}.Start();
 }
예제 #2
0
 private static void old_acctor_mc()
 {
     fileHelper1 = new FileHelper();
     m_ConnectionString = FileHelper.ReadParamFromXml("ConnectionString");
 }