public WinAddPieObj(Info.ObjListBInfo 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]; txtValue.Text = temp[1]; txtMax.Text = temp[2]; } txtBack.Text = item.BackgounrdColor ?? "#22000000"; txtFore.Text = item.ForegroundColor ?? "#EE00FF00"; txtBorderColor.Text = item.BorderColor; txtBorderThickness.Text = item.BorderThickness.ToString(); chkAnimation.IsChecked = item.Animation; }
public WinPieObj(Info.ObjListBInfo item, Properties.Settings set, Tool.DataManager dataManager) : base(item, set, dataManager) { InitializeComponent(); //UpdateDisplay(); }