///<summary>Used as a shell to store information events need to update a progress window.</summary> public ProgressBarHelper(string labelValue, string percentValue = "", int blockValue = 0, int blockMax = 0 , ProgBarStyle progressStyle = ProgBarStyle.NoneSpecified, string tagString = "", int marqueeSpeed = 0, string labelTop = "", bool isLeftValHidden = false, bool isTopHidden = false, bool isPercentHidden = false, ProgBarEventType progressBarEventType = ProgBarEventType.ProgressBar) { _labelValue = labelValue; _percentValue = percentValue; _blockValue = blockValue; _blockMax = blockMax; _progressStyle = progressStyle; _progressBarEventType = progressBarEventType; _tagString = tagString; _marqueeSpeed = marqueeSpeed; _labelTop = labelTop; _isValHidden = isLeftValHidden; _isTopHidden = isTopHidden; _isPercentHidden = isPercentHidden; }
public void UpdateProgressDetailed(string labelValue, string percentVal = "", string tagString = "", int barVal = 0, int barMax = 100, int marqSpeed = 0, string labelTop = "", bool isLeftHidden = false, bool isTopHidden = false, bool isPercentHidden = false, ProgBarStyle progStyle = ProgBarStyle.Blocks, ProgBarEventType progEvent = ProgBarEventType.ProgressBar) { }
public void UpdateProgressDetailed(string labelValue, string percentVal = "", string tagString = "", int barVal = 0, int barMax = 100, int marqSpeed = 0, string labelTop = "", bool isLeftHidden = false, bool isTopHidden = false, bool isPercentHidden = false, ProgBarStyle progStyle = ProgBarStyle.Blocks, ProgBarEventType progEvent = ProgBarEventType.ProgressBar) { ProgressBarHelper progHelper = new ProgressBarHelper(labelValue, percentVal, barVal, barMax, progStyle, tagString, marqSpeed, labelTop, isLeftHidden, isTopHidden, isPercentHidden, progEvent); UpdateProgress(labelValue, progHelper, true, false); }
/// <summary>Initializes a new bar or updates the progress bar with more specific information</summary> public void UpdateProgressDetailed(string labelValue, string tagString, string percentVal = "", int barVal = 0, int barMax = 100, int marqSpeed = 0 , string labelTop = "", bool isLeftHidden = false, bool isTopHidden = false, bool isPercentHidden = false , ProgBarStyle progStyle = ProgBarStyle.Blocks, ProgBarEventType progEvent = ProgBarEventType.ProgressBar) { Fire(new ODEventArgs(_eventName, new ProgressBarHelper(labelValue, percentVal, barVal, barMax, progStyle , tagString, marqSpeed, labelTop, isLeftHidden, isTopHidden, isPercentHidden, progressBarEventType: progEvent))); }
///<summary>Updates the progress bar with these details.</summary> public void UpdateProgressDetailed(string labelValue, string percentVal = "", string tagString = "", int barVal = 0, int barMax = 100, int marqSpeed = 0, string labelTop = "", bool isLeftHidden = false, bool isTopHidden = false, bool isPercentHidden = false, ProgBarStyle progStyle = ProgBarStyle.Blocks, ProgBarEventType progEvent = ProgBarEventType.ProgressBar) { if (_formProgress.InvokeRequired) { _formProgress.BeginInvoke(() => UpdateProgressDetailed(labelValue, percentVal, tagString, barVal, barMax, marqSpeed, labelTop, isLeftHidden, isTopHidden, isPercentHidden, progStyle, progEvent)); return; } _formProgress.UpdateProgressDetailed(labelValue, percentVal, tagString, barVal, barMax, marqSpeed, labelTop, isLeftHidden, isTopHidden, isPercentHidden, progStyle, progEvent); }