示例#1
0
        private void bttCopy_Click(object sender, EventArgs e)
        {
            int budID;
            int newProjID;
            int newRevision;

            budID       = ((RevSol.RSListItem)lstBudgets.SelectedItem).ID;
            newProjID   = ((RevSol.RSListItem)cboTargetProj.SelectedItem).ID;
            newRevision = RevSol.RSMath.IsIntegerEx(txtRevision.Text);

            string msg;

            try
            {
                CBBudget.CopyBudgetToProject(budID, newProjID, newRevision);

                msg = "Copied budget to new project";
            }
            catch
            {
                msg = "Unable to copy budget";
            }

            MessageBox.Show(msg);
        }