private void button3_Click(object sender, EventArgs e) { WorkerInit(); var duration = SHWorker.LoadHDRComplects(); this.Output.Text += $"Load HDR complects - it takes {duration}{Environment.NewLine}"; }
private void button2_Click(object sender, EventArgs e) { WorkerInit(); string errorInfo = ""; try { var duration = SHWorker.LoadBaseComplects(groupRid.Text == "" ? 0 : Convert.ToInt64(groupRid.Text), out errorInfo); this.Output.Text += $"Load base complects - it takes {duration}{Environment.NewLine}"; } catch (Exception error) { this.Output.Text += $"Load base complects - error: {errorInfo}{Environment.NewLine}"; } }