Esempio n. 1
0
 /// <summary>
 /// Main initialization procedure
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (GameUtils.BaseGame == null)
     {
         if (MessageBox.Show(Translator.GetText("NoSimsFound"), "Any Game Starter 3", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
         {
             Close();
             Application.Exit();
             return;
         }
     }
     //Program.TryRestorePermissions();
     Translator.TranslateForm(this);
     if (StarterProfile.IsFirstRun())
     {
         new AboutBox().ShowDialog();
     }
     DefaultProfileItem = new ListViewItem(Translator.GetText("DefaultProfile"));
     DefaultProfileItem.SubItems.Add("All");
     DefaultProfileItem.ImageIndex = 0;
     Profiles.Groups.Add("default", Translator.GetText("DefaultProfileSection"));
     Profiles.Groups.Add("anygame", Translator.GetText("AdditionalProfileSection"));
     ReloadProfiles();
 }