* ShowStatusForm: 增加可设置进度值
This commit is contained in:
parent
0a05dd4312
commit
9df4a65380
@ -101,10 +101,10 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 设置进度提示窗步进值加1
|
/// 设置进度提示窗步进值加1
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void SetStatusFormStepIt(this Form owner)
|
public static void SetStatusFormStepIt(this Form owner, int step = 1)
|
||||||
{
|
{
|
||||||
if (!StatusFormService.IsRun) return;
|
if (!StatusFormService.IsRun) return;
|
||||||
StatusFormService.SetFormStepIt();
|
StatusFormService.SetFormStepIt(step);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -197,11 +197,11 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetFormStepIt()
|
public void SetFormStepIt(int step = 1)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
form?.StepIt();
|
form?.StepIt(step);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user