コード例 #1
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">owner instance</param>
 protected internal DialogUtils(CommonUtils owner)
 {
     if (null == owner)
     {
         throw new ArgumentNullException("owner");
     }
     CurrentLanguage      = _currentDefaultLanguage;
     _owner               = owner;
     _openNonModalDialogs = new Dictionary <Form, NonModalDialogValue>();
     SuppressOnAutomation = true;
     SuppressOnHide       = true;
     Layout               = new DialogLayoutSettings();
     Localization         = new DialogLocalizationSettings(ToolsDialog.CreateDialogSchema());
 }
コード例 #2
0
 /// <summary>
 /// Called after create a new ToolsDialog instance
 /// </summary>
 /// <param name="dialog">new instance</param>
 /// <param name="dialogName">name of the dialog</param>
 protected virtual void OnCreateToolsDialog(ToolsDialog dialog, string dialogName)
 {
     dialog.DoLocalization(Localization[dialogName][CurrentLanguage, true]);
     dialog.DoLayout(Layout);
 }