public MainWinTestWpf2() { InitializeComponent(); me = this; pb1ProgressValue = new Progress <double>(value => Pb1Value = value); message = new Progress <string>(value => TbxMessage += value); // pb1ProgressValue = new Progress<double>(value => Pb1.Value = value); // message = new Progress<string>(value => Tbx1.Text += value); progressDouble = pb1ProgressValue; progressString = message; Pb1Value = 0; Pb1MaxValue = 100; }
public MainWinTestWpf2() { InitializeComponent(); me = this; adj = new AdjustMergeItems(); OnPropertyChange("Adjust"); adj.UpdateTaskStatus2(PauseState.WAITING); Pb1Value = 0; Pb1MaxValue = 100; pb1Double = new Progress <double>(value => Pb1Value = value); // pb1Double = new Progress<double>(value => Pb1.Value = value); Pb2Value = 0; Pb2MaxValue = 100; pb2Double = new Progress <double>(value => Pb2.Value = value); // PauseStateValue = PauseState.WAITING; // UpdateProcessStatus(); }