示例#1
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     NuGenUISnap.RegisterExternalReferenceForm(this);
     _blendForm.Show();
     _paletteForm.Show();
 }
示例#2
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     base.OnFormClosed(e);
     _blendForm.Dispose();
     _paletteForm.Dispose();
     NuGenUISnap.UnregisterExternalReferenceForm(this);
 }
示例#3
0
		public Form2()
		{
			InitializeComponent();
            stickyWindow = new NuGenUISnap(this);
			checkStickOnMove.Checked	= stickyWindow.StickOnMove;
			checkStickOnResize.Checked	= stickyWindow.StickOnResize;
			checkStickToOthers.Checked	= stickyWindow.StickToOther;
			checkStickToScreen.Checked	= stickyWindow.StickToScreen;
		}
示例#4
0
 public Form2()
 {
     InitializeComponent();
     stickyWindow               = new NuGenUISnap(this);
     checkStickOnMove.Checked   = stickyWindow.StickOnMove;
     checkStickOnResize.Checked = stickyWindow.StickOnResize;
     checkStickToOthers.Checked = stickyWindow.StickToOther;
     checkStickToScreen.Checked = stickyWindow.StickToScreen;
 }
示例#5
0
        /// <summary>
        /// Prepares the designer to view, edit, and design the specified component.
        /// </summary>
        /// <param name="component">The component for this designer.</param>
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);
            NuGenUISnap uiSnap = component as NuGenUISnap;

            if (uiSnap != null)
            {
                uiSnap.HostForm = NuGenDesignerUtils.GetHostForm((IDesignerHost)this.GetService(typeof(IDesignerHost)));
            }
        }
示例#6
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            _blendForm.BlendColorChanged -= _blendForm_BlendColorChanged;
            _blendForm.Dispose();

            _paletteForm.GradientBeginChanged -= _paletteForm_GradientBeginChanged;
            _paletteForm.GradientEndChanged   -= _paletteForm_GradientEndChanged;
            _paletteForm.Dispose();

            NuGenUISnap.UnregisterExternalReferenceForm(this);
        }