Ejemplo n.º 1
0
 public MainWindowViewModel()
 {
     Absen     = new AbsenContext();
     User      = new UserContext();
     UnitKerja = new UnitKerjaContext();
     Anggota   = new AnggotaContext();
 }
Ejemplo n.º 2
0
 public MenuUtamaViewModel()
 {
     Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("id-ID");
     Today             = DateTime.Now;
     Absen             = new AbsenContext();
     User              = new UserContext();
     UnitKerja         = new UnitKerjaContext();
     Anggota           = new AnggotaContext();
     SourceView        = (CollectionView)CollectionViewSource.GetDefaultView(Absen.Source);
     AdminLoginCommand = new CommandHandler {
         CanExecuteAction = x => true, ExecuteAction = AdminLoginAction
     };
     AbsenCommand = new CommandHandler {
         CanExecuteAction = AbsenCommandValidate, ExecuteAction = AbsenCommandAction
     };
     SourceView.Filter = TodayFilter;
     SourceView.Refresh();
 }