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