private void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { foreach (object row in UsersMViewElements.Users) { (row as UserAdministrateMViewElements.UserRow).AcceptChanges(); } UsersMViewElements.AcceptChanges(); Loaded(); } else { ConnectionMessage(); } }
private void ExecuteComplete(object sender, RunWorkerCompletedEventArgs e) { if (workingConn) { foreach (object row in UsersMViewElements.Users) { (row as UserAdministrateMViewElements.UserRow).AcceptChanges(); } UsersMViewElements.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(); } }