예제 #1
0
 EventHandler RunWhenSelectionIsNotEmptyHandler(Action action)
 {
     return((s, a) =>
     {
         if (!servers.IsSelecteAnyServer())
         {
             VgcApis.Misc.UI.MsgBoxAsync(I18N.SelectServerFirst);
             return;
         }
         action();
     });
 }
예제 #2
0
 EventHandler ApplyActionOnSelectedServers(Action action)
 {
     return((s, a) =>
     {
         if (!servers.IsSelecteAnyServer())
         {
             VgcApis.Misc.Utils.RunInBackground(() => MessageBox.Show(I18N.SelectServerFirst));
             return;
         }
         action();
     });
 }