private bool CommitPendingChanges() { if (commit_delay.IsPending) { commit_delay.Stop(); ((PhotoQuery)query).Commit(changed_photo); } return(true); }
private void HandleDestroy(object sender, EventArgs args) { delay.Stop(); if (thread.IsAlive) { thread.Abort(); } }