public static DialogResult ShowSelection(String FormName, String FilterName = null, List <String> Filters = null) { IPopupForm selection = null; selection = Activator.CreateInstance(Type.GetType("Jk_Accounting_Software.External.Popup." + FormName)) as IPopupForm; if (selection == null) { IMessageHandler.Inform(ISystemMessages.NoFormFound(FormName)); return(DialogResult.Cancel); } try { IAppHandler.StartBusy("Opening filter selection"); selection.StartPosition = FormStartPosition.CenterScreen; selection.Text = IAppHandler.ApplicationText; selection.LoadData(); selection.LoadFilter(FilterName, Filters); } finally { IAppHandler.EndBusy("Opening filter selection"); } return(selection.ShowDialog(IAppHandler.FindActiveForm())); }