public void show(DblEvent dealFunc = null, nullEvent disposeFunc = null,string path = null) { UpanPath = path; lbDisOk.Visibility = Visibility.Hidden; btnConfirm.Visibility = Visibility.Hidden; dealHandle = dealFunc; disposeHandle = disposeFunc; pBar.Value = 0; lbValue.Content = "0.0%"; dtLoad.Start(); this.Visibility = Visibility.Visible; }
public void show(DblEvent dealFunc = null, nullEvent disposeFunc = null) { dealHandle = dealFunc; disposeHandle = disposeFunc; pBar.Value = 0; lbValue.Content = "0.0%"; //if (dealHandle == null) //{ // throw (new Exception("<progressCtrl.show> DispatcherTimer dealHandle show not be null!")); //} dtLoad.Start(); this.Visibility = Visibility.Visible; }