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

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                this.OpenSvgSource(dlg.SvgSource);
            }
            dlg.Dispose();
        }