public DockContentHandler(Form form, GetPersistStringCallback getPersistStringCallback) {
			if (!(form is IDockContent))
				throw new ArgumentException(Strings.DockContent_Constructor_InvalidForm, "form");

			m_form = form;
			m_getPersistStringCallback = getPersistStringCallback;

			m_events = new EventHandlerList();
			Form.Disposed += new EventHandler(Form_Disposed);
			Form.TextChanged += new EventHandler(Form_TextChanged);
		}
Example #2
0
 public DockContentHandler(Form form, GetPersistStringCallback getPersistStringCallback)
 {
     if (!(form is IDockContent))
     {
         throw new ArgumentException(Strings.DockContent_Constructor_InvalidForm, "form");
     }
     m_form = form;
     m_getPersistStringCallback = getPersistStringCallback;
     m_events          = new EventHandlerList();
     Form.Disposed    += Form_Disposed;
     Form.TextChanged += Form_TextChanged;
 }
        public DockContentHandler(Form form, GetPersistStringCallback getPersistStringCallback)
        {
            if (!(form is IDockContent))
                throw new ArgumentException(Strings.DockContent_Constructor_InvalidForm, "form");

            this._mForm = form;
            this.m_getPersistStringCallback = getPersistStringCallback;

            (form as DockContent).Size = form.Size;

            this._mEvents = new EventHandlerList();
            this.Form.Disposed += this.Form_Disposed;
            this.Form.TextChanged += this.Form_TextChanged;
        }
Example #4
0
 public DockContentHandler(Form form, GetPersistStringCallback getPersistStringCallback)
 {
     this.InitDockStyleMap();
     if (!(form is IDockContent))
     {
         throw new ArgumentException(Strings.DockContent_Constructor_InvalidForm, "form");
     }
     this.m_form = form;
     this.m_getPersistStringCallback = getPersistStringCallback;
     this.m_events          = new EventHandlerList();
     this.Form.FormClosing += new FormClosingEventHandler(this.Form_Closing);
     this.Form.Disposed    += new EventHandler(this.Form_Disposed);
     this.Form.TextChanged += new EventHandler(this.Form_TextChanged);
 }
Example #5
0
 public DockContentHandler(System.Windows.Forms.Form form, GetPersistStringCallback getPersistStringCallback)
 {
     this.m_previousActive      = null;
     this.m_nextActive          = null;
     this.m_allowEndUserDocking = true;
     this.m_autoHidePortion     = 0.25;
     this.m_closeButton         = true;
     this.m_allowedAreas        = DockAreas.Document | DockAreas.DockBottom | DockAreas.DockTop | DockAreas.DockRight |
                                  DockAreas.DockLeft | DockAreas.Float;
     this.m_dockState                = DockState.Unknown;
     this.m_dockPanel                = null;
     this.m_isHidden                 = true;
     this.m_tabText                  = null;
     this.m_visibleState             = DockState.Unknown;
     this.m_isFloat                  = false;
     this.m_panelPane                = null;
     this.m_floatPane                = null;
     this.m_countSetDockState        = 0;
     this.m_getPersistStringCallback = null;
     this.m_hideOnClose              = false;
     this.m_showHint                 = DockState.Unknown;
     this.m_isActivated              = false;
     this.m_tabPageContextMenu       = null;
     this.m_toolTipText              = null;
     this.m_activeWindowHandle       = IntPtr.Zero;
     this.m_tab                     = null;
     this.m_autoHideTab             = null;
     this.m_flagClipWindow          = false;
     this.m_tabPageContextMenuStrip = null;
     if (!(form is IDockContent))
     {
         throw new ArgumentException(Strings.DockContent_Constructor_InvalidForm, "form");
     }
     this.m_form = form;
     this.m_getPersistStringCallback = getPersistStringCallback;
     this.m_events          = new EventHandlerList();
     this.Form.Disposed    += new EventHandler(this.Form_Disposed);
     this.Form.TextChanged += new EventHandler(this.Form_TextChanged);
 }