亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mainform.cs

?? WIFI-Robot Basic
?? CS
?? 第 1 頁 / 共 2 頁
字號:


using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using VideoSource;
using Tiger.Video.VFW;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.IO.Ports;
using CommandEngine;
using System.Threading;
using System.Diagnostics;
using System.IO;

namespace motion
{
    /// <summary>
    /// Summary description for MainForm
    /// </summary>
    public class MainForm : System.Windows.Forms.Form
    {
        // statistics
        private const int statLength = 15;
        private int statIndex = 0, statReady = 0;
        private int[] statCount = new int[statLength];
        private SerialPort comm = new SerialPort();
        private StringBuilder builder = new StringBuilder();//避免在事件處理方法中反復的創建,定義到外面。
        private IMotionDetector detector =null;
        private int detectorType = 0;
        private bool signal = false;
        private int intervalsToSave = 0;
        static string FileName = Application.StartupPath + "\\Config.ini";
        private AVIWriter writer = null;
        private bool saveOnMotion = false;

        string CameraIp = "";
        string ControlIp = "192.168.1.1";
        string Port = "2001";
        string CMD_Forward = "", CMD_Backward = "", CMD_TurnLeft = "", CMD_TurnRight = "", CMD_Stop = "", CMD_EngineUp = "", CMD_EngineDown = "";
        private int controlType = 0;
        private string btCom;
        private string btBaudrate;
        public WifiRobotCMDEngine RobotEngine = new WifiRobotCMDEngine();//實例化引擎


        private System.Windows.Forms.MenuItem fileItem;
        private System.Windows.Forms.MenuItem menuItem1;
        private System.Windows.Forms.MenuItem exitFileItem;
        private System.Windows.Forms.OpenFileDialog ofd;
        private System.Windows.Forms.MainMenu mainMenu;
        private System.Timers.Timer timer;
        private System.Windows.Forms.StatusBar statusBar;
        private System.Windows.Forms.StatusBarPanel fpsPanel;
        private System.Windows.Forms.Panel panel;
        private motion.CameraWindow cameraWindow;
        private System.Windows.Forms.MenuItem motionItem;
        private System.Windows.Forms.MenuItem noneMotionItem;
        private System.Windows.Forms.MenuItem menuItem2;
        private System.Windows.Forms.MenuItem SYSConfig;
        private System.Windows.Forms.MenuItem helpItem;
        private System.Windows.Forms.MenuItem aboutHelpItem;
        private GroupBox groupBox1;
        private Button buttonStop;
        private Button buttonBackward;
        private Button buttonRight;
        private Button buttonLeft;
        private Button buttonForward;
        private Button btnOpenVideo;
        private MenuItem menuItem4;
        private MenuItem menuItem5;
        private System.Windows.Forms.Timer Radartimer;
        private IContainer components;
        //聲明讀寫INI文件的API函數
        [DllImport("kernel32")]
        private static extern bool WritePrivateProfileString(string section, string key, string val, string filePath);
        [DllImport("kernel32")]
        private static extern int GetPrivateProfileString(string section, string key, string def, byte[] retVal, int size, string filePath);

