public MainWindow() { InitializeComponent(); Initialize(); Debug.Initialize(new Progress <string>(AppendLogText)); DataTool.Initialize(new Progress <int>(SetProgressBarPercent)); }
private void button_GetPatchList_Click(object sender, EventArgs e) { if (DataTool.running) { this.button_GetPatchList.Text = "Start"; DataTool.running = false; DataTool.EndSession(); } else { this.button_GetPatchList.Text = "Stop"; DataTool.running = true; DataTool.BeginSession(); } }