Exemple #1
0
 void macro_item_assignments_AcceptNewChildRow(MySQLRelationTable.MySQLRelationTableEventArgs args, DataRow row)
 {
     if (row.Table.TableName == "floor_item_map")
     {
         object o = row["deleted"];
         if (o == null || DBNull.Value == o || Convert.ToInt32(o) == 0)
         {
             args.accept = true;
         }
     }
     else
     {
         args.accept = true;
     }
 }
Exemple #2
0
        void macro_item_assignments_AcceptNewRow(MySQLRelationTable.MySQLRelationTableEventArgs args, DataRow row)
        {
            DataRow item_map = row.GetParentRow("macro_assignments_meta_floor_item_map");

            if (item_map != null)
            {
                object o = item_map["deleted"];
                if (o == null || DBNull.Value == o || Convert.ToInt32(o) == 0)
                {
                    args.accept = true;
                }
            }
            else
            {
                args.accept = true;
            }
        }