/// <summary> /// Initiiazles a new RegistryNode /// </summary> /// <param name="view"></param> /// <param name="hive"></param> public RegistryNode(RegView view, RegHive hive) { Hive = hive; Key = string.Empty; if (view == RegView.x64) { Registry = new Registry64(); } else { Registry = new Registry32(); } Children = new LinkedList <RegistryNode>(); _searchElements.Add(this); }
public static void LoginPage() { PageContain.Children.Clear(); if (DataOperation.AppPW != null) { LoginView loginview = new LoginView(); loginview.loginbutton.Clicked += LoginEvent; PageContain.Children.Add(loginview.viewcontain); } else { RegView regview = new RegView(); regview.regbutton.Clicked += OnSaveRegisterationClick; regview.keygenbutton.Clicked += (sender, args) => { KeyGenEvent(true); }; PageContain.Children.Add(regview.viewcontain); } }
ActivePage active; //Активная страница #endregion /// <summary> /// Конструктор главной модели представлений /// </summary> public MainViewModel() { active = new ActivePage(); if (Properties.Settings.Default.First_Start) { Active = new RegView() { DataContext = new RegViewModel(active) } } ; else { Active = new AuthView() { DataContext = new AuthViewModel() } }; }