Exemple #1
0
 public static CredentialForServerVM GetInstance()
 {
     if (instance == null)
     {
         instance = new CredentialForServerVM();
     }
     return(instance);
 }
Exemple #2
0
        public void SetHomePage()
        {
            Home     = HomeVM.GetInstance();
            MainData = DataVM.GetInstance();
            Settings = SettingsVM.GetInstance();
            CredentialForServerVM.GetInstance();
            ChildrenAddVM.GetInstance();

            MainData.backspaceButton += SetPreviousPage;
            Settings.backspaceButton += SetPreviousPage;
            Home.dataButton          += SetDataPage;
            Home.settingsButton      += SetSettingsPage;
            Home.singOut             += SetPreviousPage;

            CurrentPage = Home;
        }