예제 #1
0
 private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection)
 {
     if (null != CedeFocusEvent)
     {
         CedeFocusEventArgs args = new CedeFocusEventArgs();
         args.FieldIndex                = FieldIndex;
         args.IPAddressControlAction    = IPAddressControlAction.None;
         args.IPAddressControlDirection = ipAddressControlDirection;
         args.IPAddressControlSelection = ipAddressControlSelection;
         CedeFocusEvent(this, args);
     }
 }
예제 #2
0
        public void TakeFocus(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection)
        {
            Focus();

            if (ipAddressControlSelection == IPAddressControlSelection.All)
            {
                SelectionStart  = 0;
                SelectionLength = TextLength;
            }
            else
            {
                SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward) ? 0 : TextLength;
            }
        }
예제 #3
0
 private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection,
                                 IPAddressControlSelection ipAddressControlSelection)
 {
     if (null != this.CedeFocusEvent)
     {
         CedeFocusEventArgs args = new CedeFocusEventArgs
         {
             FieldIndex                = this.FieldIndex,
             IPAddressControlAction    = IPAddressControlAction.None,
             IPAddressControlDirection = ipAddressControlDirection,
             IPAddressControlSelection = ipAddressControlSelection
         };
         this.CedeFocusEvent(this, args);
     }
 }
 private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection)
 {
     if (null != CedeFocusEvent)
     {
         CedeFocusEventArgs args = new CedeFocusEventArgs();
         args.FieldIndex = FieldIndex;
         args.IPAddressControlAction = IPAddressControlAction.None;
         args.IPAddressControlDirection = ipAddressControlDirection;
         args.IPAddressControlSelection = ipAddressControlSelection;
         CedeFocusEvent(this, args);
     }
 }
        public void TakeFocus(IPAddressControlDirection ipAddressControlDirection, IPAddressControlSelection ipAddressControlSelection)
        {
            Focus();

            if (ipAddressControlSelection == IPAddressControlSelection.All)
            {
                SelectionStart = 0;
                SelectionLength = TextLength;
            }
            else
                SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward) ? 0 : TextLength;
        }
예제 #6
0
 private void SendCedeFocusEvent(IPAddressControlDirection ipAddressControlDirection,
                                 IPAddressControlSelection ipAddressControlSelection)
 {
     if (null != this.CedeFocusEvent)
     {
         CedeFocusEventArgs args = new CedeFocusEventArgs
                                       {
                                           FieldIndex = this.FieldIndex,
                                           IPAddressControlAction = IPAddressControlAction.None,
                                           IPAddressControlDirection = ipAddressControlDirection,
                                           IPAddressControlSelection = ipAddressControlSelection
                                       };
         this.CedeFocusEvent(this, args);
     }
 }
예제 #7
0
        public void TakeFocus(IPAddressControlDirection ipAddressControlDirection,
                              IPAddressControlSelection ipAddressControlSelection)
        {
            this.Focus();

            if (ipAddressControlSelection == IPAddressControlSelection.All)
            {
                this.SelectionStart = 0;
                this.SelectionLength = this.TextLength;
            }
            else
                this.SelectionStart = (ipAddressControlDirection == IPAddressControlDirection.Forward)
                                          ? 0
                                          : this.TextLength;
        }