Esempio n. 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="inDesignMode">Flag which indicates if the control is being drawn on the Workspace Designer. (Use this flag to determine if code should perform any logic on the workspace record)</param>
 /// <param name="RecordContext">The current workspace record context.</param>
 public ContactWorkspaceAddIn(bool inDesignMode, IRecordContext RecordContext, IGlobalContext GlobalContext)
 {
     // do nothing so framework won't throw exception once it gets to GetControl
     if (!ConfigurationSetting.configVerbPerfect && ConfigurationSetting.loginUserIsAdmin)
     {
         // do nothing
     }
     else
     {
         _recordContext = RecordContext;
         _globalContext = GlobalContext;
         _inDesingMode  = inDesignMode;
         if (_recordContext != null)
         {
             _recordContext.DataLoaded += _recordContext_DataLoaded;
         }
         // Instantiate the custom control and add it to the panel controls
         _siebelContactSearchControl = new SiebelContactSearchControl(_recordContext, _globalContext);
     }
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="inDesignMode">Flag which indicates if the control is being drawn on the Workspace Designer. (Use this flag to determine if code should perform any logic on the workspace record)</param>
 /// <param name="RecordContext">The current workspace record context.</param>
 public ContactWorkspaceAddIn(bool inDesignMode, IRecordContext RecordContext, IGlobalContext GlobalContext)
 {
     // do nothing so framework won't throw exception once it gets to GetControl
     if (!ConfigurationSetting.configVerbPerfect && ConfigurationSetting.loginUserIsAdmin)
     {
         // do nothing
     }
     else
     {
         _recordContext = RecordContext;
         _globalContext = GlobalContext;
         _inDesingMode = inDesignMode;
         if (_recordContext != null)
         {
             _recordContext.DataLoaded += _recordContext_DataLoaded;
         }
         // Instantiate the custom control and add it to the panel controls
         _siebelContactSearchControl = new SiebelContactSearchControl(_recordContext, _globalContext);
     }
 }