Ejemplo n.º 1
0
        /// <summary>
        /// Intialize designer.
        /// </summary>
        /// <param name="component">Component.</param>
        public override void Initialize(IComponent component)
        {
            // remove default verbs from the action list.
            // should be called before initialization.
            IServiceContainer svc = component.Site as IServiceContainer;

            //if (svc != null)
            //{
            //    if (this.GetService(typeof(DesignerCommandSet)) == null)
            //    {
            //        svc.AddService(typeof(DesignerCommandSet), new DesignerCommandSet());
            //    }
            //    svc.AddService(typeof(IDesignerMessageBoxDialog), new DesignerMessageBoxDialog());
            //}
            base.Initialize(component);

            // Set reference to the designer
            ChartWinDesigner.controlDesigner = this;

            SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged);
        }
Ejemplo n.º 2
0
 protected override void OnMouseDragBegin(int x, int y)
 {
     base.OnMouseDragBegin(x, y);
     ChartWinDesigner.controlDesigner = this;
 }