// Creates CircuitProbe wrapper private CircuitProbe CreateItem( // Fields of CircuitProbe table Guid CircuitProbeId, string Name, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = CircuitProbeId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); CircuitProbeData dataCircuitProbe = new CircuitProbeData() { CircuitProbeId = CircuitProbeId, Name = Name, Note = Note, }; return(this.Create(this.Table.Insert(ref dataCircuitProbe), rowIdCircuit)); }
// Creates GraphicsArray wrapper private GraphicsArray CreateItem( // Fields of GraphicsArray table Guid GraphicsArrayId, bool WriteOn1, MemoryOnStart OnStart, int DataBitWidth, int BitsPerPixel, int Width, int Height, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = GraphicsArrayId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); GraphicsArrayData dataGraphicsArray = new GraphicsArrayData() { GraphicsArrayId = GraphicsArrayId, WriteOn1 = WriteOn1, OnStart = OnStart, DataBitWidth = DataBitWidth, BitsPerPixel = BitsPerPixel, Width = Width, Height = Height, Note = Note, }; return(this.Create(this.Table.Insert(ref dataGraphicsArray), rowIdCircuit)); }
// Creates Constant wrapper private Constant CreateItem( // Fields of Constant table Guid ConstantId, int BitWidth, int Value, PinSide PinSide, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = ConstantId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); ConstantData dataConstant = new ConstantData() { ConstantId = ConstantId, BitWidth = BitWidth, Value = Value, PinSide = PinSide, Note = Note, }; return(this.Create(this.Table.Insert(ref dataConstant), rowIdCircuit)); }
// Creates LedMatrix wrapper private LedMatrix CreateItem( // Fields of LedMatrix table Guid LedMatrixId, LedMatrixType MatrixType, LedMatrixCellShape CellShape, int Rows, int Columns, int Colors, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = LedMatrixId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); LedMatrixData dataLedMatrix = new LedMatrixData() { LedMatrixId = LedMatrixId, MatrixType = MatrixType, CellShape = CellShape, Rows = Rows, Columns = Columns, Colors = Colors, Note = Note, }; return(this.Create(this.Table.Insert(ref dataLedMatrix), rowIdCircuit)); }
// Creates LogicalCircuit wrapper private LogicalCircuit CreateItem( // Fields of LogicalCircuit table Guid LogicalCircuitId, string Name, string Notation, string Note, string Category, bool IsDisplay // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = LogicalCircuitId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); LogicalCircuitData dataLogicalCircuit = new LogicalCircuitData() { LogicalCircuitId = LogicalCircuitId, Name = Name, Notation = Notation, Note = Note, Category = Category, IsDisplay = IsDisplay, }; return(this.Create(this.Table.Insert(ref dataLogicalCircuit), rowIdCircuit)); }
// Creates Sensor wrapper private Sensor CreateItem( // Fields of Sensor table Guid SensorId, SensorType SensorType, int BitWidth, PinSide PinSide, string Notation, string Data, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = SensorId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); SensorData dataSensor = new SensorData() { SensorId = SensorId, SensorType = SensorType, BitWidth = BitWidth, PinSide = PinSide, Notation = Notation, Data = Data, Note = Note, }; return(this.Create(this.Table.Insert(ref dataSensor), rowIdCircuit)); }
// Creates Sound wrapper private Sound CreateItem( // Fields of Sound table Guid SoundId, PinSide PinSide, string Notation, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = SoundId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); SoundData dataSound = new SoundData() { SoundId = SoundId, PinSide = PinSide, Notation = Notation, Note = Note, }; return(this.Create(this.Table.Insert(ref dataSound), rowIdCircuit)); }
// Creates CircuitButton wrapper private CircuitButton CreateItem( // Fields of CircuitButton table Guid CircuitButtonId, string Notation, bool IsToggle, PinSide PinSide, bool Inverted, int Width, int Height, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = CircuitButtonId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); CircuitButtonData dataCircuitButton = new CircuitButtonData() { CircuitButtonId = CircuitButtonId, Notation = Notation, IsToggle = IsToggle, PinSide = PinSide, Inverted = Inverted, Width = Width, Height = Height, Note = Note, }; return(this.Create(this.Table.Insert(ref dataCircuitButton), rowIdCircuit)); }
// Creates Splitter wrapper private Splitter CreateItem( // Fields of Splitter table Guid SplitterId, int BitWidth, int PinCount, bool Clockwise // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = SplitterId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); SplitterData dataSplitter = new SplitterData() { SplitterId = SplitterId, BitWidth = BitWidth, PinCount = PinCount, Clockwise = Clockwise, }; return(this.Create(this.Table.Insert(ref dataSplitter), rowIdCircuit)); }
// Creates Memory wrapper private Memory CreateItem( // Fields of Memory table Guid MemoryId, bool Writable, bool WriteOn1, MemoryOnStart OnStart, int AddressBitWidth, int DataBitWidth, string Data, string Note // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = MemoryId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); MemoryData dataMemory = new MemoryData() { MemoryId = MemoryId, Writable = Writable, WriteOn1 = WriteOn1, OnStart = OnStart, AddressBitWidth = AddressBitWidth, DataBitWidth = DataBitWidth, Data = Data, Note = Note, }; return(this.Create(this.Table.Insert(ref dataMemory), rowIdCircuit)); }
// Creates Gate wrapper private Gate CreateItem( // Fields of Gate table Guid GateId // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = GateId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); GateData dataGate = new GateData() { GateId = GateId, }; return(this.Create(this.Table.Insert(ref dataGate), rowIdCircuit)); }
// Creates DevicePin wrapper private DevicePin CreateItem( // Fields of DevicePin table Guid PinId, Circuit Circuit, int BitWidth, PinType PinType, PinSide PinSide, bool Inverted, string Name, string Note, string JamNotation // Fields of Circuit table ) { TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit"); CircuitData dataCircuit = new CircuitData() { CircuitId = PinId }; RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit); DevicePinData dataDevicePin = new DevicePinData() { PinId = PinId, CircuitId = (Circuit != null) ? Circuit.CircuitId : DevicePinData.CircuitIdField.Field.DefaultValue, BitWidth = BitWidth, PinType = PinType, PinSide = PinSide, Inverted = Inverted, Name = Name, Note = Note, JamNotation = JamNotation, }; return(this.Create(this.Table.Insert(ref dataDevicePin), rowIdCircuit)); }