private void FormMain_NoteNameChanged(object sender, NoteNameChangedEventArgs e) { try { var note = sender as PNote; if (note == null || _Notes.Count == 0) { return; } var item = _Notes.FirstOrDefault(n => n.Id == note.ID); if (item == null) { return; } item.Name = note.Name; } catch (Exception ex) { PNStatic.LogException(ex); } }
private void note_NoteNameChanged(object sender, NoteNameChangedEventArgs e) { if (NoteNameChanged != null) { NoteNameChanged(sender, e); } }
private void FormMain_NoteNameChanged(object sender, NoteNameChangedEventArgs e) { var note = sender as PNote; changeNodeName(note); }
void FormMain_NoteNameChanged(object sender, NoteNameChangedEventArgs e) { try { var note = sender as PNote; if (note == null || _Notes.Count == 0) return; var item = _Notes.FirstOrDefault(n => n.Id == note.ID); if (item == null) return; item.Name = note.Name; } catch (Exception ex) { PNStatic.LogException(ex); } }
private void FormMain_NoteNameChanged(object sender, NoteNameChangedEventArgs e) { try { var note = sender as PNote; if (note == null) return; var cpn = _Notes.FirstOrDefault(n => n.Id == note.ID); if (cpn == null) return; cpn.Name = note.Name; } catch (Exception ex) { PNStatic.LogException(ex); } }