Exemplo n.º 1
0
        // 备份主调方法

        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());
            }
        }
Exemplo n.º 2
0
        // 备份主调方法

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