public void Add(UIStepControl stp) { HelperUI.ModifyMethod(this, () => { uiStepContainer1.Add(stp); }); }
public void Add(UIStepControl stp) { HelperUI.ModifyMethod(this, () => { panel.Controls.Add(stp); }); }
public UIStepContainer() { HelperUI.ModifyMethod(this, () => { InitializeComponent(); }); }
public void SetValueFinish(string item, bool isOk, bool isWarning, string message) { Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); long totalBytesOfMemoryUsed = currentProcess.WorkingSet64; #if NETCOREAPP3_0 HelperUI.ModifyMethod(this, () => { if (isOk) { //picture.Image = this.imageList1.Images[(int)EIcons.END_OK]; this.after.Text = item; PBack.BackColor = System.Drawing.Color.Green; } else if (isWarning) { //this.picture.Image = this.imageList1.Images[(int)EIcons.END_WARNINGS]; this.after.Text = item; PBack.BackColor = System.Drawing.Color.Orange; } else { //this.picture.Image = this.imageList1.Images[(int)EIcons.END_ERRORS]; this.after.Text = message; PBack.BackColor = System.Drawing.Color.Red; } this.lblFinish.Text = "Finished: " + DateTime.Now.ToString("hh.mm.ss.ffffff") + " MEM " + totalBytesOfMemoryUsed; }); #endif }
public void SetValueInitial(string desc) { HelperUI.ModifyMethod(this, () => { this.lblDesc.Text = (desc); }); }
public void ResizeToJustIcon() { HelperUI.ModifyMethod(this, () => { isMin = EDisplayMode.JUST_ICON; RefreshMode(); }); }
public UIStepContainer() { #if NETCOREAPP3_0 HelperUI.ModifyMethod(this, () => { InitializeComponent(); }); #endif }
public void SetValueInitial(string desc) { #if NETCOREAPP3_0 HelperUI.ModifyMethod(this, () => { this.lblDesc.Text = (desc); }); #endif }
public void ResizeToJustIcon() { #if NETCOREAPP3_0 HelperUI.ModifyMethod(this, () => { isMin = EDisplayMode.JUST_ICON; RefreshMode(); }); #endif }
public void SetValueException(string item, string desc) { HelperUI.ModifyMethod(this, () => { //this.picture.Image = this.imageList1.Images[(int)EIcons.END_ERRORS]; PBack.BackColor = System.Drawing.Color.Red; this.after.Text = item; this.lblFinish.Text = "Finished with Exceptions: " + DateTime.Now; }); }
public UIStepControl() { HelperUI.ModifyMethod(this, () => { InitializeComponent(); RefreshMode(); //picture.Image = this.imageList1.Images[(int)EIcons.INITIAL]; PBack.BackColor = System.Drawing.Color.LightGray; }); }
public void SetValueStart(string item) { Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); long totalBytesOfMemoryUsed = currentProcess.WorkingSet64; HelperUI.ModifyMethod(this, () => { //this.picture.Image = this.imageList1.Images[(int)EIcons.START]; PBack.BackColor = System.Drawing.Color.Gray; this.before.Text = item; this.lblStart.Text = "Started: " + DateTime.Now.ToString("hh.mm.ss.ffffff") + " MEM " + totalBytesOfMemoryUsed; }); }