protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (e.Button == MouseButtons.Left) { if (e.X < 12 && e.Y > 8 && e.Y < 22) { InfoTransactionEditorTransFieldsDialog itetfd = new InfoTransactionEditorTransFieldsDialog(this.transaction, ((InfoTransaction)this.transaction.Owner).UpdateComp, this.transaction.TransTableName , ((InfoTransactionEditorDialog)frminfotransaction).SrcTableName); itetfd.ShowDialog(); this.rtbfield.Text = ""; foreach (TransField field in this.transaction.TransFields) { this.rtbfield.Text += field.DesField + UpdateModeToString(field.UpdateMode) + field.SrcField + "\n"; } } else if (e.X > this.Width - 5) { this.Cursor = Cursors.SizeAll; X_down = e.X; Y_down = e.Y; mousedown = true; } } }
private void btnTransFields_Click(object sender, EventArgs e) { InfoTransactionEditorTransFieldsDialog itetfd = new InfoTransactionEditorTransFieldsDialog(this.transPrivateCopy, this.uctran, this.cmbTransTableName.Text, SrcTableName); itetfd.ShowDialog(); }