示例#1
0
 private void MenuStripClick(object sender, EventArgs e)
 {
     if (sender == DeleteMapMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.DeleteBeatmapsFromCollection);
     }
     else if (sender == DownloadMapInBrowserMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.DownloadBeatmaps);
     }
     else if (sender == DownloadMapManagedMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.DownloadBeatmapsManaged);
     }
     else if (sender == OpenBeatmapPageMapMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.OpenBeatmapPages);
     }
     else if (sender == copyAsTextMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.CopyBeatmapsAsText);
     }
     else if (sender == copyUrlMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.CopyBeatmapsAsUrls);
     }
     else if (sender == OpenBeatmapFolderMenuStrip)
     {
         BeatmapOperation?.Invoke(this, Common.BeatmapListingAction.OpenBeatmapFolder);
     }
 }
 public void EmitBeatmapOperation(BeatmapListingAction args)
 {
     BeatmapOperation?.Invoke(this, args);
 }