protected override void OnLoad(EventArgs e) { base.OnLoad(e); NuGenUISnap.RegisterExternalReferenceForm(this); _blendForm.Show(); _paletteForm.Show(); }
protected override void OnFormClosed(FormClosedEventArgs e) { base.OnFormClosed(e); _blendForm.Dispose(); _paletteForm.Dispose(); NuGenUISnap.UnregisterExternalReferenceForm(this); }
public Form2() { InitializeComponent(); stickyWindow = new NuGenUISnap(this); checkStickOnMove.Checked = stickyWindow.StickOnMove; checkStickOnResize.Checked = stickyWindow.StickOnResize; checkStickToOthers.Checked = stickyWindow.StickToOther; checkStickToScreen.Checked = stickyWindow.StickToScreen; }
/// <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))); } }
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); }