public void showDialogInvestProject()
 {
     generateBookMark();
     DialogInvestProject dialog = new DialogInvestProject();
     try
     {
         if (dataGridInvestProject.CurrentRow.DataBoundItem != null && dataGridInvestProject.CurrentRow.DataBoundItem.GetType() == typeof(InvestProject))
         {
             InvestProject ip = (InvestProject)dataGridInvestProject.CurrentRow.DataBoundItem;
             dialog.setProject(ip);
         }
     }
     catch (Exception error)
     {
         //TODO;
         //throw new Exception();
     }
     dialog.ShowDialog();
     initializationInvestProject();
 }
 private void insertInvestProjectMenu(object sender, EventArgs e)
 {
     DialogInvestProject d = new DialogInvestProject();
     d.ShowDialog();
     initializationInvestProject();
 }