示例#1
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            frmCopyDataSource copyDataSource = new frmCopyDataSource((IdpeDataSource)lbSystemDataSources.SelectedItem);

            if (copyDataSource.ShowDialog() == DialogResult.OK)
            {
                Bind();
            }
        }
示例#2
0
        private void mnuCopy_Click(object sender, EventArgs e)
        {
            frmCopyDataSource copyDataSource = new frmCopyDataSource(SelectedDataSource);

            if (copyDataSource.ShowDialog() == DialogResult.OK)
            {
                if (copyDataSource.NewDataSourceId > 0)
                {
                    RefreshData();
                }
            }
        }