Пример #1
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;
        }
Пример #2
0
 public Settings()
 {
     InitializeComponent();
     DataContext = SettingsVM.GetInstance();
 }