예제 #1
0
 public WinAddBarObj(Info.ObjInfo item) : base(item)
 {
     InitializeComponent();
     txtName.Text = item.Name;
     foreach (var i in supportList)
     {
         cbbValue.Items.Add(i);
     }
     string[] temp = item.Value.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries);
     if (temp.Length == 3)
     {
         txtMin.Text = temp[0];
         txtMax.Text = temp[2];
         if (cbbValue.Items.Contains(temp[1]))
         {
             cbbValue.SelectedItem = temp[1];
         }
         else
         {
             txtValue.Text      = temp[1];
             chkValue.IsChecked = true;
         }
     }
     txtBack.ColorBrush           = item.Backgounrd ?? new SolidColorBrush(Color.FromArgb(0x22, 0, 0, 0));
     txtFore.ColorBrush           = item.Foreground ?? new SolidColorBrush(Color.FromArgb(0xEE, 0, 0xFF, 0));
     txtBorderColor.ColorBrush    = item.BorderColor;
     txtBorderThickness.Text      = item.BorderThickness.ToString();
     chkAnimation.IsChecked       = item.Animation;
     cbbOrientation.SelectedIndex = item.Orientation;
     chkReverse.IsChecked         = item.Reverse;
 }
예제 #2
0
 public WinAddTextObj(Info.ObjInfo item, string hintText) : base(item)
 {
     InitializeComponent();
     HintText                  = hintText;
     txtName.Text              = item.Name;
     txtValue.Text             = item.Value;
     txtBack.ColorBrush        = item.Backgounrd ?? Brushes.Transparent;
     txtFore.ColorBrush        = item.Foreground ?? Brushes.White;
     txtBorderColor.ColorBrush = item.BorderColor;
     txtBorderThickness.Text   = item.BorderThickness.ToString();
     chkAbs.IsChecked          = item.Absolute;
     chkAnimation.IsChecked    = item.Animation;
     foreach (var support in supportList)
     {
         cbbAdd.Items.Add(support);
     }
 }
        public WinPlainTextObj(Info.ObjInfo item, bool adjust) : base(item, adjust)
        {
            LoadUI();

            InitializeComponent();
        }
예제 #4
0
 public WinPercentageDataTypeObjBase(Info.ObjInfo item, DataManager dataManager, bool adjust) : base(item, dataManager, adjust)
 {
 }
예제 #5
0
 public WinAddObjBase(Info.ObjInfo item)
 {
     this.item = item;
 }
예제 #6
0
 public WinBarObj(Info.ObjInfo item, DataAnalysis.DataManager dataManager, bool adjust) : base(item, dataManager, adjust)
 {
     InitializeComponent();
     bar.RenderTransformOrigin = new Point(0.5, 0.5);
 }
 public WinTextObj(Info.ObjInfo item, DataManager dataManager, bool adjust) : base(item, dataManager, adjust)
 {
     InitializeComponent();
     dataAnalysis = new TextDataAnalysis(dataManager, item);
 }