Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 /// <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.
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        /// <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.
            }
        }
Ejemplo n.º 5
0
 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();
     }
 }
Ejemplo n.º 6
0
        private void about_Click(object sender, RoutedEventArgs e)
        {
            var abt = new Views.About();

            abt.ShowDialog();
        }
Ejemplo n.º 7
0
        private void OnShowAboutDialog()
        {
            var ab = new Views.About();

            ab.Show();
        }