示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#5
0
        private void FormMain_NoteNameChanged(object sender, NoteNameChangedEventArgs e)
        {
            var note = sender as PNote;

            changeNodeName(note);
        }
示例#6
0
 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);
     }
 }