Esempio n. 1
0
 private void SGHSwitch_MenuItem_Click(object sender, EventArgs e)
 {
     if (this.gh3Songlist_0.gh3SetlistList.ContainsKey(this.int_0))
     {
         string text = KeyGenerator.OpenFile("Select the setlist to switch too.", "GH3CP Setlist File|*.sgh");
         if (text.Equals(""))
         {
             return;
         }
         GH3Setlist gH3Setlist = new GH3Setlist();
         try
         {
             SGHManager sghManager;
             if (DialogResult.Yes == MessageBox.Show("Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", "Setlist Switching", MessageBoxButtons.YesNo))
             {
                 sghManager = new SGHManager(this.gh3Songlist_0, gH3Setlist, text, this.dataFolder);
             }
             else
             {
                 sghManager = new SGHManager(this.gh3Songlist_0, gH3Setlist, text);
             }
             sghManager.method_0();
             this.TierBox.Items.Clear();
             this.TierBox.Items.AddRange(gH3Setlist.tiers.ToArray());
             if (this.TierBox.Items.Count != 0)
             {
                 this.TierBox.SelectedIndex = 0;
             }
             else
             {
                 this.method_23();
             }
             this.SetlistTitle_TxtBox.Text = KeyGenerator.GetFileName(text, 1);
             this.SetlistApply_Btn.Enabled = true;
             this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
             this.method_0();
         }
         catch (Exception exception)
         {
             MessageBox.Show("File not compatible! Setlist Switch failed.\n" + exception, "Setlist Switching");
         }
     }
 }
Esempio n. 2
0
 private void SaveSGH_MenuItem_Click(object sender, EventArgs e)
 {
     if (this.gh3Songlist_0.gh3SetlistList.ContainsKey(this.int_0))
     {
         string saveLocation = KeyGenerator.OpenOrSaveFile("Select where to save the setlist.", "GH3CP Setlist File|*.sgh", false, this.SetlistTitle_TxtBox.Text);
         if (saveLocation.Equals(""))
         {
             return;
         }
         SGHManager sghManager;
         if (DialogResult.Yes == MessageBox.Show("Do you wish to include all used song data (Music & Game Tracks)?", "Setlist Exporting", MessageBoxButtons.YesNo))
         {
             sghManager = new SGHManager(this.gh3Songlist_0, this.gh3Songlist_0.gh3SetlistList[this.int_0], saveLocation, this.dataFolder);
         }
         else
         {
             sghManager = new SGHManager(this.gh3Songlist_0, this.gh3Songlist_0.gh3SetlistList[this.int_0], saveLocation);
         }
         sghManager.method_1();
     }
 }