This question is locked. New answers and comments are not allowed.
i am using the following code to save the data.
button click()
{
clientLeave.SaveLeaveApplicationCompleted += new EventHandler<SaveLeaveApplicationCompletedEventArgs>(clientLeave_SaveLeaveApplicationCompleted1);
clientLeave.SaveLeaveApplicationAsync(item);
}
void clientLeave_SaveLeaveApplicationCompleted1(object sender, SaveLeaveApplicationCompletedEventArgs e)
{
if (e.Result > -1)
{
MessageBox.Show("Record Saved Successfully", Declares.MsgTitle, MessageBoxButton.OK);
}
}
Note:
If i save the second record, message box is showing twice & thrice for 3rd record and so on...
button click()
{
clientLeave.SaveLeaveApplicationCompleted += new EventHandler<SaveLeaveApplicationCompletedEventArgs>(clientLeave_SaveLeaveApplicationCompleted1);
clientLeave.SaveLeaveApplicationAsync(item);
}
void clientLeave_SaveLeaveApplicationCompleted1(object sender, SaveLeaveApplicationCompletedEventArgs e)
{
if (e.Result > -1)
{
MessageBox.Show("Record Saved Successfully", Declares.MsgTitle, MessageBoxButton.OK);
}
}
Note:
If i save the second record, message box is showing twice & thrice for 3rd record and so on...