public Page_About(string name, Views.About content) : base(name, content, false) { view = content; view.About_Version.Content = MyApp.SmallVersion; view.About_ProgramName.Content = MyApp.Name; }
/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter">Data used by the command. If the command does not require data to be passed, this object can be set to null.</param> public void Execute(object parameter) { IsExecuted = true; if (CanExecuteChanged != null) CanExecuteChanged(this, new EventArgs()); // Mostly to avoid warning. var aboutWindow = new Views.About(); aboutWindow.Owner = App.Current.MainWindow; aboutWindow.ShowDialog(); IsExecuted = false; if (CanExecuteChanged != null) CanExecuteChanged(this, new EventArgs()); // Mostly to avoid warning. }
public override void OnNavigatedTo(Windows.UI.Xaml.Navigation.NavigationEventArgs param) { Shared.Services.Contracts.SettingsService.Instance.SettingsRequested = (o) => { o.Request.ApplicationCommands.Add(new Windows.UI.ApplicationSettings.SettingsCommand("About", "About", (e) => { var about = new Views.About(); about.Show(); })); }; base.OnNavigatedTo(param); }
/// <summary> /// Defines the method to be called when the command is invoked. /// </summary> /// <param name="parameter">Data used by the command. If the command does not require data to be passed, this object can be set to null.</param> public void Execute(object parameter) { IsExecuted = true; if (CanExecuteChanged != null) { CanExecuteChanged(this, new EventArgs()); // Mostly to avoid warning. } var aboutWindow = new Views.About(); aboutWindow.Owner = App.Current.MainWindow; aboutWindow.ShowDialog(); IsExecuted = false; if (CanExecuteChanged != null) { CanExecuteChanged(this, new EventArgs()); // Mostly to avoid warning. } }
private void About_Click(object sender, EventArgs e) { if (LoggedIn == false) { MessageBox.Show("please log in!"); } else { BottomMainScreenTable.Hide(); pictureBox3.Hide(); About newAbout = new Views.About() { Dock = DockStyle.Fill, TopLevel = false, TopMost = false }; this.GamePanel.Controls.Add(newAbout); newAbout.Show(); } }
private void about_Click(object sender, RoutedEventArgs e) { var abt = new Views.About(); abt.ShowDialog(); }
private void OnShowAboutDialog() { var ab = new Views.About(); ab.Show(); }