Inheritance: MahApps.Metro.Controls.MetroWindow
Ejemplo n.º 1
0
        private void AddGameFromProcess_Click(object sender, RoutedEventArgs e)
        {
            Dialog.ProcessDialog pd = new Dialog.ProcessDialog();
            pd.Owner = this;
            if (pd.ShowDialog() == true)
            {
                GameExecutionInfo i = new GameExecutionInfo(pd.SelectedProc.ProcTitle, pd.SelectedProc.ProcPath);
                items.Add(i);
                db.InsertOrReplaceGame(i);

                UpdateStatus();
                OnPropertyChanged("ItemCount");
            }
        }
Ejemplo n.º 2
0
		private void AddGameFromProcess_Click(object sender, RoutedEventArgs e)
		{
			Dialog.ProcessDialog pd = new Dialog.ProcessDialog();
			pd.Owner = this;
			if (pd.ShowDialog() == true)
			{
				GameExecutionInfo i = new GameExecutionInfo(pd.SelectedProc.ProcTitle, pd.SelectedProc.ProcPath);
				items.Add(i);
				db.InsertOrReplaceGame(i);

				UpdateStatus();
				OnPropertyChanged("ItemCount");
			}
		}