コード例 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.axMMControl1 = new AxMCI.AxMMControl();
     ((System.ComponentModel.ISupportInitialize)(this.axMMControl1)).BeginInit();
     this.SuspendLayout();
     //
     // axMMControl1
     //
     this.axMMControl1.Enabled  = true;
     this.axMMControl1.Location = new System.Drawing.Point(8, 8);
     this.axMMControl1.Name     = "axMMControl1";
     this.axMMControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMMControl1.OcxState")));
     this.axMMControl1.Size     = new System.Drawing.Size(236, 23);
     this.axMMControl1.TabIndex = 0;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(448, 365);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.axMMControl1
     });
     this.Name  = "Form1";
     this.Text  = "Using Multimedia Controls in .NET";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.axMMControl1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #2
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmGRAlarmDataPopUp));
     this.lvGRAD                = new System.Windows.Forms.ListView();
     this.chGRStationName       = new System.Windows.Forms.ColumnHeader();
     this.chGRStationIP         = new System.Windows.Forms.ColumnHeader();
     this.chGRStationAddress    = new System.Windows.Forms.ColumnHeader();
     this.chDateTime            = new System.Windows.Forms.ColumnHeader();
     this.chAlarmName           = new System.Windows.Forms.ColumnHeader();
     this.chAlarmDescription    = new System.Windows.Forms.ColumnHeader();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.lblGrStationName      = new System.Windows.Forms.Label();
     this.label6                = new System.Windows.Forms.Label();
     this.label5                = new System.Windows.Forms.Label();
     this.label3                = new System.Windows.Forms.Label();
     this.label4                = new System.Windows.Forms.Label();
     this.label2                = new System.Windows.Forms.Label();
     this.label1                = new System.Windows.Forms.Label();
     this.lblGrStationIP        = new System.Windows.Forms.Label();
     this.lblGrStationAddress   = new System.Windows.Forms.Label();
     this.lblDateTime           = new System.Windows.Forms.Label();
     this.lblGrAlarmName        = new System.Windows.Forms.Label();
     this.lblGrAlarmDescription = new System.Windows.Forms.Label();
     this.btnClose              = new System.Windows.Forms.Button();
     this.btnClear              = new System.Windows.Forms.Button();
     this.chkTopMost            = new System.Windows.Forms.CheckBox();
     this.checkBox1             = new System.Windows.Forms.CheckBox();
     this.axMMControl1          = new AxMCI.AxMMControl();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.axMMControl1)).BeginInit();
     this.SuspendLayout();
     //
     // lvGRAD
     //
     this.lvGRAD.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.chGRStationName,
         this.chGRStationIP,
         this.chGRStationAddress,
         this.chDateTime,
         this.chAlarmName,
         this.chAlarmDescription
     });
     this.lvGRAD.FullRowSelect         = true;
     this.lvGRAD.GridLines             = true;
     this.lvGRAD.Location              = new System.Drawing.Point(0, 0);
     this.lvGRAD.MultiSelect           = false;
     this.lvGRAD.Name                  = "lvGRAD";
     this.lvGRAD.Size                  = new System.Drawing.Size(688, 216);
     this.lvGRAD.TabIndex              = 0;
     this.lvGRAD.View                  = System.Windows.Forms.View.Details;
     this.lvGRAD.SelectedIndexChanged += new System.EventHandler(this.lvGRAD_SelectedIndexChanged);
     //
     // chGRStationName
     //
     this.chGRStationName.Text  = "站名";
     this.chGRStationName.Width = 90;
     //
     // chGRStationIP
     //
     this.chGRStationIP.Text  = "站点IP";
     this.chGRStationIP.Width = 90;
     //
     // chGRStationAddress
     //
     this.chGRStationAddress.Text = "站点地址";
     //
     // chDateTime
     //
     this.chDateTime.Text  = "时间";
     this.chDateTime.Width = 120;
     //
     // chAlarmName
     //
     this.chAlarmName.Text  = "报警名称";
     this.chAlarmName.Width = 90;
     //
     // chAlarmDescription
     //
     this.chAlarmDescription.Text  = "报警描述";
     this.chAlarmDescription.Width = 230;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.lblGrStationName);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.lblGrStationIP);
     this.groupBox1.Controls.Add(this.lblGrStationAddress);
     this.groupBox1.Controls.Add(this.lblDateTime);
     this.groupBox1.Controls.Add(this.lblGrAlarmName);
     this.groupBox1.Controls.Add(this.lblGrAlarmDescription);
     this.groupBox1.Location = new System.Drawing.Point(8, 224);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(680, 128);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "信息";
     //
     // lblGrStationName
     //
     this.lblGrStationName.Location = new System.Drawing.Point(88, 24);
     this.lblGrStationName.Name     = "lblGrStationName";
     this.lblGrStationName.Size     = new System.Drawing.Size(192, 23);
     this.lblGrStationName.TabIndex = 6;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(288, 88);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(72, 23);
     this.label6.TabIndex = 5;
     this.label6.Text     = "报警描述:";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(288, 24);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(72, 23);
     this.label5.TabIndex = 4;
     this.label5.Text     = "时间:";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(288, 56);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(72, 23);
     this.label3.TabIndex = 3;
     this.label3.Text     = "报警名称:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 88);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(72, 23);
     this.label4.TabIndex = 2;
     this.label4.Text     = "站点地址:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 56);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(72, 23);
     this.label2.TabIndex = 1;
     this.label2.Text     = "站点IP:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 24);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(72, 23);
     this.label1.TabIndex = 0;
     this.label1.Text     = "站名:";
     //
     // lblGrStationIP
     //
     this.lblGrStationIP.Location = new System.Drawing.Point(88, 56);
     this.lblGrStationIP.Name     = "lblGrStationIP";
     this.lblGrStationIP.Size     = new System.Drawing.Size(192, 23);
     this.lblGrStationIP.TabIndex = 6;
     //
     // lblGrStationAddress
     //
     this.lblGrStationAddress.Location = new System.Drawing.Point(88, 88);
     this.lblGrStationAddress.Name     = "lblGrStationAddress";
     this.lblGrStationAddress.Size     = new System.Drawing.Size(192, 23);
     this.lblGrStationAddress.TabIndex = 6;
     //
     // lblDateTime
     //
     this.lblDateTime.Location = new System.Drawing.Point(360, 24);
     this.lblDateTime.Name     = "lblDateTime";
     this.lblDateTime.Size     = new System.Drawing.Size(280, 23);
     this.lblDateTime.TabIndex = 6;
     //
     // lblGrAlarmName
     //
     this.lblGrAlarmName.Location = new System.Drawing.Point(360, 56);
     this.lblGrAlarmName.Name     = "lblGrAlarmName";
     this.lblGrAlarmName.Size     = new System.Drawing.Size(280, 23);
     this.lblGrAlarmName.TabIndex = 6;
     //
     // lblGrAlarmDescription
     //
     this.lblGrAlarmDescription.Location = new System.Drawing.Point(360, 88);
     this.lblGrAlarmDescription.Name     = "lblGrAlarmDescription";
     this.lblGrAlarmDescription.Size     = new System.Drawing.Size(280, 23);
     this.lblGrAlarmDescription.TabIndex = 6;
     //
     // btnClose
     //
     this.btnClose.Location = new System.Drawing.Point(608, 368);
     this.btnClose.Name     = "btnClose";
     this.btnClose.TabIndex = 2;
     this.btnClose.Text     = "关闭";
     this.btnClose.Click   += new System.EventHandler(this.btnClose_Click);
     //
     // btnClear
     //
     this.btnClear.Location = new System.Drawing.Point(520, 368);
     this.btnClear.Name     = "btnClear";
     this.btnClear.TabIndex = 3;
     this.btnClear.Text     = "清除";
     this.btnClear.Click   += new System.EventHandler(this.btnClear_Click);
     //
     // chkTopMost
     //
     this.chkTopMost.Location        = new System.Drawing.Point(16, 368);
     this.chkTopMost.Name            = "chkTopMost";
     this.chkTopMost.TabIndex        = 4;
     this.chkTopMost.Text            = "总在最前";
     this.chkTopMost.CheckedChanged += new System.EventHandler(this.chkTopMost_CheckedChanged);
     //
     // checkBox1
     //
     this.checkBox1.Location        = new System.Drawing.Point(144, 368);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.TabIndex        = 5;
     this.checkBox1.Text            = "报警时激活";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // axMMControl1
     //
     this.axMMControl1.Enabled  = true;
     this.axMMControl1.Location = new System.Drawing.Point(368, 16);
     this.axMMControl1.Name     = "axMMControl1";
     this.axMMControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMMControl1.OcxState")));
     this.axMMControl1.Size     = new System.Drawing.Size(236, 23);
     this.axMMControl1.TabIndex = 6;
     this.axMMControl1.Visible  = false;
     //
     // frmGRAlarmDataPopUp
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(690, 402);
     this.Controls.Add(this.axMMControl1);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.chkTopMost);
     this.Controls.Add(this.btnClear);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.lvGRAD);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmGRAlarmDataPopUp";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "实时报警数据";
     this.TopMost         = true;
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.frmGRAlarmDataPopUp_Closing);
     this.Load           += new System.EventHandler(this.frmGRAlarmDataPopUp_Load);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.axMMControl1)).EndInit();
     this.ResumeLayout(false);
 }