Пример #1
0
 private void SongListBox_MouseDown(object sender, MouseEventArgs e)
 {
     int num = this.SongListBox.IndexFromPoint(e.X, e.Y);
     if (num >= 0 && num < this.SongListBox.Items.Count)
     {
         if (e.Clicks == 2 && e.Button == MouseButtons.Left)
         {
             SongProperties songProperties;
             if ((songProperties = new SongProperties((GH3Song)this.SongListBox.Items[num])).ShowDialog() == DialogResult.OK)
             {
                 songProperties.GetSongWithChanges();
                 this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
                 return;
             }
         }
         else if (e.Clicks == 2 && e.Button == MouseButtons.Right)
         {
             GH3Song gH3Song = (GH3Song)this.SongListBox.Items[num];
             if (gH3Song.editable && DialogResult.Yes == MessageBox.Show(gH3Song.name.ToUpper() + " will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", MessageBoxButtons.YesNo))
             {
                 this.SongListBox.Items.Remove(gH3Song);
                 foreach (int current in this.gh3Songlist_0.method_1(gH3Song))
                 {
                     this.method_4(new zzSetListUpdater(current, this.class319_0, this.gh3Songlist_0));
                 }
                 this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
             }
         }
     }
 }
Пример #2
0
 private void SongProps_MenuItem_Click(object sender, EventArgs e)
 {
     SongProperties songProperties;
     if (!((GH3Song)this.SongListBox.Items[this.SongListBox.SelectedIndex]).isEditable())
     {
         if (MsgBoxEditDefaultSongs() != DialogResult.Yes)
             return;
     }
     if (this.SongListBox.SelectedIndex >= 0 && (songProperties = new SongProperties((GH3Song)this.SongListBox.Items[this.SongListBox.SelectedIndex])).ShowDialog() == DialogResult.OK)
     {
         songProperties.GetSongWithChanges();
         this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
     }
 }
Пример #3
0
 private void NewSong_MenuItem_Click(object sender, EventArgs e)
 {
     SongData songData = new SongData(this.gh3Songlist_0, this.forceRB3MidConversionToolStripMenuItem.Checked);
     if (songData.ShowDialog() == DialogResult.OK)
     {
         GH3Song gH3Song = this.bool_0 ? new GHASong() : new GH3Song();
         if (songData.bool_1)
         {
             Class250 @class = songData.method_1(this.class319_0, this.dataFolder);
             this.method_4(@class);
             gH3Song.vmethod_0(@class.class362_0.gh3Song_0);
         }
         if (songData.bool_0)
         {
             Class248 class2 = songData.method_0(this.dataFolder);
             this.method_4(class2);
             gH3Song.name = class2.string_1;
             gH3Song.no_rhythm_track = !class2.bool_0;
             gH3Song.use_coop_notetracks = class2.bool_1;
             gH3Song.version = 3;
             gH3Song.leaderboard = true;
             gH3Song.editable = true;
         }
         SongProperties songProperties = new SongProperties(gH3Song);
         if (songProperties.ShowDialog() == DialogResult.OK)
         {
             songProperties.GetSongWithChanges();
         }
         this.gh3Songlist_0.Add(gH3Song.name, gH3Song);
         this.method_4(new Class247(this.class319_0, this.gh3Songlist_0));
         this.method_0();
     }
 }