Ignore:
Timestamp:
Jul 6, 2010, 8:09:10 AM (14 years ago)
Author:
Sam Habiel
Message:

Support for other encodings besides ASCII. Constructors available in BMXNetLib and and BMXNetConnectInfo.
Comments in several files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs

    r818 r822  
    5353                private void InitializeComponent()
    5454                {
    55             this.tabControl1 = new System.Windows.Forms.TabControl();
     55            this.mlTests = new System.Windows.Forms.TabControl();
    5656            this.tpaQuery = new System.Windows.Forms.TabPage();
    5757            this.panGrid = new System.Windows.Forms.Panel();
     
    135135            this.cmdReleaseLock = new System.Windows.Forms.Button();
    136136            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();
    138142            this.tpaQuery.SuspendLayout();
    139143            this.panGrid.SuspendLayout();
     
    147151            ((System.ComponentModel.ISupportInitialize)(this.nudEventPollingInterval)).BeginInit();
    148152            this.grpPiece.SuspendLayout();
     153            this.tabPage1.SuspendLayout();
    149154            this.SuspendLayout();
    150155            //
    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;
    163169            //
    164170            // tpaQuery
     
    495501            this.tpaConnection.Location = new System.Drawing.Point(4, 22);
    496502            this.tpaConnection.Name = "tpaConnection";
    497             this.tpaConnection.Size = new System.Drawing.Size(605, 465);
     503            this.tpaConnection.Size = new System.Drawing.Size(728, 540);
    498504            this.tpaConnection.TabIndex = 1;
    499505            this.tpaConnection.Text = "Connection";
     
    635641            this.tpaOther.Location = new System.Drawing.Point(4, 22);
    636642            this.tpaOther.Name = "tpaOther";
    637             this.tpaOther.Size = new System.Drawing.Size(605, 465);
     643            this.tpaOther.Size = new System.Drawing.Size(728, 540);
    638644            this.tpaOther.TabIndex = 2;
    639645            this.tpaOther.Text = "Events";
     
    947953            this.cmdEventPollingInterval.Text = "Event Polling Interval";
    948954            //
     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            //
    949994            // frmBMXNetTest
    950995            //
    951996            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    952997            this.ClientSize = new System.Drawing.Size(736, 566);
    953             this.Controls.Add(this.tabControl1);
     998            this.Controls.Add(this.mlTests);
    954999            this.Name = "frmBMXNetTest";
    9551000            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
    9561001            this.Text = "BMXNet Test Application";
    9571002            this.Load += new System.EventHandler(this.frmBMXNetTest_Load);
    958             this.tabControl1.ResumeLayout(false);
     1003            this.mlTests.ResumeLayout(false);
    9591004            this.tpaQuery.ResumeLayout(false);
    9601005            this.panGrid.ResumeLayout(false);
     
    9731018            this.grpPiece.ResumeLayout(false);
    9741019            this.grpPiece.PerformLayout();
     1020            this.tabPage1.ResumeLayout(false);
     1021            this.tabPage1.PerformLayout();
    9751022            this.ResumeLayout(false);
    9761023
     
    9981045
    9991046                private BMXNetConnectInfo m_ci;
    1000                 private System.Windows.Forms.TabControl tabControl1;
     1047                private System.Windows.Forms.TabControl mlTests;
    10011048                private System.Windows.Forms.DataGrid dataGrid2;
    10021049                private System.Windows.Forms.Button cmdCancelChanges;
     
    10801127        private Button cmdStopLogging;
    10811128        private Button cmdStartLogging;
     1129        private TabPage tabPage1;
     1130        private Button btnML;
     1131        private Label lblML;
     1132        private TextBox txtML;
    10821133                BMXNetDataAdapter m_da = new BMXNetDataAdapter();
    10831134
     
    19261977        }
    19271978
     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
    19281986
    19291987
Note: See TracChangeset for help on using the changeset viewer.