⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.h

📁 USB 上位机程序 VNA使用,网络分析仪原理使用仪器
💻 H
字号:
//
//    Copyright 2004-2007 Thomas C. McDermott, N5EG
//    This file is part of VNAR - the Vector Network Analyzer program.
//
//    VNAR is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation; either version 2 of the License, or
//    (at your option) any later version.
//
//    VNAR is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with VNAR, if not, write to the Free Software
//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;



namespace VNAR3
{
	/// <summary> 
	/// Summary for About
	///
	/// WARNING: If you change the name of this class, you will need to change the 
	///          'Resource File Name' property for the managed resource compiler tool 
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>

	/// About Status Box
	public __gc class About : public System::Windows::Forms::Form
	{
	public: 
		About(String * vers)		
		{
			InitializeComponent();
			VersionLabel->Text = vers;		
		}
	private: System::Windows::Forms::Label *  label4;
	private: System::Windows::Forms::Button *  LaunchBrowserButton;
	private: System::Windows::Forms::Panel *  panel1;

	public: String * vers;			///< VNAR software build number
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Label *  label1;
	private: System::Windows::Forms::Label *  label2;
	private: System::Windows::Forms::Label *  label3;
	private: System::Windows::Forms::Label *  VersionLabel;
	private: System::Windows::Forms::Button *  button1;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container* components;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager*  resources = (new System::ComponentModel::ComponentResourceManager(__typeof(About)));
			this->label1 = (new System::Windows::Forms::Label());
			this->label2 = (new System::Windows::Forms::Label());
			this->label3 = (new System::Windows::Forms::Label());
			this->VersionLabel = (new System::Windows::Forms::Label());
			this->button1 = (new System::Windows::Forms::Button());
			this->label4 = (new System::Windows::Forms::Label());
			this->LaunchBrowserButton = (new System::Windows::Forms::Button());
			this->panel1 = (new System::Windows::Forms::Panel());
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->BackColor = System::Drawing::Color::Transparent;
			this->label1->Font = (new System::Drawing::Font(S"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				(System::Byte)0));
			this->label1->Location = System::Drawing::Point(40, 16);
			this->label1->Name = S"label1";
			this->label1->Size = System::Drawing::Size(208, 24);
			this->label1->TabIndex = 0;
			this->label1->Text = S"TAPR Vector Network Analyzer";
			this->label1->TextAlign = System::Drawing::ContentAlignment::TopCenter;
			// 
			// label2
			// 
			this->label2->BackColor = System::Drawing::Color::Transparent;
			this->label2->Image = (__try_cast<System::Drawing::Image*  >(resources->GetObject(S"label2.Image")));
			this->label2->Location = System::Drawing::Point(112, 40);
			this->label2->Name = S"label2";
			this->label2->Size = System::Drawing::Size(72, 72);
			this->label2->TabIndex = 1;
			// 
			// label3
			// 
			this->label3->BackColor = System::Drawing::Color::Transparent;
			this->label3->Location = System::Drawing::Point(24, 176);
			this->label3->Name = S"label3";
			this->label3->Size = System::Drawing::Size(256, 32);
			this->label3->TabIndex = 2;
			this->label3->Text = S"Software Licensed Under GNU General Public License (GPL). See gpl.txt for details" 
				S".";
			this->label3->TextAlign = System::Drawing::ContentAlignment::TopCenter;
			// 
			// VersionLabel
			// 
			this->VersionLabel->BackColor = System::Drawing::Color::Transparent;
			this->VersionLabel->Location = System::Drawing::Point(24, 128);
			this->VersionLabel->Name = S"VersionLabel";
			this->VersionLabel->Size = System::Drawing::Size(256, 32);
			this->VersionLabel->TabIndex = 3;
			this->VersionLabel->Text = S"Version: ";
			this->VersionLabel->TextAlign = System::Drawing::ContentAlignment::TopCenter;
			// 
			// button1
			// 
			this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
			this->button1->FlatStyle = System::Windows::Forms::FlatStyle::System;
			this->button1->Location = System::Drawing::Point(112, 224);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(75, 23);
			this->button1->TabIndex = 4;
			this->button1->Text = S"OK";
			// 
			// label4
			// 
			this->label4->BackColor = System::Drawing::Color::Transparent;
			this->label4->Location = System::Drawing::Point(56, 312);
			this->label4->Name = S"label4";
			this->label4->Size = System::Drawing::Size(192, 16);
			this->label4->TabIndex = 5;
			this->label4->Text = S"(Check TAPR website for updates)";
			this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// LaunchBrowserButton
			// 
			this->LaunchBrowserButton->FlatStyle = System::Windows::Forms::FlatStyle::System;
			this->LaunchBrowserButton->Location = System::Drawing::Point(96, 280);
			this->LaunchBrowserButton->Name = S"LaunchBrowserButton";
			this->LaunchBrowserButton->Size = System::Drawing::Size(112, 24);
			this->LaunchBrowserButton->TabIndex = 6;
			this->LaunchBrowserButton->Text = S"Launch Browser";
			this->LaunchBrowserButton->Click += new System::EventHandler(this, &About::LaunchBrowserButton_Click);
			// 
			// panel1
			// 
			this->panel1->BackColor = System::Drawing::Color::Transparent;
			this->panel1->Location = System::Drawing::Point(32, 272);
			this->panel1->Name = S"panel1";
			this->panel1->Size = System::Drawing::Size(248, 64);
			this->panel1->TabIndex = 7;
			// 
			// About
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
			this->BackgroundImage = (__try_cast<System::Drawing::Image*  >(resources->GetObject(S"$this.BackgroundImage")));
			this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->ClientSize = System::Drawing::Size(304, 344);
			this->Controls->Add(this->LaunchBrowserButton);
			this->Controls->Add(this->label4);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->VersionLabel);
			this->Controls->Add(this->label3);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->panel1);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
			this->Name = S"About";
			this->Text = S"About";
			this->Load += new System::EventHandler(this, &About::About_Load);
			this->ResumeLayout(false);

		}		
	private: System::Void About_Load(System::Object *  sender, System::EventArgs *  e)
			 {
			 }

	private: System::Void LaunchBrowserButton_Click(System::Object *  sender, System::EventArgs *  e)
			 {
				 System::Diagnostics::Process::Start("ftp://ftp.tapr.org/pub/n5eg/current.htm");
			 }

};
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -