public static AccountPage GetPage(SecretaryMain parent, Secretary secretary) { if (_instance == null) { _instance = new AccountPage(secretary); } parent.Title.Content = "Nalog"; return(_instance); }
private void Account_Executed(object sender, ExecutedRoutedEventArgs e) { Main.Content = AccountPage.GetPage(this, _currentSecretary); }