예제 #1
0
 public static void listChanged <T>(bool editorChange, ref WMG_List <T> w_list, ref List <T> list, bool oneValChanged, int index)
 {
     if (editorChange)
     {
         if (oneValChanged)
         {
             w_list.SetValViaEditor(index, list[index]);
         }
         else
         {
             w_list.SetListViaEditor(list);
         }
     }
     else
     {
         if (oneValChanged)
         {
             list[index] = w_list[index];
         }
         else
         {
             list = new List <T> (w_list);
         }
     }
 }