public InfoTransactionEditorDialog(InfoTransaction trans, IDesignerHost host) { transaction = trans; DesignerHost = host; InitializeComponent(); }
public SrcTablePanel(InfoTransaction trans, string scrTableName, Form frm) { this.transaction = trans; this.SrcTableName = scrTableName; this.BackColor = Color.Wheat; frminfotransaction = frm; intPannelWidth = ResizePanel(); }
private void SetInfoTransactionPrivateCopy() { transPrivateCopy = new InfoTransaction(); // transPrivateCopy.Timing = transaction.Timing; foreach (Transaction trans in transaction.Transactions) { Transaction t = new Transaction(); t.AutoNumber = trans.AutoNumber; t.Name = trans.Name; foreach (TransField field in trans.TransFields) { TransField tf = new TransField(); tf.DesField = field.DesField; tf.DesValue = field.DesValue; tf.FieldType = field.FieldType; tf.SrcField = field.SrcField; tf.SrcGetValue = field.SrcGetValue; tf.SrcValue = field.SrcValue; tf.UpdateMode = field.UpdateMode; t.TransFields.Add(tf); } foreach (TransKeyField keyField in trans.TransKeyFields) { TransKeyField tkf = new TransKeyField(); tkf.DesField = keyField.DesField; tkf.FieldType = keyField.FieldType; tkf.SrcField = keyField.SrcField; tkf.SrcGetValue = keyField.SrcGetValue; tkf.SrcValue = keyField.SrcValue; tkf.WhereMode = keyField.WhereMode; t.TransKeyFields.Add(tkf); } t.TransMode = trans.TransMode; t.TransStep = trans.TransStep; t.TransTableName = trans.TransTableName; t.WhenDelete = trans.WhenDelete; t.WhenInsert = trans.WhenInsert; t.WhenUpdate = trans.WhenUpdate; transPrivateCopy.Transactions.Add(t); } transPrivateCopy.UpdateComp = transaction.UpdateComp; }