public DatabaseDetailsViewModel()
        {
//          ConnectionsList = new ObservableCollection<ConnectionsCount>();
          DatabaseSize = new ObservableCollection<DatabaseSizeClass>();
          DBConnectionDetails = new ObservableCollection<DBConnectionClass>();
            TopCpuConsumers = new ObservableCollection<TopCPUConsumersClass>();
            GoBack = new RelayCommand(() => goBack());
            LogOut = new RelayCommand(() => LogoutNow());
            Exceptionpopupcommand = new RelayCommand(() => HandleException());
        }
 public ListDatabasesViewModel()
 {
    
     SelectDatabase = new Helpers.RelayCommand<Databases>(GoDatabaseDetails); 
     //GetDatabases = new RelayCommand(()=>GetDatabasesCommand());
     LogOut = new RelayCommand(()=> LogoutNow());
     Exceptionpopupcommand = new RelayCommand(() => HandleException());
 }
Ejemplo n.º 3
0
        public  LoginViewModel()
        {

            GetLogin = new RelayCommand(() => Login(),OnCanLogin);
            CancelLogin = new RelayCommand(() => cancleLogin());
            Exceptionpopupcommand = new RelayCommand(() => dismisException());
            logindetails = new LoginDetails();
            logindetails.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(logindetails_PropertyChanged);
            Loginbuttonvisibility = "Visible";
            Cancelbuttonvisibility = "Collapsed";
            cts = new CancellationTokenSource();
            
        }