private void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { foreach (object row in ServicesM.Services) { (row as ServicesM.Service).AcceptChanges(); } ServicesM.AcceptChanges(); modified = false; Loaded(); } else { ConnectionMessage(); } }
private void ExecuteComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { foreach (object row in ServicesM.Services) { (row as ServicesM.Service).AcceptChanges(); } ServicesM.AcceptChanges(); modified = false; 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(); } }