private void MapControl_ControlRemoved(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     if (e.Control is WindowsXamlHostBase control)
     {
         UwpControl.Children.Remove(control.GetUwpInternalObject() as UIElement);
     }
 }
Пример #2
0
 private void InkToolbar_ControlAdded(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     if (e.Control is WindowsXamlHostBase control)
     {
         UwpControl.Children.Add(control.GetUwpInternalObject() as UIElement);
     }
 }
Пример #3
0
 protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
 {
     e.Control.MouseEnter += ImageButtonMouseEnter;
     e.Control.MouseLeave += ImageButtonMouseLeave;
     e.Control.MouseUp    += ImageButtonMouseUp;
     e.Control.MouseDown  += ImageButtonMouseDown;
 }
Пример #4
0
 protected override void OnControlRemoved(System.Windows.Forms.ControlEventArgs e)
 {
     e.Control.MouseEnter -= ImageButtonMouseEnter;
     e.Control.MouseLeave -= ImageButtonMouseLeave;
     e.Control.MouseUp    -= ImageButtonMouseUp;
     e.Control.MouseDown  -= ImageButtonMouseDown;
 }
        void SelectableVerticalLayoutPanel_ControlRemoved(object sender, System.Windows.Forms.ControlEventArgs e)
        {
            var control = e.Control as SelectableControl;

            if (control != null)
            {
                control.SelectionChanged -= control_SelectionChanged;
            }
        }
 protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlAdded(e);
     e.Control.Dock = System.Windows.Forms.DockStyle.Top;
     if (!this.IsScrolled)
     {
         this.InitAvgHeight();
     }
     else
     {
         e.Control.Height = this.AvgHeight;
     }
 }
 protected override void OnControlRemoved(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlRemoved(e);
     if (!this.IsScrolled)
     {
         this.InitAvgHeight();
     }
     else if (!this.VerticalScroll.Visible)
     {
         this.IsScrolled = false;
         this.AutoScroll = false;
         this.InitAvgHeight();
     }
 }
        protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
        {
            if (this.Controls.Count > 1 || !(e.Control is WrappingOptions))
            {
                throw new InvalidOperationException(this.GetType().Name + " can contain only one " + this.wrappingOptions.GetType().Name + " and no other controls");
            }

            this.wrappingOptions = (WrappingOptions)e.Control;

            this.Text = this.wrappingOptions.WrappedType.FieldName;
            this.wrappingOptions.WrappedType.FieldNameChanged += this.OnWrappedTypeFieldNameChanged;

            base.OnControlAdded(e);
        }
        private void TabControl_ControlRemoved(object sender, System.Windows.Forms.ControlEventArgs e)
        {
            if (Request != null)
            {
                try
                {
                    EllieMae.EMLite.DataEngine.LoanIdentity i = new EllieMae.EMLite.DataEngine.LoanIdentity(Request.LoanFolder, Request.LoanName, Request.GUID);
                    Session.LoanManager.MoveLoan(i, Request.LoanFolder, EllieMae.EMLite.ClientServer.DuplicateLoanAction.Rename);
                }
                catch (Exception ex)
                {
                    Logger.HandleError(ex, nameof(LoanFolderMoveTool));
                }
                Request = null;
            }

            FormWrapper.TabControl.ControlRemoved -= TabControl_ControlRemoved;
        }
Пример #10
0
 /* ----------------------------------------------------------------- */
 ///
 /// OnControlRemoved
 ///
 /// <summary>
 /// コントロールが削除された時に実行されます。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 protected override void OnControlRemoved(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlRemoved(e);
     Detach(e.Control);
 }
Пример #11
0
 void ControlRemovedEvent(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     e.Control.MouseEnter -= MouseEnterEvent;
     e.Control.MouseLeave -= MouseLeaveEvent;
 }
Пример #12
0
 private void Control_Added(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     //  process size and placement and show
 }
Пример #13
0
 private void tab_hienthi_ControlAdded(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     tab_hienthi.SelectedTabPageIndex = tab_hienthi.TabPages.Count - 1;
 }
Пример #14
0
 private void Connection_ControlAdded(object sender, System.Windows.Forms.ControlEventArgs e)
 {
 }
Пример #15
0
 /* --------------------------------------------------------------------- */
 ///
 /// OnControlAdded
 ///
 /// <summary>
 /// このコントロールが何らかのコンテナに追加された時に実行されます。
 /// </summary>
 ///
 /* --------------------------------------------------------------------- */
 protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlAdded(e);
     _backColor = BackColor;
 }
Пример #16
0
 private void obj_Control(System.Object sender, System.Windows.Forms.ControlEventArgs e)
 {
     this.OnChanged(sender);
 }
Пример #17
0
 protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlAdded(e);
     UseVisualStyleBackColor = false;
 }
Пример #18
0
 /* ----------------------------------------------------------------- */
 ///
 /// Control_ControlRemoved
 ///
 /// <summary>
 /// コントロールから子コントロールが削除された時に実行される
 /// ハンドラです。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private void Control_ControlRemoved(object sender, System.Windows.Forms.ControlEventArgs e)
 => Detach(e.Control);
Пример #19
0
 protected override void OnControlRemoved(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlRemoved(e);
     this.SetAutoItemSize();
 }
Пример #20
0
 private void BoundControlChildAdded(object sender, System.Windows.Forms.ControlEventArgs e)
 {
     Bind(e.Control);
 }
Пример #21
0
 protected override void OnControlAdded(System.Windows.Forms.ControlEventArgs e)
 {
     base.OnControlAdded(e);
     EnsureRibbonModule(e.Control);
 }
Пример #22
0
 /* ----------------------------------------------------------------- */
 ///
 /// Control_ControlAdded
 ///
 /// <summary>
 /// コントロールに子コントロールが追加された時に実行される
 /// ハンドラです。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private void Control_ControlAdded(object sender, System.Windows.Forms.ControlEventArgs e)
 => Attach(e.Control);
Пример #23
0
 protected virtual void OnControlRemoved(System.Windows.Forms.ControlEventArgs e);