public static void getData( int ID, Form main ) { AddData temp = new AddData( main ); data.ID = id = ID; data.Data = 0; data.ent = null; temp.selectData( ID ); temp.Dispose(); }
public void setBlockType(int ID, Form main) { AddData.getData(ID, main); plc.ID = AddData.Data.ID; plc.Data = AddData.Data.Data; plc.ent = AddData.Data.ent; plcCol = BlockColor.getBlockColor(ID); }