示例#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);
         }
     }
 }
示例#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();
        }