50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using Remontor.Connector;
|
|
using Remontor.Picter;
|
|
using Remontor.Seacher;
|
|
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().GetDescription();
|
|
BackCustum = this.BackColor;
|
|
SPicManager.PictureSet(Photo, hitem.GetComp());
|
|
|
|
}
|
|
|
|
private void HistoryControl_MouseEnter(object sender, EventArgs e)
|
|
{
|
|
this.BackColor = SystemColors.ControlLight;
|
|
|
|
}
|
|
|
|
private void HistoryControl_MouseLeave(object sender, EventArgs e)
|
|
{
|
|
this.BackColor = BackCustum;
|
|
}
|
|
}
|
|
}
|