示例#1
0
 void Controller_NoteSelecting(int SelectedNoteIndex)
 {
     if (AttributeWindow != null)
     {
         PartsObject PO = (PartsObject)OAC.AllocedObject;
         if (SelectedNoteIndex < 0)
         {
             AttributeWindow.LoadPartsPtr(ref PO);
         }
         else
         {
             List <NoteObject> NoteList = ((PartsObject)OAC.AllocedObject).NoteList;
             if (NoteList.Count > SelectedNoteIndex)
             {
                 NoteObject NoteObj = NoteList[SelectedNoteIndex];
                 AttributeWindow.LoadNotesPtr(ref PO, ref NoteObj);
             }
         }
     }
 }
 void tw_SelectingPartChanged(PartsObject PartObject, bool isEditing)
 {
     aw.LoadPartsPtr(ref PartObject, isEditing);
 }