        public MainForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
            this.fileItem = new System.Windows.Forms.MenuItem();
            this.SYSConfig = new System.Windows.Forms.MenuItem();
            this.menuItem1 = new System.Windows.Forms.MenuItem();
            this.exitFileItem = new System.Windows.Forms.MenuItem();
            this.motionItem = new System.Windows.Forms.MenuItem();
            this.noneMotionItem = new System.Windows.Forms.MenuItem();
            this.menuItem2 = new System.Windows.Forms.MenuItem();
            this.menuItem4 = new System.Windows.Forms.MenuItem();
            this.menuItem5 = new System.Windows.Forms.MenuItem();
            this.helpItem = new System.Windows.Forms.MenuItem();
            this.aboutHelpItem = new System.Windows.Forms.MenuItem();
            this.ofd = new System.Windows.Forms.OpenFileDialog();
            this.timer = new System.Timers.Timer();
            this.statusBar = new System.Windows.Forms.StatusBar();
            this.fpsPanel = new System.Windows.Forms.StatusBarPanel();
            this.panel = new System.Windows.Forms.Panel();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.buttonStop = new System.Windows.Forms.Button();
            this.buttonBackward = new System.Windows.Forms.Button();
            this.buttonRight = new System.Windows.Forms.Button();
            this.buttonLeft = new System.Windows.Forms.Button();
            this.buttonForward = new System.Windows.Forms.Button();
            this.btnOpenVideo = new System.Windows.Forms.Button();
            this.cameraWindow = new motion.CameraWindow();
            this.Radartimer = new System.Windows.Forms.Timer(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.timer)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).BeginInit();
            this.panel.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // mainMenu
            // 
            this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.fileItem,
            this.motionItem,
            this.menuItem4,
            this.helpItem});
            // 
            // fileItem
            // 
            this.fileItem.Index = 0;
            this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.SYSConfig,
            this.menuItem1,
            this.exitFileItem});
            this.fileItem.Text = "平臺操作";
            // 
            // SYSConfig
            // 
            this.SYSConfig.Index = 0;
            this.SYSConfig.Text = "系統設置";
            this.SYSConfig.Click += new System.EventHandler(this.SYSConfig_Click);
            // 
            // menuItem1
            // 
            this.menuItem1.Index = 1;
            this.menuItem1.Text = "-";
            // 
            // exitFileItem
            // 
            this.exitFileItem.Index = 2;
            this.exitFileItem.Text = "退出";
            this.exitFileItem.Click += new System.EventHandler(this.exitFileItem_Click);
            // 
            // motionItem
            // 
            this.motionItem.Index = 1;
            this.motionItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.noneMotionItem,
            this.menuItem2});
            this.motionItem.Text = "視頻效果";
            this.motionItem.Popup += new System.EventHandler(this.motionItem_Popup);
            // 
            // noneMotionItem
            // 
            this.noneMotionItem.Index = 0;
            this.noneMotionItem.Text = "標準(默認)";
            this.noneMotionItem.Click += new System.EventHandler(this.noneMotionItem_Click);
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 1;
            this.menuItem2.Text = "-";
            // 
            // menuItem4
            // 
            this.menuItem4.Index = 2;
            this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem5});
            this.menuItem4.Text = "控制模式";
            // 
            // menuItem5
            // 
            this.menuItem5.Checked = true;
            this.menuItem5.Index = 0;
            this.menuItem5.Text = "WIFI模式";
            this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
            // 
            // helpItem
            // 
            this.helpItem.Index = 3;
            this.helpItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.aboutHelpItem});
            this.helpItem.Text = "幫助";
            // 
            // aboutHelpItem
            // 
            this.aboutHelpItem.Index = 0;
            this.aboutHelpItem.Text = "關于";
            this.aboutHelpItem.Click += new System.EventHandler(this.aboutHelpItem_Click);
            // 
            // ofd
            // 
            this.ofd.Filter = "AVI files (*.avi)|*.avi";
            this.ofd.Title = "Open movie";
            // 
            // timer
            // 
            this.timer.Interval = 1000D;
            this.timer.SynchronizingObject = this;
            this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed);
            // 
            // statusBar
            // 
            this.statusBar.Location = new System.Drawing.Point(0, 393);
            this.statusBar.Name = "statusBar";
            this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
            this.fpsPanel});
            this.statusBar.ShowPanels = true;
            this.statusBar.Size = new System.Drawing.Size(746, 24);
            this.statusBar.TabIndex = 1;
            // 
            // fpsPanel
            // 
            this.fpsPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
            this.fpsPanel.Name = "fpsPanel";
            this.fpsPanel.Width = 729;
            // 
            // panel
            // 
            this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel.Controls.Add(this.groupBox1);
            this.panel.Controls.Add(this.cameraWindow);
            this.panel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel.Location = new System.Drawing.Point(0, 0);
            this.panel.Name = "panel";
            this.panel.Size = new System.Drawing.Size(746, 393);
            this.panel.TabIndex = 2;
            this.panel.Paint += new System.Windows.Forms.PaintEventHandler(this.panel_Paint);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.buttonStop);
            this.groupBox1.Controls.Add(this.buttonBackward);
            this.groupBox1.Controls.Add(this.buttonRight);
            this.groupBox1.Controls.Add(this.buttonLeft);
            this.groupBox1.Controls.Add(this.buttonForward);
            this.groupBox1.Controls.Add(this.btnOpenVideo);
            this.groupBox1.Location = new System.Drawing.Point(3, 78);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(260, 240);
            this.groupBox1.TabIndex = 11;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "操作指令";
            // 
            // buttonStop
            // 
            this.buttonStop.Location = new System.Drawing.Point(98, 88);
            this.buttonStop.Name = "buttonStop";
            this.buttonStop.Size = new System.Drawing.Size(63, 42);
            this.buttonStop.TabIndex = 16;
            this.buttonStop.Text = "停";
            this.buttonStop.UseVisualStyleBackColor = true;
            this.buttonStop.Click += new System.EventHandler(this.buttonStop_Click);
            // 
            // buttonBackward
            // 
            this.buttonBackward.Location = new System.Drawing.Point(98, 136);
            this.buttonBackward.Name = "buttonBackward";
            this.buttonBackward.Size = new System.Drawing.Size(63, 42);
            this.buttonBackward.TabIndex = 14;
            this.buttonBackward.Text = "后\r\n(S)";
            this.buttonBackward.UseVisualStyleBackColor = true;
            this.buttonBackward.Click += new System.EventHandler(this.buttonBackward_Click);
            // 
            // buttonRight
            // 
            this.buttonRight.Location = new System.Drawing.Point(163, 88);
            this.buttonRight.Name = "buttonRight";
            this.buttonRight.Size = new System.Drawing.Size(64, 42);
            this.buttonRight.TabIndex = 13;
            this.buttonRight.Text = "右\r\n(D)";
            this.buttonRight.UseVisualStyleBackColor = true;
            this.buttonRight.Click += new System.EventHandler(this.buttonRight_Click);
            // 
            // buttonLeft
            // 
            this.buttonLeft.Location = new System.Drawing.Point(32, 88);
            this.buttonLeft.Name = "buttonLeft";
            this.buttonLeft.Size = new System.Drawing.Size(64, 42);
            this.buttonLeft.TabIndex = 12;
            this.buttonLeft.Text = "左\r\n(A)";
            this.buttonLeft.UseVisualStyleBackColor = true;
            this.buttonLeft.Click += new System.EventHandler(this.buttonLeft_Click);
            // 
            // buttonForward
            // 
            this.buttonForward.Location = new System.Drawing.Point(98, 45);
            this.buttonForward.Name = "buttonForward";
            this.buttonForward.Size = new System.Drawing.Size(63, 42);
            this.buttonForward.TabIndex = 11;
            this.buttonForward.Text = "前\r\n(W)";
            this.buttonForward.UseVisualStyleBackColor = true;
            this.buttonForward.Click += new System.EventHandler(this.buttonForward_Click);
            // 
            // btnOpenVideo
            // 
            this.btnOpenVideo.Location = new System.Drawing.Point(13, 21);
            this.btnOpenVideo.Name = "btnOpenVideo";
            this.btnOpenVideo.Size = new System.Drawing.Size(75, 28);
            this.btnOpenVideo.TabIndex = 10;
            this.btnOpenVideo.Text = "視頻";
            this.btnOpenVideo.UseVisualStyleBackColor = true;
            this.btnOpenVideo.Click += new System.EventHandler(this.btnOpenVideo_Click);
            // 
            // cameraWindow
            // 
            this.cameraWindow.BackColor = System.Drawing.SystemColors.AppWorkspace;
            this.cameraWindow.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cameraWindow.BackgroundImage")));
            this.cameraWindow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
            this.cameraWindow.Camera = null;
            this.cameraWindow.Location = new System.Drawing.Point(276, 17);
            this.cameraWindow.Name = "cameraWindow";
            this.cameraWindow.Size = new System.Drawing.Size(449, 352);
            this.cameraWindow.TabIndex = 1;
            // 
            // Radartimer
            // 
            this.Radartimer.Interval = 200;
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(746, 417);
            this.Controls.Add(this.panel);
            this.Controls.Add(this.statusBar);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.KeyPreview = true;
            this.MaximizeBox = false;
            this.Menu = this.mainMenu;
            this.Name = "MainForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "WIFI/藍牙智能小車操縱平臺-基本版V1.1 機器人創意工作室 Liuviking";
            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyDown);
            this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp);
            ((System.ComponentModel.ISupportInitialize)(this.timer)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.fpsPanel)).EndInit();
            this.panel.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);

        }
        #endregion

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.Run(new MainForm());
        }


        private void MainForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            CloseFile();
        }


        private void exitFileItem_Click(object sender, System.EventArgs e)
        {
            this.Close();
        }


        private void aboutHelpItem_Click(object sender, System.EventArgs e)
        {
            AboutForm form = new AboutForm();

            form.ShowDialog();
        }




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产自产拍在线| 一区二区三区日韩精品视频| 26uuu国产电影一区二区| 人人爽香蕉精品| 五月天网站亚洲| 国产精品久久夜| 亚洲欧美日韩在线不卡| 欧美三级电影网| 日韩在线卡一卡二| 亚洲第一福利一区| 欧美优质美女网站| 精品日韩一区二区三区免费视频| 欧美一级高清片| 蜜桃91丨九色丨蝌蚪91桃色| 美国十次了思思久久精品导航| 天天影视色香欲综合网老头| 亚洲视频在线一区观看| 亚洲在线视频一区| 亚洲少妇30p| 中文字幕一区二区三区四区| 亚洲成a人v欧美综合天堂下载 | 日韩码欧中文字| 三级欧美在线一区| 91麻豆视频网站| 国产精品久久久久久久久免费相片 | 精品少妇一区二区三区免费观看 | 国产精品丝袜在线| 日本一区二区视频在线| 亚洲国产欧美另类丝袜| 欧美午夜一区二区三区| 成人禁用看黄a在线| 一区二区中文视频| 99久久精品久久久久久清纯| 国产乱码精品一区二区三区av | 秋霞影院一区二区| 激情偷乱视频一区二区三区| 欧美日韩成人一区| 欧美唯美清纯偷拍| 国产丶欧美丶日本不卡视频| 午夜视频在线观看一区二区三区| 欧美视频第二页| 国产精品 欧美精品| 日韩精品成人一区二区三区 | 国产精品久久久久三级| 在线观看免费成人| 成人欧美一区二区三区| 欧美午夜电影在线播放| 日韩福利视频网| 亚洲男同性视频| 在线免费一区三区| 日韩黄色片在线观看| 精品欧美一区二区在线观看| 91在线观看高清| 伊人一区二区三区| 欧美视频一区二区三区在线观看| 在线电影国产精品| 国产欧美精品区一区二区三区 | 欧美日韩一区二区三区四区| 在线免费观看日本欧美| 精品日韩99亚洲| 国产日韩欧美a| 精品伦理精品一区| 欧美日本一道本| 色综合色综合色综合色综合色综合| 欧美乱熟臀69xxxxxx| 极品美女销魂一区二区三区| 国产精品久久久久永久免费观看| 欧美亚洲动漫制服丝袜| 欧美一级免费观看| 色猫猫国产区一区二在线视频| 最新国产の精品合集bt伙计| 国产凹凸在线观看一区二区| 91精品在线麻豆| 开心九九激情九九欧美日韩精美视频电影| 欧美一级欧美三级在线观看 | 国产精品麻豆99久久久久久| 国产成人综合视频| 视频一区二区欧美| 亚洲四区在线观看| 精品国产91洋老外米糕| 欧美色倩网站大全免费| 国产jizzjizz一区二区| 激情偷乱视频一区二区三区| 视频在线观看91| 喷水一区二区三区| 天堂久久久久va久久久久| 国产精品国产三级国产普通话99| 国产欧美一区二区精品婷婷| 亚洲视频一区二区免费在线观看| 久久久精品国产免费观看同学| 欧美日韩不卡一区二区| 欧美日韩国产一级| 91精品国产手机| 亚洲老司机在线| 三级久久三级久久久| 国产美女av一区二区三区| 国产精品影视在线观看| 91欧美一区二区| 日韩一区二区三区四区五区六区| 欧美熟乱第一页| www.欧美亚洲| 美腿丝袜亚洲色图| 美女视频第一区二区三区免费观看网站 | 不卡影院免费观看| 国产99精品在线观看| 欧美中文字幕一区二区三区 | 亚洲精品成人精品456| 亚洲不卡在线观看| 99综合电影在线视频| 亚洲高清三级视频| 91精品国产欧美一区二区成人 | 欧美午夜片在线看| 51久久夜色精品国产麻豆| 精品国产伦一区二区三区观看方式 | 日韩在线一二三区| 性感美女久久精品| 粉嫩蜜臀av国产精品网站| 国产精品久久久久桃色tv| 美女任你摸久久 | 一本久久精品一区二区| 中文字幕一区二区三区不卡| 国产精品免费免费| 亚洲成人av电影在线| 国内成人免费视频| 2020国产精品| 日韩**一区毛片| 欧美天堂亚洲电影院在线播放| 69久久夜色精品国产69蝌蚪网| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 成人黄页毛片网站| 在线观看日韩av先锋影音电影院| 日韩精品一区二区三区四区 | 精品制服美女丁香| 欧美一区二区三区影视| 亚洲色图欧洲色图婷婷| 国产精品一区二区你懂的| 国产一区二区三区免费看| 欧美变态凌虐bdsm| 久久99国产精品尤物| 国产精品久久久久久久久免费桃花 | 欧美日韩国产一级二级| 欧美日韩中文另类| 精品国产91洋老外米糕| 国产精品护士白丝一区av| 精品综合久久久久久8888| 欧美激情中文不卡| 国产91精品露脸国语对白| 国产精品一品二品| 国产91在线|亚洲| 日韩欧美在线123| 亚洲精品伦理在线| 成人一区二区三区视频在线观看 | 美国毛片一区二区三区| 色综合一个色综合亚洲| 久久久久亚洲综合| 久久国产精品免费| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲狠狠丁香婷婷综合久久久| 久久99国内精品| 久草热8精品视频在线观看| 6080午夜不卡| 日韩精品亚洲专区| 欧美日本国产视频| 亚洲免费av网站| 99热在这里有精品免费| 日本一区二区综合亚洲| 国内成+人亚洲+欧美+综合在线| 日韩西西人体444www| 日本aⅴ亚洲精品中文乱码| 午夜伦欧美伦电影理论片| 欧美日韩高清一区| 日韩国产精品久久久| 91超碰这里只有精品国产| 日本美女一区二区| 日韩精品一区二区三区老鸭窝| 捆绑调教美女网站视频一区| 欧美成人一区二区三区片免费| 蜜桃av噜噜一区| 精品久久久久久无| 国产呦精品一区二区三区网站| 欧美大片在线观看| 麻豆成人在线观看| 国产亚洲午夜高清国产拍精品| 国产精品三级电影| 色综合久久久久综合99| 亚洲精品国产品国语在线app| 日本精品裸体写真集在线观看 | 亚洲人成精品久久久久| 色婷婷精品久久二区二区蜜臀av| 一区二区在线观看免费视频播放| 欧美三级在线播放| 久久国产尿小便嘘嘘| 欧美高清一级片在线观看| 一本色道**综合亚洲精品蜜桃冫 | av一区二区久久| 亚洲一区在线视频| 在线电影欧美成精品| 欧美成人aa大片| 国产精品久久久久久久久免费丝袜| 国产精品久久久久天堂|