private void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { foreach (ExaminationsM.Examination row in ExaminationsM.Examinations) { row.AcceptChanges(); } ExaminationsM.AcceptChanges(); Loaded(); } else { ConnectionMessage(); } }
private void ExecuteComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { ExaminationsM.Erased.Clear(); foreach (ExaminationsM.Examination row in ExaminationsM.Examinations) { row.AcceptChanges(); } ExaminationsM.AcceptChanges(); dialog = new Dialog(false, "Módosítások mentése", async() => await Utilities.Loading.Hide()); dialog.content = new TextBlock("A módosítások mentése sikeresen megtörtént"); dialog.Start(); } else { ConnectionMessage(); } }