using Remontor.Connector; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml.Linq; namespace Remontor.History { internal partial class HistoryControl : UserControl { public Color BackCustum; public HistoryControl() { InitializeComponent(); BackCustum = this.BackColor; } public HistoryControl(HistoryItem hitem) { InitializeComponent(); string output = string.Format("{0,17: HH:mm:ss dd.MM.yy}", hitem.GetStart()); TimeLB.Text = output; PCLB.Text = hitem.NameNode(); FIOLB.Text = hitem.GetComp().GetName(); BackCustum = this.BackColor; } private void HistoryControl_MouseEnter(object sender, EventArgs e) { this.BackColor = SystemColors.ControlLight; } private void HistoryControl_MouseLeave(object sender, EventArgs e) { this.BackColor = BackCustum; } } }