void webService_InsertNewComapnyCompleted(object sender, ServiceReferenceLocksmith.InsertNewComapnyCompletedEventArgs e) { if (e.Result) { MessageBox.Show("New Company has saved successfully."); } else { MessageBox.Show("Failed to save new Company."); } }
void webService_InsertNewJobCompleted(object sender, ServiceReferenceLocksmith.InsertNewJobCompletedEventArgs e) { if (e.Result != null) { _textBoxCompanyPayout.Text = e.Result._company.ToString(); _textBoxGross.Text = e.Result._gross.ToString(); _textBoxGrossCost.Text = e.Result._grossMinusCost.ToString(); _textBoxNetPayment.Text = e.Result._businessNet.ToString(); _textBoxSumCash.Text = e.Result._sumCash.ToString(); _textBoxTechnicianCut.Text = e.Result._techCut.ToString(); _textBoxTechnicianPayout.Text = e.Result._techPayout.ToString(); MessageBox.Show("New Job has saved successfully."); } else { MessageBox.Show("Failed to save new Job."); } }
void webService_GetTechnicianListCompleted(object sender, ServiceReferenceLocksmith.GetTechnicianListCompletedEventArgs e) { _DataGridAllTechnicians.ItemsSource = e.Result; }
void webService_GetCompanyListCompleted(object sender, ServiceReferenceLocksmith.GetCompanyListCompletedEventArgs e) { _DataGridAllCompanies.ItemsSource = e.Result; }