コード例 #1
0
 public void Add(UIStepControl stp)
 {
     HelperUI.ModifyMethod(this, () =>
     {
         uiStepContainer1.Add(stp);
     });
 }
コード例 #2
0
 public void Add(UIStepControl stp)
 {
     HelperUI.ModifyMethod(this, () =>
     {
         panel.Controls.Add(stp);
     });
 }
コード例 #3
0
 public UIStepContainer()
 {
     HelperUI.ModifyMethod(this, () =>
     {
         InitializeComponent();
     });
 }
コード例 #4
0
        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
        }
コード例 #5
0
 public void SetValueInitial(string desc)
 {
     HelperUI.ModifyMethod(this, () =>
     {
         this.lblDesc.Text = (desc);
     });
 }
コード例 #6
0
 public void ResizeToJustIcon()
 {
     HelperUI.ModifyMethod(this, () =>
     {
         isMin = EDisplayMode.JUST_ICON;
         RefreshMode();
     });
 }
コード例 #7
0
        public UIStepContainer()
        {
#if NETCOREAPP3_0
            HelperUI.ModifyMethod(this, () =>
            {
                InitializeComponent();
            });
#endif
        }
コード例 #8
0
        public void SetValueInitial(string desc)
        {
#if NETCOREAPP3_0
            HelperUI.ModifyMethod(this, () =>
            {
                this.lblDesc.Text = (desc);
            });
#endif
        }
コード例 #9
0
        public void ResizeToJustIcon()
        {
#if NETCOREAPP3_0
            HelperUI.ModifyMethod(this, () =>
            {
                isMin = EDisplayMode.JUST_ICON;
                RefreshMode();
            });
#endif
        }
コード例 #10
0
 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;
     });
 }
コード例 #11
0
 public UIStepControl()
 {
     HelperUI.ModifyMethod(this, () =>
     {
         InitializeComponent();
         RefreshMode();
         //picture.Image = this.imageList1.Images[(int)EIcons.INITIAL];
         PBack.BackColor = System.Drawing.Color.LightGray;
     });
 }
コード例 #12
0
        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;
            });
        }