private void workerEditNote_DoWork(object sender, DoWorkEventArgs e) { var note = e.Argument as Note; _noteManager.Edit(note); }