void DeletePackage() { var name = tboxName.Text; if (string.IsNullOrEmpty(name)) { return; } if (!VgcApis.Misc.UI.Confirm(string.Format(I18N.DeleteTpl, name))) { return; } settings.RemovePackageByName(name); RefreshPackageListBox(); }