Ejemplo n.º 1
0
        public WidgetProperties(GrblSettingDetails Properties)
        {
            properties = Properties;

            Id       = Properties.Id;
            DataType = Properties.DataType == GrblSettingDetails.DataTypes.PASSWORD ? GrblSettingDetails.DataTypes.TEXT : Properties.DataType;
            Format   = Properties.Format;
            Unit     = Properties.Unit;
            Label    = Properties.Name;
            Value    = Properties.Value;
            Min      = Properties.Min;
            Max      = Properties.Max;
        }
Ejemplo n.º 2
0
        private void ShowSetting(GrblSettingDetails setting, bool assign)
        {
            details.Visibility = Visibility.Visible;

            if (curSetting != null)
            {
                if (assign)
                {
                    curSetting.Assign();
                }
                canvas.Children.Clear();
                curSetting.Dispose();
            }
            txtDescription.Text  = setting.Description;
            curSetting           = new Widget(this, new WidgetProperties(setting), canvas);
            curSetting.IsEnabled = true;
        }