Пример #1
0
        } // Function

        public void tabOff(object txtB, ValueSlider sld)
        {
            TextBox txt      = (TextBox)txtB;
            bool    isDecBox = txt.Name.Contains("Dec");
            //vSldGreen.txtHex.IsTabStop = isDecBox
            //vSldBlue.txtHex.IsTabStop = isDecBox
            //vSldAlpha.txtHex.IsTabStop = isDecBox
            //vSldRed.txtHex.IsTabStop = isDecBox

            //vSldRed.txtDec.IsTabStop = isDecBox
            //vSldGreen.txtDec.IsTabStop = isDecBox
            //vSldBlue.txtDec.IsTabStop = isDecBox
            //vSldAlpha.txtDec.IsTabStop = isDecBox


            //If txt.Name.Contains("Hex")) {
            //    Select Case sld.Text
            //        Case "Red"
            //            vSldGreen.txtHex.Focus()
            //            Exit Select
            //        Case "Green"
            //            vSldBlue.txtHex.Focus()
            //            Exit Select
            //        Case "Blue"
            //            vSldAlpha.txtHex.Focus()
            //            Exit Select
            //        Case Else // Alpha
            //            vSldRed.txtDec.Focus()
            //    } // Select
            //ElseIf txt.Name.Contains("Dec")) {
            //    Select Case sld.Text
            //        Case "Red"
            //            vSldGreen.txtDec.Focus()
            //            Exit Select
            //        Case "Green"
            //            vSldBlue.txtDec.Focus()
            //            Exit Select
            //        Case "Blue"
            //            vSldAlpha.txtDec.Focus()
            //            Exit Select
            //        Case Else // Alpha
            //            vSldRed.txtHex.Focus()
            //    } // Select

            //}
        }
Пример #2
0
 private void SetLinkage(ValueSlider sld, HTMLColorValue refByte, MainWindow par)
 {
     sld.Parent      = par;
     sld.LinkedValue = refByte;
     sld.Value       = 0;
 }