Exemplo n.º 1
0
 private void OperationComplete()
 {
     this.Completed = true;
     if (this.AutoClose)
     {
         if (Task != null)
         {
             Task.Complete();
         }
         this.Close();
     }
     else
     {
         this.ConfirmButton.Opacity   = 1.0;
         this.ConfirmButton.IsEnabled = true;
     }
 }
Exemplo n.º 2
0
 private void ConfirmButton_Click(object sender, RoutedEventArgs e)
 {
     Configurations.Configuration.SetPath("Steam", this.SteamPath.Text, true);
     if (Task.Check())
     {
         Completed = true;
         Task.Complete();
         this.Close();
     }
 }
Exemplo n.º 3
0
 private void ConfirmButton_Click(object sender, RoutedEventArgs e)
 {
     ((ModAPI.Data.Game)Task.Parameters[0]).GamePath = this.GamePath.Text;
     if (Task.Check())
     {
         Completed = true;
         Task.Complete();
         this.Close();
     }
 }