Ejemplo n.º 1
0
 public virtual void BeforeFormRegionShow(object formRegion)
 {
     try
     {
         FormRegion     form     = COMObject.Create <Outlook.FormRegion>(Factory, formRegion);
         OpenFormRegion openForm = OnCreateOpenFormRegion(form);
         if (null == openForm)
         {
             openForm = new OpenFormRegion(form);
         }
         openForm.Close += OpenForm_Close;
         OpenFormRegions.Add(openForm);
         OnFormRegionOpen(openForm);
     }
     catch (NetRuntimeSystem.Exception exception)
     {
         OnOutlookError(OutlookErrorMethodKind.BeforeFormRegionShow, exception);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="underlyingRegion">origin formregion</param>
 public OpenFormRegion(FormRegion underlyingRegion)
 {
     UnderlyingRegion             = underlyingRegion;
     UnderlyingRegion.CloseEvent += UnderlyingRegion_CloseEvent;
 }
Ejemplo n.º 3
0
 public ImportedFormRegion CreateImportedFormRegion(FormRegion region, IImportedFormRegionExtension extension)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates an new instance of OpenFormRegion
        /// </summary>
        /// <param name="form">underlying form region</param>
        /// <returns>new instance of OpenFormRegion</returns>
        protected virtual OpenFormRegion OnCreateOpenFormRegion(FormRegion form)
        {
            OpenFormRegion openForm = new OpenFormRegion(form);

            return(openForm);
        }
Ejemplo n.º 5
0
 public FormRegionControl CreateFormRegionControl(FormRegion region, IExtension extension)
 {
     throw new NotImplementedException();
 }