Exemplo 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 OracleRightnowToaWorkOrderAreaAddIn(bool inDesignMode, IRecordContext RecordContext)
        {
            _recordContext = RecordContext;

            workOrderAreaControl = new WorkOrderAreaControl(_recordContext);
            var elementHost = new ElementHost
            {
                Dock  = DockStyle.Fill,
                Child = workOrderAreaControl,
            };

            Controls.Add(elementHost);
        }
        /// <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 OracleRightnowToaWorkOrderAreaAddIn(bool inDesignMode, IRecordContext RecordContext)
        {
            _recordContext = RecordContext;

            workOrderAreaControl = new WorkOrderAreaControl(_recordContext);
            var elementHost = new ElementHost
            {
                Dock = DockStyle.Fill,
                Child = workOrderAreaControl,
            };

            Controls.Add(elementHost);
        }