Пример #1
0
 private void buttonAddOrEditGoal_Click(object sender, System.EventArgs e)
 {
     try
     {
         goal.Name         = textBoxGoalName.Value.ToString();
         goal.Significance = floatFieldBoxSignificance.Value;
         goal.Likelihood   = floatFieldBoxLikelihood.Value;
         rpc.AddOrUpdateGoal(goal);
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     Close();
 }