Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            Text = Application.ProductName;
            treeNodeCollection             = tvQpInstructions.Nodes;
            cmsConnection.Opening         += CmsConnection_Opening;
            btnAddConnection.Click        += BtnAddConnection_Click;
            btnImportConnectionFile.Click += BtnImportConnectionFile_Click;
            btnExit.Click += BtnExit_Click;
            //连接相关
            btnDisconnectConnection.Click     += BtnDisconnectConnection_Click;
            btnConnectConnection.Click        += BtnConnectConnection_Click;
            btnRecvHeartbeat_Connection.Click += BtnRecvHeartbeat_Connection_Click;
            btnRecvNotice_Connection.Click    += BtnRecvNotice_Connection_Click;
            btnTestCommand_Connection.Click   += BtnTestCommand_Connection_Click;
            btnEditConnection.Click           += BtnEditConnection_Click;
            btnDelConnection.Click            += BtnDelConnection_Click;
            btnExportConnectionFile.Click     += BtnExportConnectionFile_Click;
            //通知相关
            btnRecvNotice_Notice.Click += BtnRecvNotice_Notice_Click;
            //命令相关
            btnTestCommand_Command.Click += BtnTestCommand_Command_Click;

            this.Text += $" ver:{ProductInfoUtils.GetAssemblyVersion()}";
        }
Ejemplo n.º 2
0
 public AboutBox()
 {
     InitializeComponent();
     this.Text = String.Format("关于 {0}", ProductInfoUtils.GetAssemblyTitle());
     this.labelProductName.Text   = ProductInfoUtils.GetAssemblyProduct();
     this.labelVersion.Text       = String.Format("版本 {0}", ProductInfoUtils.GetAssemblyVersion());
     this.labelCopyright.Text     = ProductInfoUtils.GetAssemblyCopyright();
     this.labelCompanyName.Text   = ProductInfoUtils.GetAssemblyCompany();
     this.textBoxDescription.Text = ProductInfoUtils.GetAssemblyDescription();
 }