private async void OnSelectClicked(object sender, EventArgs e) { using (SvgSourceForm dlg = new SvgSourceForm()) { if (dlg.ShowDialog(this) == DialogResult.OK) { await this.OpenSvgSource(dlg.SvgSource); } } }
private void OnSelectClicked(object sender, EventArgs e) { SvgSourceForm dlg = new SvgSourceForm(); if (dlg.ShowDialog(this) == DialogResult.OK) { this.OpenSvgSource(dlg.SvgSource); } dlg.Dispose(); }