- Timestamp:
- Jul 6, 2010, 8:09:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs
r818 r822 53 53 private void InitializeComponent() 54 54 { 55 this. tabControl1= new System.Windows.Forms.TabControl();55 this.mlTests = new System.Windows.Forms.TabControl(); 56 56 this.tpaQuery = new System.Windows.Forms.TabPage(); 57 57 this.panGrid = new System.Windows.Forms.Panel(); … … 135 135 this.cmdReleaseLock = new System.Windows.Forms.Button(); 136 136 this.cmdEventPollingInterval = new System.Windows.Forms.Button(); 137 this.tabControl1.SuspendLayout(); 137 this.tabPage1 = new System.Windows.Forms.TabPage(); 138 this.txtML = new System.Windows.Forms.TextBox(); 139 this.lblML = new System.Windows.Forms.Label(); 140 this.btnML = new System.Windows.Forms.Button(); 141 this.mlTests.SuspendLayout(); 138 142 this.tpaQuery.SuspendLayout(); 139 143 this.panGrid.SuspendLayout(); … … 147 151 ((System.ComponentModel.ISupportInitialize)(this.nudEventPollingInterval)).BeginInit(); 148 152 this.grpPiece.SuspendLayout(); 153 this.tabPage1.SuspendLayout(); 149 154 this.SuspendLayout(); 150 155 // 151 // tabControl1 152 // 153 this.tabControl1.Controls.Add(this.tpaQuery); 154 this.tabControl1.Controls.Add(this.tpaControls); 155 this.tabControl1.Controls.Add(this.tpaConnection); 156 this.tabControl1.Controls.Add(this.tpaOther); 157 this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; 158 this.tabControl1.Location = new System.Drawing.Point(0, 0); 159 this.tabControl1.Name = "tabControl1"; 160 this.tabControl1.SelectedIndex = 0; 161 this.tabControl1.Size = new System.Drawing.Size(736, 566); 162 this.tabControl1.TabIndex = 0; 156 // mlTests 157 // 158 this.mlTests.Controls.Add(this.tpaQuery); 159 this.mlTests.Controls.Add(this.tpaControls); 160 this.mlTests.Controls.Add(this.tpaConnection); 161 this.mlTests.Controls.Add(this.tpaOther); 162 this.mlTests.Controls.Add(this.tabPage1); 163 this.mlTests.Dock = System.Windows.Forms.DockStyle.Fill; 164 this.mlTests.Location = new System.Drawing.Point(0, 0); 165 this.mlTests.Name = "mlTests"; 166 this.mlTests.SelectedIndex = 0; 167 this.mlTests.Size = new System.Drawing.Size(736, 566); 168 this.mlTests.TabIndex = 0; 163 169 // 164 170 // tpaQuery … … 495 501 this.tpaConnection.Location = new System.Drawing.Point(4, 22); 496 502 this.tpaConnection.Name = "tpaConnection"; 497 this.tpaConnection.Size = new System.Drawing.Size( 605, 465);503 this.tpaConnection.Size = new System.Drawing.Size(728, 540); 498 504 this.tpaConnection.TabIndex = 1; 499 505 this.tpaConnection.Text = "Connection"; … … 635 641 this.tpaOther.Location = new System.Drawing.Point(4, 22); 636 642 this.tpaOther.Name = "tpaOther"; 637 this.tpaOther.Size = new System.Drawing.Size( 605, 465);643 this.tpaOther.Size = new System.Drawing.Size(728, 540); 638 644 this.tpaOther.TabIndex = 2; 639 645 this.tpaOther.Text = "Events"; … … 947 953 this.cmdEventPollingInterval.Text = "Event Polling Interval"; 948 954 // 955 // tabPage1 956 // 957 this.tabPage1.Controls.Add(this.btnML); 958 this.tabPage1.Controls.Add(this.lblML); 959 this.tabPage1.Controls.Add(this.txtML); 960 this.tabPage1.Location = new System.Drawing.Point(4, 22); 961 this.tabPage1.Name = "tabPage1"; 962 this.tabPage1.Padding = new System.Windows.Forms.Padding(3); 963 this.tabPage1.Size = new System.Drawing.Size(728, 540); 964 this.tabPage1.TabIndex = 4; 965 this.tabPage1.Text = "Multi Lingual Tests"; 966 this.tabPage1.UseVisualStyleBackColor = true; 967 // 968 // txtML 969 // 970 this.txtML.Location = new System.Drawing.Point(177, 66); 971 this.txtML.Name = "txtML"; 972 this.txtML.Size = new System.Drawing.Size(100, 20); 973 this.txtML.TabIndex = 0; 974 // 975 // lblML 976 // 977 this.lblML.AutoSize = true; 978 this.lblML.Location = new System.Drawing.Point(51, 66); 979 this.lblML.Name = "lblML"; 980 this.lblML.Size = new System.Drawing.Size(110, 13); 981 this.lblML.TabIndex = 1; 982 this.lblML.Text = "Type Something Here"; 983 // 984 // btnML 985 // 986 this.btnML.Location = new System.Drawing.Point(132, 112); 987 this.btnML.Name = "btnML"; 988 this.btnML.Size = new System.Drawing.Size(75, 23); 989 this.btnML.TabIndex = 2; 990 this.btnML.Text = "Store Data"; 991 this.btnML.UseVisualStyleBackColor = true; 992 this.btnML.Click += new System.EventHandler(this.btnML_Click); 993 // 949 994 // frmBMXNetTest 950 995 // 951 996 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 952 997 this.ClientSize = new System.Drawing.Size(736, 566); 953 this.Controls.Add(this. tabControl1);998 this.Controls.Add(this.mlTests); 954 999 this.Name = "frmBMXNetTest"; 955 1000 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 956 1001 this.Text = "BMXNet Test Application"; 957 1002 this.Load += new System.EventHandler(this.frmBMXNetTest_Load); 958 this. tabControl1.ResumeLayout(false);1003 this.mlTests.ResumeLayout(false); 959 1004 this.tpaQuery.ResumeLayout(false); 960 1005 this.panGrid.ResumeLayout(false); … … 973 1018 this.grpPiece.ResumeLayout(false); 974 1019 this.grpPiece.PerformLayout(); 1020 this.tabPage1.ResumeLayout(false); 1021 this.tabPage1.PerformLayout(); 975 1022 this.ResumeLayout(false); 976 1023 … … 998 1045 999 1046 private BMXNetConnectInfo m_ci; 1000 private System.Windows.Forms.TabControl tabControl1;1047 private System.Windows.Forms.TabControl mlTests; 1001 1048 private System.Windows.Forms.DataGrid dataGrid2; 1002 1049 private System.Windows.Forms.Button cmdCancelChanges; … … 1080 1127 private Button cmdStopLogging; 1081 1128 private Button cmdStartLogging; 1129 private TabPage tabPage1; 1130 private Button btnML; 1131 private Label lblML; 1132 private TextBox txtML; 1082 1133 BMXNetDataAdapter m_da = new BMXNetDataAdapter(); 1083 1134 … … 1926 1977 } 1927 1978 1979 private void btnML_Click(object sender, EventArgs e) 1980 { 1981 string cmd = "KBAN BMX"; 1982 string result = m_ci.bmxNetLib.TransmitRPC(cmd, txtML.Text); 1983 MessageBox.Show("What got sent and back is:" + result); 1984 } 1985 1928 1986 1929 1987
Note:
See TracChangeset
for help on using the changeset viewer.