ACAT.Lib.Extension.CommandHandlers.ShowDialogsHandler.showDialog C# (CSharp) Method

showDialog() private method

Displays the dialog that has the specified name
private showDialog ( String name ) : void
name String name of the dialog
return void
        private void showDialog(String name)
        {
            try
            {
                Form dlg = Context.AppPanelManager.CreatePanel(name);
                if (dlg != null)
                {
                    Context.AppPanelManager.ShowDialog((IPanel)dlg);
                }
            }
            catch (Exception e)
            {
                Log.Debug("Error creating dialog of type " + name + ". Exception: " + e);
            }
        }
    }