// 备份主调方法 private void btnSyncBegin_Click(object sender, EventArgs e) { SyncTask task = GetTask(); if (task == null) return; try { using (var sync = new SyncForm(task)) { sync.ShowDialog(this); } } catch(Exception exp) { MessageBox.Show(exp.ToString()); } }
// 备份主调方法 private void btnSyncBegin_Click(object sender, EventArgs e) { SyncTask task = GetTask(); if (task == null) { return; } try { using (var sync = new SyncForm(task)) { sync.ShowDialog(this); } } catch (Exception exp) { MessageBox.Show(exp.ToString()); } }