Пример #1
0
        //Constructor
        public TsCheckBox(XElement InputXml, TsColumn Parent) : base(Parent)
        {
            this.UserControl.DataContext = this;
            TsCheckBoxUI cbui = new TsCheckBoxUI();

            this.Control            = cbui;
            this._checkboxui        = cbui;
            this.InteractiveControl = cbui.CheckBox;
            this.Label                     = new TsLabelUI();
            this.ValidationHandler         = new ValidationHandler(this);
            this._validationtooltiphandler = new ValidationToolTipHandler(this);

            this.SetDefaults();
            this._setvaluequerylist = new QueryPriorityList(this);
            this.LoadXml(InputXml);
        }
Пример #2
0
        //Constructor
        public TsPasswordBox(XElement InputXml, TsColumn Parent) : base(Parent)
        {
            this._setvaluequerylist = null;

            this._passwordboxui = new TsPasswordBoxUI();
            this.Control        = this._passwordboxui;
            this.Label          = new TsLabelUI();
            this._passwordboxui.PasswordBox.KeyDown += this.OnKeyDown;

            this.UserControl.DataContext = this;
            this.SetDefaults();

            this.ValidationHandler         = new ValidationHandler(this);
            this._validationtooltiphandler = new ValidationToolTipHandler(this);

            this.LoadXml(InputXml);
            Director.Instance.ConfigLoadFinished += this.OnConfigLoadFinished;
        }
Пример #3
0
        //constructor
        public ComplianceOptionBase(TsColumn Parent) : base(Parent)
        {
            this.Label        = new TsLabelUI();
            this._rootelement = this.GetComplianceRootElement();
            if (this._rootelement == null)
            {
                throw new TsGuiKnownException("There is prooblem in the compliance tree. Root is null", string.Empty);
            }
            this._rootelement.ComplianceRetry += this.OnComplianceRetry;

            this.FillColor                 = new SolidColorBrush(Colors.Blue);
            this.StrokeColor               = new SolidColorBrush(Colors.Blue);
            this._compliancehandler        = new ComplianceHandler(this);
            this._validationtooltiphandler = new ValidationToolTipHandler(this);
            this._setvaluequerylist        = new QueryPriorityList(this);
            this.UserControl.DataContext   = this;
            this.SetDefaults();
        }
Пример #4
0
        private void Init()
        {
            this._setvaluequerylist = new QueryPriorityList(this);

            this._freetextui        = new TsFreeTextUI();
            this.Control            = this._freetextui;
            this.InteractiveControl = this._freetextui.TextBox;
            this.Label = new TsLabelUI();

            this.ValidationHandler         = new ValidationHandler(this);
            this._validationtooltiphandler = new ValidationToolTipHandler(this);

            this.UserControl.DataContext          = this;
            Director.Instance.WindowLoaded       += this.OnWindowLoaded;
            this._freetextui.TextBox.LostFocus   += this.OnValidationEvent;
            this._freetextui.TextBox.GotFocus    += this.OnGotFocus;
            this._freetextui.TextBox.TextChanged += this.OnTextChanged;
            this.UserControl.IsEnabledChanged    += this.OnValidationEvent;
            this.SetDefaults();
        }