Example #1
0
 private void TGHSwitch_MenuItem_Click(object sender, EventArgs e)
 {
     if (this.TierBox.SelectedIndex >= 0)
     {
         string text = KeyGenerator.OpenFile("Select the tier to switch too.", "GH3CP Tier File|*.tgh");
         if (text.Equals(""))
         {
             return;
         }
         GH3Tier gH3Tier = new GH3Tier();
         try
         {
             TGHManager tghManager;
             if (DialogResult.Yes == MessageBox.Show("Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", "Tier Switching", MessageBoxButtons.YesNo))
             {
                 tghManager = new TGHManager(this.gh3Songlist_0, gH3Tier, text, this.dataFolder);
             }
             else
             {
                 tghManager = new TGHManager(this.gh3Songlist_0, gH3Tier, text);
             }
             tghManager.method_0();
             this.TierBox.Items[this.TierBox.SelectedIndex] = gH3Tier;
             this.TierBox.SelectedIndex = this.TierBox.SelectedIndex;
             this.SetlistApply_Btn.Enabled = true;
             this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
             this.method_0();
         }
         catch
         {
             MessageBox.Show("File not compatible! Tier Switch failed.", "Tier Switching");
         }
     }
 }
Example #2
0
 private void SaveTGH_MenuItem_Click(object sender, EventArgs e)
 {
     if (this.TierBox.SelectedIndex >= 0)
     {
         string text = KeyGenerator.OpenOrSaveFile("Select where to save the tier.", "GH3CP Tier File|*.tgh", false, this.TierTitle_TxtBox.Text);
         if (text.Equals(""))
         {
             return;
         }
         TGHManager @class;
         if (DialogResult.Yes == MessageBox.Show("Do you wish to include all used song data (Music & Game Tracks)?", "Tier Exporting", MessageBoxButtons.YesNo))
         {
             @class = new TGHManager(this.gh3Songlist_0, (GH3Tier)this.TierBox.SelectedItem, text, this.dataFolder);
         }
         else
         {
             @class = new TGHManager(this.gh3Songlist_0, (GH3Tier)this.TierBox.SelectedItem, text);
         }
         @class.method_1();
     }
 }