Interaction logic for TimeSettingDialog.xaml
Inheritance: MahApps.Metro.Controls.MetroWindow
Ejemplo n.º 1
0
        private void TimeSetting_Click(object sender, RoutedEventArgs e)
        {
            if (GameListView.SelectedItems.Count > 0)
            {
                GameExecutionInfo        i  = (GameExecutionInfo)GameListView.SelectedItem;
                Dialog.TimeSettingDialog td = new Dialog.TimeSettingDialog(i);

                td.Owner = this;
                if (td.ShowDialog() == true)
                {
                    UpdateStatus();
                    db.UpdateGameTimeInfo(i.UID, i.TotalPlayTime, i.FirstPlayTime, i.LastPlayTime);
                }
            }
        }
Ejemplo n.º 2
0
		private void TimeSetting_Click(object sender, RoutedEventArgs e)
		{
			if (GameListView.SelectedItems.Count > 0)
			{
				GameExecutionInfo i = (GameExecutionInfo)GameListView.SelectedItem;
				Dialog.TimeSettingDialog td = new Dialog.TimeSettingDialog(i);

				td.Owner = this;
				if (td.ShowDialog() == true)
				{
					UpdateStatus();
					db.UpdateGameTimeInfo(i.UID, i.TotalPlayTime, i.FirstPlayTime, i.LastPlayTime);
				}
			}
		}