Ejemplo n.º 1
0
        public static DialogResult MessageShowAgain(string title, string promptText)
        {
            Form form = new Form();

            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            CheckBox chk = new CheckBox();

            ArdupilotMega.Controls.MyButton buttonOk = new ArdupilotMega.Controls.MyButton();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainV2));
            form.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            form.Text  = title;
            label.Text = promptText;

            chk.Tag      = ("SHOWAGAIN_" + title.Replace(" ", "_"));
            chk.AutoSize = true;
            chk.Text     = "Show me again?";
            chk.Checked  = true;
            chk.Location = new Point(9, 80);

            if (MainV2.config[(string)chk.Tag] != null && (string)MainV2.config[(string)chk.Tag] == "False") // skip it
            {
                form.Dispose();
                chk.Dispose();
                buttonOk.Dispose();
                label.Dispose();
                return(DialogResult.OK);
            }

            chk.CheckStateChanged += new EventHandler(chk_CheckStateChanged);

            buttonOk.Text         = "OK";
            buttonOk.DialogResult = DialogResult.OK;
            buttonOk.Location     = new Point(form.Right - 100, 80);

            label.SetBounds(9, 40, 372, 13);

            label.AutoSize = true;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, chk, buttonOk });
            form.ClientSize      = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedDialog;
            form.StartPosition   = FormStartPosition.CenterScreen;
            form.MinimizeBox     = false;
            form.MaximizeBox     = false;

            ThemeManager.ApplyThemeTo(form);

            DialogResult dialogResult = form.ShowDialog();

            form.Dispose();

            form = null;

            return(dialogResult);
        }
Ejemplo n.º 2
0
        //from http://www.csharp-examples.net/inputbox/
        public static DialogResult InputBox(string title, string promptText, ref string value)
        {
            Form form = new Form();

            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            TextBox textBox = new TextBox();

            ArdupilotMega.Controls.MyButton buttonOk     = new ArdupilotMega.Controls.MyButton();
            ArdupilotMega.Controls.MyButton buttonCancel = new ArdupilotMega.Controls.MyButton();

            form.TopMost = true;

            form.Text    = title;
            label.Text   = promptText;
            textBox.Text = value;

            buttonOk.Text             = "OK";
            buttonCancel.Text         = "Cancel";
            buttonOk.DialogResult     = DialogResult.OK;
            buttonCancel.DialogResult = DialogResult.Cancel;

            label.SetBounds(9, 20, 372, 13);
            textBox.SetBounds(12, 36, 372, 20);
            buttonOk.SetBounds(228, 72, 75, 23);
            buttonCancel.SetBounds(309, 72, 75, 23);

            label.AutoSize      = true;
            textBox.Anchor      = textBox.Anchor | AnchorStyles.Right;
            buttonOk.Anchor     = AnchorStyles.Bottom | AnchorStyles.Right;
            buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, textBox, buttonOk, buttonCancel });
            form.ClientSize      = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedDialog;
            form.StartPosition   = FormStartPosition.CenterScreen;
            form.MinimizeBox     = false;
            form.MaximizeBox     = false;
            form.AcceptButton    = buttonOk;
            form.CancelButton    = buttonCancel;

            ThemeManager.ApplyThemeTo(form);

            DialogResult dialogResult = DialogResult.Cancel;

            dialogResult = form.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                value = textBox.Text;
            }

            form.Dispose();

            return(dialogResult);
        }
Ejemplo n.º 3
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Georefimage));
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.TXT_logfile = new System.Windows.Forms.TextBox();
     this.TXT_jpgdir = new System.Windows.Forms.TextBox();
     this.TXT_offsetseconds = new System.Windows.Forms.TextBox();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.TXT_outputlog = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.BUT_Geotagimages = new ArdupilotMega.Controls.MyButton();
     this.BUT_estoffset = new ArdupilotMega.Controls.MyButton();
     this.BUT_doit = new ArdupilotMega.Controls.MyButton();
     this.BUT_browsedir = new ArdupilotMega.Controls.MyButton();
     this.BUT_browselog = new ArdupilotMega.Controls.MyButton();
     this.NUM_latpos = new System.Windows.Forms.NumericUpDown();
     this.NUM_lngpos = new System.Windows.Forms.NumericUpDown();
     this.NUM_altpos = new System.Windows.Forms.NumericUpDown();
     this.NUM_headingpos = new System.Windows.Forms.NumericUpDown();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.BUT_networklinkgeoref = new ArdupilotMega.Controls.MyButton();
     this.num_vfov = new System.Windows.Forms.NumericUpDown();
     this.num_hfov = new System.Windows.Forms.NumericUpDown();
     this.label7 = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.num_camerarotation = new System.Windows.Forms.NumericUpDown();
     this.label9 = new System.Windows.Forms.Label();
     this.NUM_time = new System.Windows.Forms.NumericUpDown();
     this.label10 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_latpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_lngpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_altpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_headingpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_vfov)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_hfov)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_camerarotation)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_time)).BeginInit();
     this.SuspendLayout();
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     //
     // TXT_logfile
     //
     resources.ApplyResources(this.TXT_logfile, "TXT_logfile");
     this.TXT_logfile.Name = "TXT_logfile";
     this.TXT_logfile.TextChanged += new System.EventHandler(this.TXT_logfile_TextChanged);
     //
     // TXT_jpgdir
     //
     resources.ApplyResources(this.TXT_jpgdir, "TXT_jpgdir");
     this.TXT_jpgdir.Name = "TXT_jpgdir";
     //
     // TXT_offsetseconds
     //
     resources.ApplyResources(this.TXT_offsetseconds, "TXT_offsetseconds");
     this.TXT_offsetseconds.Name = "TXT_offsetseconds";
     //
     // TXT_outputlog
     //
     resources.ApplyResources(this.TXT_outputlog, "TXT_outputlog");
     this.TXT_outputlog.Name = "TXT_outputlog";
     this.TXT_outputlog.ReadOnly = true;
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // BUT_Geotagimages
     //
     resources.ApplyResources(this.BUT_Geotagimages, "BUT_Geotagimages");
     this.BUT_Geotagimages.Name = "BUT_Geotagimages";
     this.BUT_Geotagimages.UseVisualStyleBackColor = true;
     this.BUT_Geotagimages.Click += new System.EventHandler(this.BUT_Geotagimages_Click);
     //
     // BUT_estoffset
     //
     resources.ApplyResources(this.BUT_estoffset, "BUT_estoffset");
     this.BUT_estoffset.Name = "BUT_estoffset";
     this.BUT_estoffset.UseVisualStyleBackColor = true;
     this.BUT_estoffset.Click += new System.EventHandler(this.BUT_estoffset_Click);
     //
     // BUT_doit
     //
     resources.ApplyResources(this.BUT_doit, "BUT_doit");
     this.BUT_doit.Name = "BUT_doit";
     this.BUT_doit.UseVisualStyleBackColor = true;
     this.BUT_doit.Click += new System.EventHandler(this.BUT_doit_Click);
     //
     // BUT_browsedir
     //
     resources.ApplyResources(this.BUT_browsedir, "BUT_browsedir");
     this.BUT_browsedir.Name = "BUT_browsedir";
     this.BUT_browsedir.UseVisualStyleBackColor = true;
     this.BUT_browsedir.Click += new System.EventHandler(this.BUT_browsedir_Click);
     //
     // BUT_browselog
     //
     resources.ApplyResources(this.BUT_browselog, "BUT_browselog");
     this.BUT_browselog.Name = "BUT_browselog";
     this.BUT_browselog.UseVisualStyleBackColor = true;
     this.BUT_browselog.Click += new System.EventHandler(this.BUT_browselog_Click);
     //
     // NUM_latpos
     //
     resources.ApplyResources(this.NUM_latpos, "NUM_latpos");
     this.NUM_latpos.Name = "NUM_latpos";
     this.NUM_latpos.Value = new decimal(new int[] {
     3,
     0,
     0,
     0});
     //
     // NUM_lngpos
     //
     resources.ApplyResources(this.NUM_lngpos, "NUM_lngpos");
     this.NUM_lngpos.Name = "NUM_lngpos";
     this.NUM_lngpos.Value = new decimal(new int[] {
     4,
     0,
     0,
     0});
     //
     // NUM_altpos
     //
     resources.ApplyResources(this.NUM_altpos, "NUM_altpos");
     this.NUM_altpos.Name = "NUM_altpos";
     this.NUM_altpos.Value = new decimal(new int[] {
     5,
     0,
     0,
     0});
     //
     // NUM_headingpos
     //
     resources.ApplyResources(this.NUM_headingpos, "NUM_headingpos");
     this.NUM_headingpos.Name = "NUM_headingpos";
     this.NUM_headingpos.Value = new decimal(new int[] {
     8,
     0,
     0,
     0});
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name = "label3";
     //
     // label4
     //
     resources.ApplyResources(this.label4, "label4");
     this.label4.Name = "label4";
     //
     // label5
     //
     resources.ApplyResources(this.label5, "label5");
     this.label5.Name = "label5";
     //
     // label6
     //
     resources.ApplyResources(this.label6, "label6");
     this.label6.Name = "label6";
     //
     // BUT_networklinkgeoref
     //
     resources.ApplyResources(this.BUT_networklinkgeoref, "BUT_networklinkgeoref");
     this.BUT_networklinkgeoref.Name = "BUT_networklinkgeoref";
     this.BUT_networklinkgeoref.UseVisualStyleBackColor = true;
     this.BUT_networklinkgeoref.Click += new System.EventHandler(this.BUT_networklinkgeoref_Click);
     //
     // num_vfov
     //
     resources.ApplyResources(this.num_vfov, "num_vfov");
     this.num_vfov.Maximum = new decimal(new int[] {
     900,
     0,
     0,
     0});
     this.num_vfov.Name = "num_vfov";
     this.num_vfov.Value = new decimal(new int[] {
     130,
     0,
     0,
     0});
     //
     // num_hfov
     //
     resources.ApplyResources(this.num_hfov, "num_hfov");
     this.num_hfov.Maximum = new decimal(new int[] {
     900,
     0,
     0,
     0});
     this.num_hfov.Name = "num_hfov";
     this.num_hfov.Value = new decimal(new int[] {
     200,
     0,
     0,
     0});
     //
     // label7
     //
     resources.ApplyResources(this.label7, "label7");
     this.label7.Name = "label7";
     //
     // label8
     //
     resources.ApplyResources(this.label8, "label8");
     this.label8.Name = "label8";
     //
     // num_camerarotation
     //
     resources.ApplyResources(this.num_camerarotation, "num_camerarotation");
     this.num_camerarotation.Maximum = new decimal(new int[] {
     180,
     0,
     0,
     0});
     this.num_camerarotation.Minimum = new decimal(new int[] {
     180,
     0,
     0,
     -2147483648});
     this.num_camerarotation.Name = "num_camerarotation";
     this.num_camerarotation.Value = new decimal(new int[] {
     90,
     0,
     0,
     0});
     //
     // label9
     //
     resources.ApplyResources(this.label9, "label9");
     this.label9.Name = "label9";
     //
     // NUM_time
     //
     resources.ApplyResources(this.NUM_time, "NUM_time");
     this.NUM_time.Name = "NUM_time";
     this.NUM_time.Value = new decimal(new int[] {
     2,
     0,
     0,
     0});
     //
     // label10
     //
     resources.ApplyResources(this.label10, "label10");
     this.label10.Name = "label10";
     //
     // Georefimage
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.label10);
     this.Controls.Add(this.NUM_time);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.num_camerarotation);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.num_hfov);
     this.Controls.Add(this.num_vfov);
     this.Controls.Add(this.BUT_networklinkgeoref);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.NUM_headingpos);
     this.Controls.Add(this.NUM_altpos);
     this.Controls.Add(this.NUM_lngpos);
     this.Controls.Add(this.NUM_latpos);
     this.Controls.Add(this.BUT_Geotagimages);
     this.Controls.Add(this.BUT_estoffset);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.TXT_outputlog);
     this.Controls.Add(this.BUT_doit);
     this.Controls.Add(this.TXT_offsetseconds);
     this.Controls.Add(this.TXT_jpgdir);
     this.Controls.Add(this.TXT_logfile);
     this.Controls.Add(this.BUT_browsedir);
     this.Controls.Add(this.BUT_browselog);
     this.Name = "Georefimage";
     ((System.ComponentModel.ISupportInitialize)(this.NUM_latpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_lngpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_altpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_headingpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_vfov)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_hfov)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_camerarotation)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_time)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 4
0
        //from http://www.csharp-examples.net/inputbox/
        public static DialogResult Show(string title, string promptText, ref string value)
        {
            Form form = new Form();
            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            TextBox textBox = new TextBox();
            ArdupilotMega.Controls.MyButton buttonOk = new ArdupilotMega.Controls.MyButton();
            ArdupilotMega.Controls.MyButton buttonCancel = new ArdupilotMega.Controls.MyButton();
            //System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainV2));
            //form.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            form.TopMost = true;
            form.TopLevel = true;

            form.Text = title;
            label.Text = promptText;
            textBox.Text = value;

            buttonOk.Text = "OK";
            buttonCancel.Text = "Cancel";
            buttonOk.DialogResult = DialogResult.OK;
            buttonCancel.DialogResult = DialogResult.Cancel;

            label.SetBounds(9, 20, 372, 13);
            textBox.SetBounds(12, 36, 372, 20);
            buttonOk.SetBounds(228, 72, 75, 23);
            buttonCancel.SetBounds(309, 72, 75, 23);

            label.AutoSize = true;
            textBox.Anchor = textBox.Anchor | AnchorStyles.Right;
            buttonOk.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
            buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, textBox, buttonOk, buttonCancel });
            form.ClientSize = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedSingle;
            form.StartPosition = FormStartPosition.CenterScreen;
            form.MinimizeBox = false;
            form.MaximizeBox = false;
            form.AcceptButton = buttonOk;
            form.CancelButton = buttonCancel;

            if (ApplyTheme != null)
                ApplyTheme(form);

            DialogResult dialogResult = DialogResult.Cancel;

            Console.WriteLine("Input Box");

            form.ShowDialog();

            Console.WriteLine("Input Box 2");

            dialogResult = form.DialogResult;

            if (dialogResult == DialogResult.OK)
            {
                value = textBox.Text;
            }

            form.Dispose();

            form = null;

            return dialogResult;
        }
Ejemplo n.º 5
0
 void BUT_go_Click(object sender, EventArgs e)
 {
     ArdupilotMega.Controls.MyButton but = sender as ArdupilotMega.Controls.MyButton;
 }
 /// <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(LogBrowse));
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.zg1 = new ZedGraph.ZedGraphControl();
     this.Graphit = new ArdupilotMega.Controls.MyButton();
     this.BUT_cleargraph = new ArdupilotMega.Controls.MyButton();
     this.BUT_loadlog = new ArdupilotMega.Controls.MyButton();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows = false;
     this.dataGridView1.AllowUserToDeleteRows = false;
     resources.ApplyResources(this.dataGridView1, "dataGridView1");
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.MultiSelect = false;
     this.dataGridView1.Name = "dataGridView1";
     this.dataGridView1.ReadOnly = true;
     this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
     this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick);
     this.dataGridView1.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowEnter);
     //
     // zg1
     //
     resources.ApplyResources(this.zg1, "zg1");
     this.zg1.Name = "zg1";
     this.zg1.ScrollGrace = 0D;
     this.zg1.ScrollMaxX = 0D;
     this.zg1.ScrollMaxY = 0D;
     this.zg1.ScrollMaxY2 = 0D;
     this.zg1.ScrollMinX = 0D;
     this.zg1.ScrollMinY = 0D;
     this.zg1.ScrollMinY2 = 0D;
     //
     // Graphit
     //
     this.Graphit.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.Graphit.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.Graphit, "Graphit");
     this.Graphit.Name = "Graphit";
     this.Graphit.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.Graphit.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.Graphit.UseVisualStyleBackColor = true;
     this.Graphit.Click += new System.EventHandler(this.Graphit_Click);
     //
     // BUT_cleargraph
     //
     this.BUT_cleargraph.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_cleargraph.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_cleargraph, "BUT_cleargraph");
     this.BUT_cleargraph.Name = "BUT_cleargraph";
     this.BUT_cleargraph.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_cleargraph.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_cleargraph.UseVisualStyleBackColor = true;
     this.BUT_cleargraph.Click += new System.EventHandler(this.BUT_cleargraph_Click);
     //
     // BUT_loadlog
     //
     this.BUT_loadlog.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_loadlog.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_loadlog, "BUT_loadlog");
     this.BUT_loadlog.Name = "BUT_loadlog";
     this.BUT_loadlog.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_loadlog.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_loadlog.UseVisualStyleBackColor = true;
     this.BUT_loadlog.Click += new System.EventHandler(this.BUT_loadlog_Click);
     //
     // splitContainer1
     //
     resources.ApplyResources(this.splitContainer1, "splitContainer1");
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.zg1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.Graphit);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_loadlog);
     this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_cleargraph);
     //
     // LogBrowse
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.splitContainer1);
     this.Name = "LogBrowse";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Firmware));
     this.pictureBoxAPM      = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxQuad     = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxHexa     = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxTri      = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxY6       = new ArdupilotMega.Controls.ImageLabel();
     this.lbl_status         = new System.Windows.Forms.Label();
     this.progress           = new System.Windows.Forms.ProgressBar();
     this.label2             = new System.Windows.Forms.Label();
     this.pictureBoxHeli     = new ArdupilotMega.Controls.ImageLabel();
     this.BUT_setup          = new ArdupilotMega.Controls.MyButton();
     this.pictureBoxHilimage = new System.Windows.Forms.PictureBox();
     this.pictureBoxAPHil    = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHil    = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHHil   = new System.Windows.Forms.PictureBox();
     this.pictureBoxOcta     = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxOctav    = new ArdupilotMega.Controls.ImageLabel();
     this.label1             = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBoxAPM
     //
     this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPM.Image  = null;
     resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
     this.pictureBoxAPM.Name    = "pictureBoxAPM";
     this.pictureBoxAPM.TabStop = false;
     this.pictureBoxAPM.Click  += new System.EventHandler(this.pictureBoxAPM_Click);
     //
     // pictureBoxQuad
     //
     this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxQuad.Image  = null;
     resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
     this.pictureBoxQuad.Name    = "pictureBoxQuad";
     this.pictureBoxQuad.TabStop = false;
     this.pictureBoxQuad.Click  += new System.EventHandler(this.pictureBoxQuad_Click);
     //
     // pictureBoxHexa
     //
     this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHexa.Image  = null;
     resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
     this.pictureBoxHexa.Name    = "pictureBoxHexa";
     this.pictureBoxHexa.TabStop = false;
     this.pictureBoxHexa.Click  += new System.EventHandler(this.pictureBoxHexa_Click);
     //
     // pictureBoxTri
     //
     this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxTri.Image  = null;
     resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
     this.pictureBoxTri.Name    = "pictureBoxTri";
     this.pictureBoxTri.TabStop = false;
     this.pictureBoxTri.Click  += new System.EventHandler(this.pictureBoxTri_Click);
     //
     // pictureBoxY6
     //
     this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxY6.Image  = null;
     resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
     this.pictureBoxY6.Name    = "pictureBoxY6";
     this.pictureBoxY6.TabStop = false;
     this.pictureBoxY6.Click  += new System.EventHandler(this.pictureBoxY6_Click);
     //
     // lbl_status
     //
     resources.ApplyResources(this.lbl_status, "lbl_status");
     this.lbl_status.Name = "lbl_status";
     //
     // progress
     //
     resources.ApplyResources(this.progress, "progress");
     this.progress.Name = "progress";
     this.progress.Step = 1;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // pictureBoxHeli
     //
     this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHeli.Image  = null;
     resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
     this.pictureBoxHeli.Name    = "pictureBoxHeli";
     this.pictureBoxHeli.TabStop = false;
     this.pictureBoxHeli.Click  += new System.EventHandler(this.pictureBoxHeli_Click);
     //
     // BUT_setup
     //
     resources.ApplyResources(this.BUT_setup, "BUT_setup");
     this.BUT_setup.Name = "BUT_setup";
     this.BUT_setup.UseVisualStyleBackColor = true;
     this.BUT_setup.Click += new System.EventHandler(this.BUT_setup_Click);
     //
     // pictureBoxHilimage
     //
     this.pictureBoxHilimage.Image = global::ArdupilotMega.Properties.Resources.hil;
     resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
     this.pictureBoxHilimage.Name    = "pictureBoxHilimage";
     this.pictureBoxHilimage.TabStop = false;
     //
     // pictureBoxAPHil
     //
     this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPHil.Image  = global::ArdupilotMega.Properties.Resources.hilplane;
     resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
     this.pictureBoxAPHil.Name        = "pictureBoxAPHil";
     this.pictureBoxAPHil.TabStop     = false;
     this.pictureBoxAPHil.Click      += new System.EventHandler(this.pictureBoxAPHil_Click);
     this.pictureBoxAPHil.MouseEnter += new System.EventHandler(this.pictureBoxAPHil_MouseEnter);
     this.pictureBoxAPHil.MouseLeave += new System.EventHandler(this.pictureBoxAPHil_MouseLeave);
     //
     // pictureBoxACHil
     //
     this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHil.Image  = global::ArdupilotMega.Properties.Resources.hilquad;
     resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
     this.pictureBoxACHil.Name    = "pictureBoxACHil";
     this.pictureBoxACHil.TabStop = false;
     this.pictureBoxACHil.Click  += new System.EventHandler(this.pictureBoxACHil_Click);
     //
     // pictureBoxACHHil
     //
     this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHHil.Image  = global::ArdupilotMega.Properties.Resources.hilheli;
     resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
     this.pictureBoxACHHil.Name    = "pictureBoxACHHil";
     this.pictureBoxACHHil.TabStop = false;
     this.pictureBoxACHHil.Click  += new System.EventHandler(this.pictureBoxACHHil_Click);
     //
     // pictureBoxOcta
     //
     this.pictureBoxOcta.Image = null;
     resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
     this.pictureBoxOcta.Name    = "pictureBoxOcta";
     this.pictureBoxOcta.TabStop = false;
     this.pictureBoxOcta.Click  += new System.EventHandler(this.pictureBoxOcta_Click);
     //
     // pictureBoxOctav
     //
     this.pictureBoxOctav.Image = null;
     resources.ApplyResources(this.pictureBoxOctav, "pictureBoxOctav");
     this.pictureBoxOctav.Name    = "pictureBoxOctav";
     this.pictureBoxOctav.TabStop = false;
     this.pictureBoxOctav.Click  += new System.EventHandler(this.pictureBoxOctav_Click);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // Firmware
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.BUT_setup);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lbl_status);
     this.Controls.Add(this.progress);
     this.Controls.Add(this.pictureBoxACHHil);
     this.Controls.Add(this.pictureBoxACHil);
     this.Controls.Add(this.pictureBoxAPHil);
     this.Controls.Add(this.pictureBoxHilimage);
     this.Controls.Add(this.pictureBoxOctav);
     this.Controls.Add(this.pictureBoxOcta);
     this.Controls.Add(this.pictureBoxHeli);
     this.Controls.Add(this.pictureBoxY6);
     this.Controls.Add(this.pictureBoxTri);
     this.Controls.Add(this.pictureBoxHexa);
     this.Controls.Add(this.pictureBoxQuad);
     this.Controls.Add(this.pictureBoxAPM);
     this.MinimumSize = new System.Drawing.Size(1008, 461);
     this.Name        = "Firmware";
     this.Load       += new System.EventHandler(this.Firmware_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 8
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Firmware));
     this.pictureBoxAPM         = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxQuad        = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxHexa        = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxTri         = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxY6          = new ArdupilotMega.Controls.ImageLabel();
     this.lbl_status            = new System.Windows.Forms.Label();
     this.progress              = new System.Windows.Forms.ProgressBar();
     this.label2                = new System.Windows.Forms.Label();
     this.pictureBoxHeli        = new ArdupilotMega.Controls.ImageLabel();
     this.BUT_setup             = new ArdupilotMega.Controls.MyButton();
     this.pictureBoxHilimage    = new System.Windows.Forms.PictureBox();
     this.pictureBoxAPHil       = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHil       = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHHil      = new System.Windows.Forms.PictureBox();
     this.pictureBoxOcta        = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxOctaQuad    = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxRover       = new ArdupilotMega.Controls.ImageLabel();
     this.label1                = new System.Windows.Forms.Label();
     this.CMB_history           = new System.Windows.Forms.ComboBox();
     this.CMB_history_label     = new System.Windows.Forms.Label();
     this.Custom_firmware_label = new System.Windows.Forms.Label();
     this.lbl_devfw             = new System.Windows.Forms.Label();
     this.lbl_px4io             = new System.Windows.Forms.Label();
     this.lbl_dlfw              = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBoxAPM
     //
     this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPM.Image  = null;
     resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
     this.pictureBoxAPM.Name    = "pictureBoxAPM";
     this.pictureBoxAPM.TabStop = false;
     this.pictureBoxAPM.Click  += new System.EventHandler(this.pictureBoxAPM_Click);
     //
     // pictureBoxQuad
     //
     this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxQuad.Image  = null;
     resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
     this.pictureBoxQuad.Name    = "pictureBoxQuad";
     this.pictureBoxQuad.TabStop = false;
     this.pictureBoxQuad.Click  += new System.EventHandler(this.pictureBoxQuad_Click);
     //
     // pictureBoxHexa
     //
     this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHexa.Image  = null;
     resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
     this.pictureBoxHexa.Name    = "pictureBoxHexa";
     this.pictureBoxHexa.TabStop = false;
     this.pictureBoxHexa.Click  += new System.EventHandler(this.pictureBoxHexa_Click);
     //
     // pictureBoxTri
     //
     this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxTri.Image  = null;
     resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
     this.pictureBoxTri.Name    = "pictureBoxTri";
     this.pictureBoxTri.TabStop = false;
     this.pictureBoxTri.Click  += new System.EventHandler(this.pictureBoxTri_Click);
     //
     // pictureBoxY6
     //
     this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxY6.Image  = null;
     resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
     this.pictureBoxY6.Name    = "pictureBoxY6";
     this.pictureBoxY6.TabStop = false;
     this.pictureBoxY6.Click  += new System.EventHandler(this.pictureBoxY6_Click);
     //
     // lbl_status
     //
     resources.ApplyResources(this.lbl_status, "lbl_status");
     this.lbl_status.Name = "lbl_status";
     //
     // progress
     //
     resources.ApplyResources(this.progress, "progress");
     this.progress.Name = "progress";
     this.progress.Step = 1;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // pictureBoxHeli
     //
     this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHeli.Image  = null;
     resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
     this.pictureBoxHeli.Name    = "pictureBoxHeli";
     this.pictureBoxHeli.TabStop = false;
     this.pictureBoxHeli.Click  += new System.EventHandler(this.pictureBoxHeli_Click);
     //
     // BUT_setup
     //
     resources.ApplyResources(this.BUT_setup, "BUT_setup");
     this.BUT_setup.Name = "BUT_setup";
     this.BUT_setup.UseVisualStyleBackColor = true;
     this.BUT_setup.Click += new System.EventHandler(this.BUT_setup_Click);
     //
     // pictureBoxHilimage
     //
     this.pictureBoxHilimage.Image = global::ArdupilotMega.Properties.Resources.hil;
     resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
     this.pictureBoxHilimage.Name    = "pictureBoxHilimage";
     this.pictureBoxHilimage.TabStop = false;
     //
     // pictureBoxAPHil
     //
     this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPHil.Image  = global::ArdupilotMega.Properties.Resources.hilplane;
     resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
     this.pictureBoxAPHil.Name    = "pictureBoxAPHil";
     this.pictureBoxAPHil.TabStop = false;
     this.pictureBoxAPHil.Click  += new System.EventHandler(this.pictureBoxAPHil_Click);
     //
     // pictureBoxACHil
     //
     this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHil.Image  = global::ArdupilotMega.Properties.Resources.hilquad;
     resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
     this.pictureBoxACHil.Name    = "pictureBoxACHil";
     this.pictureBoxACHil.TabStop = false;
     this.pictureBoxACHil.Click  += new System.EventHandler(this.pictureBoxACHil_Click);
     //
     // pictureBoxACHHil
     //
     this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHHil.Image  = global::ArdupilotMega.Properties.Resources.hilheli;
     resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
     this.pictureBoxACHHil.Name    = "pictureBoxACHHil";
     this.pictureBoxACHHil.TabStop = false;
     this.pictureBoxACHHil.Click  += new System.EventHandler(this.pictureBoxACHHil_Click);
     //
     // pictureBoxOcta
     //
     this.pictureBoxOcta.Image = null;
     resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
     this.pictureBoxOcta.Name    = "pictureBoxOcta";
     this.pictureBoxOcta.TabStop = false;
     this.pictureBoxOcta.Click  += new System.EventHandler(this.pictureBoxOcta_Click);
     //
     // pictureBoxOctaQuad
     //
     this.pictureBoxOctaQuad.Image = null;
     resources.ApplyResources(this.pictureBoxOctaQuad, "pictureBoxOctaQuad");
     this.pictureBoxOctaQuad.Name    = "pictureBoxOctaQuad";
     this.pictureBoxOctaQuad.TabStop = false;
     this.pictureBoxOctaQuad.Click  += new System.EventHandler(this.pictureBoxOctav_Click);
     //
     // pictureBoxRover
     //
     this.pictureBoxRover.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxRover.Image  = null;
     resources.ApplyResources(this.pictureBoxRover, "pictureBoxRover");
     this.pictureBoxRover.Name    = "pictureBoxRover";
     this.pictureBoxRover.TabStop = false;
     this.pictureBoxRover.Click  += new System.EventHandler(this.pictureBoxRover_Click);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // CMB_history
     //
     this.CMB_history.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CMB_history.FormattingEnabled = true;
     resources.ApplyResources(this.CMB_history, "CMB_history");
     this.CMB_history.Name = "CMB_history";
     this.CMB_history.SelectedIndexChanged += new System.EventHandler(this.CMB_history_SelectedIndexChanged);
     //
     // CMB_history_label
     //
     resources.ApplyResources(this.CMB_history_label, "CMB_history_label");
     this.CMB_history_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.CMB_history_label.Name   = "CMB_history_label";
     this.CMB_history_label.Click += new System.EventHandler(this.CMB_history_label_Click);
     //
     // Custom_firmware_label
     //
     resources.ApplyResources(this.Custom_firmware_label, "Custom_firmware_label");
     this.Custom_firmware_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.Custom_firmware_label.Name   = "Custom_firmware_label";
     this.Custom_firmware_label.Click += new System.EventHandler(this.Custom_firmware_label_Click);
     //
     // lbl_devfw
     //
     resources.ApplyResources(this.lbl_devfw, "lbl_devfw");
     this.lbl_devfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_devfw.Name   = "lbl_devfw";
     this.lbl_devfw.Click += new System.EventHandler(this.lbl_devfw_Click);
     //
     // lbl_px4io
     //
     resources.ApplyResources(this.lbl_px4io, "lbl_px4io");
     this.lbl_px4io.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_px4io.Name   = "lbl_px4io";
     this.lbl_px4io.Click += new System.EventHandler(this.lbl_px4io_Click);
     //
     // lbl_dlfw
     //
     resources.ApplyResources(this.lbl_dlfw, "lbl_dlfw");
     this.lbl_dlfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_dlfw.Name   = "lbl_dlfw";
     this.lbl_dlfw.Click += new System.EventHandler(this.lbl_dlfw_Click);
     //
     // Firmware
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.lbl_dlfw);
     this.Controls.Add(this.lbl_px4io);
     this.Controls.Add(this.lbl_devfw);
     this.Controls.Add(this.Custom_firmware_label);
     this.Controls.Add(this.CMB_history_label);
     this.Controls.Add(this.pictureBoxRover);
     this.Controls.Add(this.CMB_history);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.BUT_setup);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lbl_status);
     this.Controls.Add(this.progress);
     this.Controls.Add(this.pictureBoxACHHil);
     this.Controls.Add(this.pictureBoxACHil);
     this.Controls.Add(this.pictureBoxAPHil);
     this.Controls.Add(this.pictureBoxHilimage);
     this.Controls.Add(this.pictureBoxOctaQuad);
     this.Controls.Add(this.pictureBoxOcta);
     this.Controls.Add(this.pictureBoxHeli);
     this.Controls.Add(this.pictureBoxY6);
     this.Controls.Add(this.pictureBoxTri);
     this.Controls.Add(this.pictureBoxHexa);
     this.Controls.Add(this.pictureBoxQuad);
     this.Controls.Add(this.pictureBoxAPM);
     this.MinimumSize = new System.Drawing.Size(1008, 461);
     this.Name        = "Firmware";
     this.Load       += new System.EventHandler(this.Firmware_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 9
0
        private static void AddButtonsToForm(Form msgBoxFrm, MessageBoxButtons buttons)
        {
            Rectangle screenRectangle = msgBoxFrm.RectangleToScreen(msgBoxFrm.ClientRectangle);
            int       titleHeight     = screenRectangle.Top - msgBoxFrm.Top;

            var t = Type.GetType("Mono.Runtime");

            if ((t != null))
            {
                titleHeight = 25;
            }

            switch (buttons)
            {
            case MessageBoxButtons.OK:
                var but = new ArdupilotMega.Controls.MyButton
                {
                    Size = new Size(75, 23),
                    Text = "OK",
                    Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN,
                    Top  = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                };

                but.Click += delegate { _state = DialogResult.OK; msgBoxFrm.Close(); };
                msgBoxFrm.Controls.Add(but);
                msgBoxFrm.AcceptButton = but;
                break;

            case MessageBoxButtons.YesNo:

                if (msgBoxFrm.Width < (75 * 2 + FORM_X_MARGIN * 3))
                {
                    msgBoxFrm.Width = (75 * 2 + FORM_X_MARGIN * 3);
                }

                var butyes = new ArdupilotMega.Controls.MyButton
                {
                    Size = new Size(75, 23),
                    Text = "Yes",
                    Left = msgBoxFrm.Width - 75 * 2 - FORM_X_MARGIN * 2,
                    Top  = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                };

                butyes.Click += delegate { _state = DialogResult.Yes; msgBoxFrm.Close(); };
                msgBoxFrm.Controls.Add(butyes);
                msgBoxFrm.AcceptButton = butyes;

                var butno = new ArdupilotMega.Controls.MyButton
                {
                    Size = new Size(75, 23),
                    Text = "No",
                    Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN,
                    Top  = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                };

                butno.Click += delegate { _state = DialogResult.No; msgBoxFrm.Close(); };
                msgBoxFrm.Controls.Add(butno);
                msgBoxFrm.CancelButton = butno;
                break;

            default:
                throw new NotImplementedException("Only MessageBoxButtons.OK and YesNo supported at this time");
            }
        }
Ejemplo n.º 10
0
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Firmware));
            this.pictureBoxAPM = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxQuad = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxHexa = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxTri = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxY6 = new ArdupilotMega.Controls.ImageLabel();
            this.lbl_status = new System.Windows.Forms.Label();
            this.progress = new System.Windows.Forms.ProgressBar();
            this.label2 = new System.Windows.Forms.Label();
            this.pictureBoxHeli = new ArdupilotMega.Controls.ImageLabel();
            this.BUT_setup = new ArdupilotMega.Controls.MyButton();
            this.pictureBoxHilimage = new System.Windows.Forms.PictureBox();
            this.pictureBoxAPHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxACHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxACHHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxOcta = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxOctav = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxRover = new ArdupilotMega.Controls.ImageLabel();
            this.label1 = new System.Windows.Forms.Label();
            this.CMB_history = new System.Windows.Forms.ComboBox();
            this.CMB_history_label = new System.Windows.Forms.Label();
            this.Custom_firmware_label = new System.Windows.Forms.Label();
            this.lbl_devfw = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
            this.SuspendLayout();
            // 
            // pictureBoxAPM
            // 
            this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxAPM.Image = null;
            resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
            this.pictureBoxAPM.Name = "pictureBoxAPM";
            this.pictureBoxAPM.TabStop = false;
            this.pictureBoxAPM.Click += new System.EventHandler(this.pictureBoxAPM_Click);
            // 
            // pictureBoxQuad
            // 
            this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxQuad.Image = null;
            resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
            this.pictureBoxQuad.Name = "pictureBoxQuad";
            this.pictureBoxQuad.TabStop = false;
            this.pictureBoxQuad.Click += new System.EventHandler(this.pictureBoxQuad_Click);
            // 
            // pictureBoxHexa
            // 
            this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxHexa.Image = null;
            resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
            this.pictureBoxHexa.Name = "pictureBoxHexa";
            this.pictureBoxHexa.TabStop = false;
            this.pictureBoxHexa.Click += new System.EventHandler(this.pictureBoxHexa_Click);
            // 
            // pictureBoxTri
            // 
            this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxTri.Image = null;
            resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
            this.pictureBoxTri.Name = "pictureBoxTri";
            this.pictureBoxTri.TabStop = false;
            this.pictureBoxTri.Click += new System.EventHandler(this.pictureBoxTri_Click);
            // 
            // pictureBoxY6
            // 
            this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxY6.Image = null;
            resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
            this.pictureBoxY6.Name = "pictureBoxY6";
            this.pictureBoxY6.TabStop = false;
            this.pictureBoxY6.Click += new System.EventHandler(this.pictureBoxY6_Click);
            // 
            // lbl_status
            // 
            resources.ApplyResources(this.lbl_status, "lbl_status");
            this.lbl_status.Name = "lbl_status";
            // 
            // progress
            // 
            resources.ApplyResources(this.progress, "progress");
            this.progress.Name = "progress";
            this.progress.Step = 1;
            // 
            // label2
            // 
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";
            // 
            // pictureBoxHeli
            // 
            this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxHeli.Image = null;
            resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
            this.pictureBoxHeli.Name = "pictureBoxHeli";
            this.pictureBoxHeli.TabStop = false;
            this.pictureBoxHeli.Click += new System.EventHandler(this.pictureBoxHeli_Click);
            // 
            // BUT_setup
            // 
            resources.ApplyResources(this.BUT_setup, "BUT_setup");
            this.BUT_setup.Name = "BUT_setup";
            this.BUT_setup.UseVisualStyleBackColor = true;
            this.BUT_setup.Click += new System.EventHandler(this.BUT_setup_Click);
            // 
            // pictureBoxHilimage
            // 
            this.pictureBoxHilimage.Image = global::ArdupilotMega.Properties.Resources.hil;
            resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
            this.pictureBoxHilimage.Name = "pictureBoxHilimage";
            this.pictureBoxHilimage.TabStop = false;
            // 
            // pictureBoxAPHil
            // 
            this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxAPHil.Image = global::ArdupilotMega.Properties.Resources.hilplane;
            resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
            this.pictureBoxAPHil.Name = "pictureBoxAPHil";
            this.pictureBoxAPHil.TabStop = false;
            this.pictureBoxAPHil.Click += new System.EventHandler(this.pictureBoxAPHil_Click);
            // 
            // pictureBoxACHil
            // 
            this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxACHil.Image = global::ArdupilotMega.Properties.Resources.hilquad;
            resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
            this.pictureBoxACHil.Name = "pictureBoxACHil";
            this.pictureBoxACHil.TabStop = false;
            this.pictureBoxACHil.Click += new System.EventHandler(this.pictureBoxACHil_Click);
            // 
            // pictureBoxACHHil
            // 
            this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxACHHil.Image = global::ArdupilotMega.Properties.Resources.hilheli;
            resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
            this.pictureBoxACHHil.Name = "pictureBoxACHHil";
            this.pictureBoxACHHil.TabStop = false;
            this.pictureBoxACHHil.Click += new System.EventHandler(this.pictureBoxACHHil_Click);
            // 
            // pictureBoxOcta
            // 
            this.pictureBoxOcta.Image = null;
            resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
            this.pictureBoxOcta.Name = "pictureBoxOcta";
            this.pictureBoxOcta.TabStop = false;
            this.pictureBoxOcta.Click += new System.EventHandler(this.pictureBoxOcta_Click);
            // 
            // pictureBoxOctav
            // 
            this.pictureBoxOctav.Image = null;
            resources.ApplyResources(this.pictureBoxOctav, "pictureBoxOctav");
            this.pictureBoxOctav.Name = "pictureBoxOctav";
            this.pictureBoxOctav.TabStop = false;
            this.pictureBoxOctav.Click += new System.EventHandler(this.pictureBoxOctav_Click);
            // 
            // pictureBoxRover
            // 
            this.pictureBoxRover.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxRover.Image = null;
            resources.ApplyResources(this.pictureBoxRover, "pictureBoxRover");
            this.pictureBoxRover.Name = "pictureBoxRover";
            this.pictureBoxRover.TabStop = false;
            this.pictureBoxRover.Click += new System.EventHandler(this.pictureBoxRover_Click);
            // 
            // label1
            // 
            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";
            // 
            // CMB_history
            // 
            this.CMB_history.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.CMB_history.FormattingEnabled = true;
            resources.ApplyResources(this.CMB_history, "CMB_history");
            this.CMB_history.Name = "CMB_history";
            this.CMB_history.SelectedIndexChanged += new System.EventHandler(this.CMB_history_SelectedIndexChanged);
            // 
            // CMB_history_label
            // 
            resources.ApplyResources(this.CMB_history_label, "CMB_history_label");
            this.CMB_history_label.Cursor = System.Windows.Forms.Cursors.Hand;
            this.CMB_history_label.Name = "CMB_history_label";
            this.CMB_history_label.Click += new System.EventHandler(this.CMB_history_label_Click);
            // 
            // Custom_firmware_label
            // 
            resources.ApplyResources(this.Custom_firmware_label, "Custom_firmware_label");
            this.Custom_firmware_label.Cursor = System.Windows.Forms.Cursors.Hand;
            this.Custom_firmware_label.Name = "Custom_firmware_label";
            this.Custom_firmware_label.Click += new System.EventHandler(this.Custom_firmware_label_Click);
            // 
            // lbl_devfw
            // 
            resources.ApplyResources(this.lbl_devfw, "lbl_devfw");
            this.lbl_devfw.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lbl_devfw.Name = "lbl_devfw";
            this.lbl_devfw.Click += new System.EventHandler(this.lbl_devfw_Click);
            // 
            // Firmware
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.lbl_devfw);
            this.Controls.Add(this.Custom_firmware_label);
            this.Controls.Add(this.CMB_history_label);
            this.Controls.Add(this.pictureBoxRover);
            this.Controls.Add(this.CMB_history);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.BUT_setup);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.lbl_status);
            this.Controls.Add(this.progress);
            this.Controls.Add(this.pictureBoxACHHil);
            this.Controls.Add(this.pictureBoxACHil);
            this.Controls.Add(this.pictureBoxAPHil);
            this.Controls.Add(this.pictureBoxHilimage);
            this.Controls.Add(this.pictureBoxOctav);
            this.Controls.Add(this.pictureBoxOcta);
            this.Controls.Add(this.pictureBoxHeli);
            this.Controls.Add(this.pictureBoxY6);
            this.Controls.Add(this.pictureBoxTri);
            this.Controls.Add(this.pictureBoxHexa);
            this.Controls.Add(this.pictureBoxQuad);
            this.Controls.Add(this.pictureBoxAPM);
            this.MinimumSize = new System.Drawing.Size(1008, 461);
            this.Name = "Firmware";
            this.Load += new System.EventHandler(this.Firmware_Load);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Ejemplo n.º 11
0
        private void InitializeComponent()
        {
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.TXT_logfile = new System.Windows.Forms.TextBox();
            this.TXT_jpgdir = new System.Windows.Forms.TextBox();
            this.TXT_offsetseconds = new System.Windows.Forms.TextBox();
            this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
            this.TXT_outputlog = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.BUT_Geotagimages = new ArdupilotMega.Controls.MyButton();
            this.BUT_estoffset = new ArdupilotMega.Controls.MyButton();
            this.BUT_doit = new ArdupilotMega.Controls.MyButton();
            this.BUT_browsedir = new ArdupilotMega.Controls.MyButton();
            this.BUT_browselog = new ArdupilotMega.Controls.MyButton();
            this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
            this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
            this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
            this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.BUT_networklinkgeoref = new ArdupilotMega.Controls.MyButton();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
            this.SuspendLayout();
            // 
            // openFileDialog1
            // 
            this.openFileDialog1.FileName = "openFileDialog1";
            // 
            // TXT_logfile
            // 
            this.TXT_logfile.Location = new System.Drawing.Point(28, 14);
            this.TXT_logfile.Name = "TXT_logfile";
            this.TXT_logfile.Size = new System.Drawing.Size(317, 20);
            this.TXT_logfile.TabIndex = 2;
            this.TXT_logfile.TextChanged += new System.EventHandler(this.TXT_logfile_TextChanged);
            // 
            // TXT_jpgdir
            // 
            this.TXT_jpgdir.Location = new System.Drawing.Point(28, 43);
            this.TXT_jpgdir.Name = "TXT_jpgdir";
            this.TXT_jpgdir.Size = new System.Drawing.Size(317, 20);
            this.TXT_jpgdir.TabIndex = 3;
            // 
            // TXT_offsetseconds
            // 
            this.TXT_offsetseconds.Location = new System.Drawing.Point(180, 69);
            this.TXT_offsetseconds.Name = "TXT_offsetseconds";
            this.TXT_offsetseconds.Size = new System.Drawing.Size(100, 20);
            this.TXT_offsetseconds.TabIndex = 4;
            this.TXT_offsetseconds.Text = "0";
            // 
            // TXT_outputlog
            // 
            this.TXT_outputlog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.TXT_outputlog.Location = new System.Drawing.Point(28, 190);
            this.TXT_outputlog.Multiline = true;
            this.TXT_outputlog.Name = "TXT_outputlog";
            this.TXT_outputlog.ReadOnly = true;
            this.TXT_outputlog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.TXT_outputlog.Size = new System.Drawing.Size(397, 160);
            this.TXT_outputlog.TabIndex = 6;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(94, 75);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(78, 13);
            this.label1.TabIndex = 7;
            this.label1.Text = "Seconds offset";
            // 
            // BUT_Geotagimages
            // 
            this.BUT_Geotagimages.Enabled = false;
            this.BUT_Geotagimages.Location = new System.Drawing.Point(259, 161);
            this.BUT_Geotagimages.Name = "BUT_Geotagimages";
            this.BUT_Geotagimages.Size = new System.Drawing.Size(75, 23);
            this.BUT_Geotagimages.TabIndex = 9;
            this.BUT_Geotagimages.Text = "GeoTag Images";
            this.BUT_Geotagimages.UseVisualStyleBackColor = true;
            this.BUT_Geotagimages.Click += new System.EventHandler(this.BUT_Geotagimages_Click);
            // 
            // BUT_estoffset
            // 
            this.BUT_estoffset.Location = new System.Drawing.Point(286, 67);
            this.BUT_estoffset.Name = "BUT_estoffset";
            this.BUT_estoffset.Size = new System.Drawing.Size(75, 23);
            this.BUT_estoffset.TabIndex = 8;
            this.BUT_estoffset.Text = "Estimate Offset";
            this.BUT_estoffset.UseVisualStyleBackColor = true;
            this.BUT_estoffset.Click += new System.EventHandler(this.BUT_estoffset_Click);
            // 
            // BUT_doit
            // 
            this.BUT_doit.Location = new System.Drawing.Point(97, 161);
            this.BUT_doit.Name = "BUT_doit";
            this.BUT_doit.Size = new System.Drawing.Size(75, 23);
            this.BUT_doit.TabIndex = 5;
            this.BUT_doit.Text = "Do It";
            this.BUT_doit.UseVisualStyleBackColor = true;
            this.BUT_doit.Click += new System.EventHandler(this.BUT_doit_Click);
            // 
            // BUT_browsedir
            // 
            this.BUT_browsedir.Location = new System.Drawing.Point(351, 41);
            this.BUT_browsedir.Name = "BUT_browsedir";
            this.BUT_browsedir.Size = new System.Drawing.Size(75, 23);
            this.BUT_browsedir.TabIndex = 1;
            this.BUT_browsedir.Text = "Browse Directory";
            this.BUT_browsedir.UseVisualStyleBackColor = true;
            this.BUT_browsedir.Click += new System.EventHandler(this.BUT_browsedir_Click);
            // 
            // BUT_browselog
            // 
            this.BUT_browselog.Location = new System.Drawing.Point(351, 12);
            this.BUT_browselog.Name = "BUT_browselog";
            this.BUT_browselog.Size = new System.Drawing.Size(75, 23);
            this.BUT_browselog.TabIndex = 0;
            this.BUT_browselog.Text = "Browse Log";
            this.BUT_browselog.UseVisualStyleBackColor = true;
            this.BUT_browselog.Click += new System.EventHandler(this.BUT_browselog_Click);
            // 
            // numericUpDown1
            // 
            this.numericUpDown1.Location = new System.Drawing.Point(130, 116);
            this.numericUpDown1.Name = "numericUpDown1";
            this.numericUpDown1.Size = new System.Drawing.Size(42, 20);
            this.numericUpDown1.TabIndex = 10;
            this.numericUpDown1.Value = new decimal(new int[] {
            4,
            0,
            0,
            0});
            // 
            // numericUpDown2
            // 
            this.numericUpDown2.Location = new System.Drawing.Point(178, 116);
            this.numericUpDown2.Name = "numericUpDown2";
            this.numericUpDown2.Size = new System.Drawing.Size(42, 20);
            this.numericUpDown2.TabIndex = 11;
            this.numericUpDown2.Value = new decimal(new int[] {
            5,
            0,
            0,
            0});
            // 
            // numericUpDown3
            // 
            this.numericUpDown3.Location = new System.Drawing.Point(226, 116);
            this.numericUpDown3.Name = "numericUpDown3";
            this.numericUpDown3.Size = new System.Drawing.Size(42, 20);
            this.numericUpDown3.TabIndex = 12;
            this.numericUpDown3.Value = new decimal(new int[] {
            7,
            0,
            0,
            0});
            // 
            // numericUpDown4
            // 
            this.numericUpDown4.Location = new System.Drawing.Point(274, 116);
            this.numericUpDown4.Name = "numericUpDown4";
            this.numericUpDown4.Size = new System.Drawing.Size(42, 20);
            this.numericUpDown4.TabIndex = 13;
            this.numericUpDown4.Value = new decimal(new int[] {
            9,
            0,
            0,
            0});
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(127, 100);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(22, 13);
            this.label2.TabIndex = 14;
            this.label2.Text = "Lat";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(175, 100);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(25, 13);
            this.label3.TabIndex = 15;
            this.label3.Text = "Lon";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(223, 100);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(19, 13);
            this.label4.TabIndex = 16;
            this.label4.Text = "Alt";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(271, 100);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(47, 13);
            this.label5.TabIndex = 17;
            this.label5.Text = "Heading";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(63, 118);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(61, 13);
            this.label6.TabIndex = 18;
            this.label6.Text = "Log Offsets";
            // 
            // BUT_networklinkgeoref
            // 
            this.BUT_networklinkgeoref.Location = new System.Drawing.Point(178, 161);
            this.BUT_networklinkgeoref.Name = "BUT_networklinkgeoref";
            this.BUT_networklinkgeoref.Size = new System.Drawing.Size(75, 23);
            this.BUT_networklinkgeoref.TabIndex = 19;
            this.BUT_networklinkgeoref.Text = "Location Kml";
            this.BUT_networklinkgeoref.UseVisualStyleBackColor = true;
            this.BUT_networklinkgeoref.Click += new System.EventHandler(this.BUT_networklinkgeoref_Click);
            // 
            // Georefimage
            // 
            this.ClientSize = new System.Drawing.Size(452, 362);
            this.Controls.Add(this.BUT_networklinkgeoref);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.numericUpDown4);
            this.Controls.Add(this.numericUpDown3);
            this.Controls.Add(this.numericUpDown2);
            this.Controls.Add(this.numericUpDown1);
            this.Controls.Add(this.BUT_Geotagimages);
            this.Controls.Add(this.BUT_estoffset);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.TXT_outputlog);
            this.Controls.Add(this.BUT_doit);
            this.Controls.Add(this.TXT_offsetseconds);
            this.Controls.Add(this.TXT_jpgdir);
            this.Controls.Add(this.TXT_logfile);
            this.Controls.Add(this.BUT_browsedir);
            this.Controls.Add(this.BUT_browselog);
            this.Name = "Georefimage";
            this.Text = "Geo Ref Images";
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Ejemplo n.º 12
0
 private void InitializeComponent()
 {
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.TXT_logfile          = new System.Windows.Forms.TextBox();
     this.TXT_jpgdir           = new System.Windows.Forms.TextBox();
     this.TXT_offsetseconds    = new System.Windows.Forms.TextBox();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.TXT_outputlog        = new System.Windows.Forms.TextBox();
     this.label1                = new System.Windows.Forms.Label();
     this.BUT_Geotagimages      = new ArdupilotMega.Controls.MyButton();
     this.BUT_estoffset         = new ArdupilotMega.Controls.MyButton();
     this.BUT_doit              = new ArdupilotMega.Controls.MyButton();
     this.BUT_browsedir         = new ArdupilotMega.Controls.MyButton();
     this.BUT_browselog         = new ArdupilotMega.Controls.MyButton();
     this.numericUpDown1        = new System.Windows.Forms.NumericUpDown();
     this.numericUpDown2        = new System.Windows.Forms.NumericUpDown();
     this.numericUpDown3        = new System.Windows.Forms.NumericUpDown();
     this.numericUpDown4        = new System.Windows.Forms.NumericUpDown();
     this.label2                = new System.Windows.Forms.Label();
     this.label3                = new System.Windows.Forms.Label();
     this.label4                = new System.Windows.Forms.Label();
     this.label5                = new System.Windows.Forms.Label();
     this.label6                = new System.Windows.Forms.Label();
     this.BUT_networklinkgeoref = new ArdupilotMega.Controls.MyButton();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
     this.SuspendLayout();
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     //
     // TXT_logfile
     //
     this.TXT_logfile.Location     = new System.Drawing.Point(28, 14);
     this.TXT_logfile.Name         = "TXT_logfile";
     this.TXT_logfile.Size         = new System.Drawing.Size(317, 20);
     this.TXT_logfile.TabIndex     = 2;
     this.TXT_logfile.TextChanged += new System.EventHandler(this.TXT_logfile_TextChanged);
     //
     // TXT_jpgdir
     //
     this.TXT_jpgdir.Location = new System.Drawing.Point(28, 43);
     this.TXT_jpgdir.Name     = "TXT_jpgdir";
     this.TXT_jpgdir.Size     = new System.Drawing.Size(317, 20);
     this.TXT_jpgdir.TabIndex = 3;
     //
     // TXT_offsetseconds
     //
     this.TXT_offsetseconds.Location = new System.Drawing.Point(180, 69);
     this.TXT_offsetseconds.Name     = "TXT_offsetseconds";
     this.TXT_offsetseconds.Size     = new System.Drawing.Size(100, 20);
     this.TXT_offsetseconds.TabIndex = 4;
     this.TXT_offsetseconds.Text     = "0";
     //
     // TXT_outputlog
     //
     this.TXT_outputlog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                        | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.TXT_outputlog.Location   = new System.Drawing.Point(28, 190);
     this.TXT_outputlog.Multiline  = true;
     this.TXT_outputlog.Name       = "TXT_outputlog";
     this.TXT_outputlog.ReadOnly   = true;
     this.TXT_outputlog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.TXT_outputlog.Size       = new System.Drawing.Size(397, 160);
     this.TXT_outputlog.TabIndex   = 6;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(94, 75);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(78, 13);
     this.label1.TabIndex = 7;
     this.label1.Text     = "Seconds offset";
     //
     // BUT_Geotagimages
     //
     this.BUT_Geotagimages.Enabled  = false;
     this.BUT_Geotagimages.Location = new System.Drawing.Point(259, 161);
     this.BUT_Geotagimages.Name     = "BUT_Geotagimages";
     this.BUT_Geotagimages.Size     = new System.Drawing.Size(75, 23);
     this.BUT_Geotagimages.TabIndex = 9;
     this.BUT_Geotagimages.Text     = "GeoTag Images";
     this.BUT_Geotagimages.UseVisualStyleBackColor = true;
     this.BUT_Geotagimages.Click += new System.EventHandler(this.BUT_Geotagimages_Click);
     //
     // BUT_estoffset
     //
     this.BUT_estoffset.Location = new System.Drawing.Point(286, 67);
     this.BUT_estoffset.Name     = "BUT_estoffset";
     this.BUT_estoffset.Size     = new System.Drawing.Size(75, 23);
     this.BUT_estoffset.TabIndex = 8;
     this.BUT_estoffset.Text     = "Estimate Offset";
     this.BUT_estoffset.UseVisualStyleBackColor = true;
     this.BUT_estoffset.Click += new System.EventHandler(this.BUT_estoffset_Click);
     //
     // BUT_doit
     //
     this.BUT_doit.Location = new System.Drawing.Point(97, 161);
     this.BUT_doit.Name     = "BUT_doit";
     this.BUT_doit.Size     = new System.Drawing.Size(75, 23);
     this.BUT_doit.TabIndex = 5;
     this.BUT_doit.Text     = "Do It";
     this.BUT_doit.UseVisualStyleBackColor = true;
     this.BUT_doit.Click += new System.EventHandler(this.BUT_doit_Click);
     //
     // BUT_browsedir
     //
     this.BUT_browsedir.Location = new System.Drawing.Point(351, 41);
     this.BUT_browsedir.Name     = "BUT_browsedir";
     this.BUT_browsedir.Size     = new System.Drawing.Size(75, 23);
     this.BUT_browsedir.TabIndex = 1;
     this.BUT_browsedir.Text     = "Browse Directory";
     this.BUT_browsedir.UseVisualStyleBackColor = true;
     this.BUT_browsedir.Click += new System.EventHandler(this.BUT_browsedir_Click);
     //
     // BUT_browselog
     //
     this.BUT_browselog.Location = new System.Drawing.Point(351, 12);
     this.BUT_browselog.Name     = "BUT_browselog";
     this.BUT_browselog.Size     = new System.Drawing.Size(75, 23);
     this.BUT_browselog.TabIndex = 0;
     this.BUT_browselog.Text     = "Browse Log";
     this.BUT_browselog.UseVisualStyleBackColor = true;
     this.BUT_browselog.Click += new System.EventHandler(this.BUT_browselog_Click);
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(130, 116);
     this.numericUpDown1.Name     = "numericUpDown1";
     this.numericUpDown1.Size     = new System.Drawing.Size(42, 20);
     this.numericUpDown1.TabIndex = 10;
     this.numericUpDown1.Value    = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     //
     // numericUpDown2
     //
     this.numericUpDown2.Location = new System.Drawing.Point(178, 116);
     this.numericUpDown2.Name     = "numericUpDown2";
     this.numericUpDown2.Size     = new System.Drawing.Size(42, 20);
     this.numericUpDown2.TabIndex = 11;
     this.numericUpDown2.Value    = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     //
     // numericUpDown3
     //
     this.numericUpDown3.Location = new System.Drawing.Point(226, 116);
     this.numericUpDown3.Name     = "numericUpDown3";
     this.numericUpDown3.Size     = new System.Drawing.Size(42, 20);
     this.numericUpDown3.TabIndex = 12;
     this.numericUpDown3.Value    = new decimal(new int[] {
         7,
         0,
         0,
         0
     });
     //
     // numericUpDown4
     //
     this.numericUpDown4.Location = new System.Drawing.Point(274, 116);
     this.numericUpDown4.Name     = "numericUpDown4";
     this.numericUpDown4.Size     = new System.Drawing.Size(42, 20);
     this.numericUpDown4.TabIndex = 13;
     this.numericUpDown4.Value    = new decimal(new int[] {
         9,
         0,
         0,
         0
     });
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(127, 100);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(22, 13);
     this.label2.TabIndex = 14;
     this.label2.Text     = "Lat";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(175, 100);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(25, 13);
     this.label3.TabIndex = 15;
     this.label3.Text     = "Lon";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(223, 100);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(19, 13);
     this.label4.TabIndex = 16;
     this.label4.Text     = "Alt";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(271, 100);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(47, 13);
     this.label5.TabIndex = 17;
     this.label5.Text     = "Heading";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(63, 118);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(61, 13);
     this.label6.TabIndex = 18;
     this.label6.Text     = "Log Offsets";
     //
     // BUT_networklinkgeoref
     //
     this.BUT_networklinkgeoref.Location = new System.Drawing.Point(178, 161);
     this.BUT_networklinkgeoref.Name     = "BUT_networklinkgeoref";
     this.BUT_networklinkgeoref.Size     = new System.Drawing.Size(75, 23);
     this.BUT_networklinkgeoref.TabIndex = 19;
     this.BUT_networklinkgeoref.Text     = "Location Kml";
     this.BUT_networklinkgeoref.UseVisualStyleBackColor = true;
     this.BUT_networklinkgeoref.Click += new System.EventHandler(this.BUT_networklinkgeoref_Click);
     //
     // Georefimage
     //
     this.ClientSize = new System.Drawing.Size(452, 362);
     this.Controls.Add(this.BUT_networklinkgeoref);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.numericUpDown4);
     this.Controls.Add(this.numericUpDown3);
     this.Controls.Add(this.numericUpDown2);
     this.Controls.Add(this.numericUpDown1);
     this.Controls.Add(this.BUT_Geotagimages);
     this.Controls.Add(this.BUT_estoffset);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.TXT_outputlog);
     this.Controls.Add(this.BUT_doit);
     this.Controls.Add(this.TXT_offsetseconds);
     this.Controls.Add(this.TXT_jpgdir);
     this.Controls.Add(this.TXT_logfile);
     this.Controls.Add(this.BUT_browsedir);
     this.Controls.Add(this.BUT_browselog);
     this.Name = "Georefimage";
     this.Text = "Geo Ref Images";
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 13
0
 /// <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(LogBrowse));
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.zg1 = new ZedGraph.ZedGraphControl();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.Graphit = new ArdupilotMega.Controls.MyButton();
     this.BUT_cleargraph = new ArdupilotMega.Controls.MyButton();
     this.BUT_loadlog = new ArdupilotMega.Controls.MyButton();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows = false;
     this.dataGridView1.AllowUserToDeleteRows = false;
     resources.ApplyResources(this.dataGridView1, "dataGridView1");
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.MultiSelect = false;
     this.dataGridView1.Name = "dataGridView1";
     this.dataGridView1.ReadOnly = true;
     this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
     this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick);
     this.dataGridView1.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowEnter);
     //
     // zg1
     //
     resources.ApplyResources(this.zg1, "zg1");
     this.zg1.Name = "zg1";
     this.zg1.ScrollGrace = 0D;
     this.zg1.ScrollMaxX = 0D;
     this.zg1.ScrollMaxY = 0D;
     this.zg1.ScrollMaxY2 = 0D;
     this.zg1.ScrollMinX = 0D;
     this.zg1.ScrollMinY = 0D;
     this.zg1.ScrollMinY2 = 0D;
     //
     // Graphit
     //
     resources.ApplyResources(this.Graphit, "Graphit");
     this.Graphit.Name = "Graphit";
     this.toolTip1.SetToolTip(this.Graphit, resources.GetString("Graphit.ToolTip"));
     this.Graphit.UseVisualStyleBackColor = true;
     this.Graphit.Click += new System.EventHandler(this.Graphit_Click);
     //
     // BUT_cleargraph
     //
     resources.ApplyResources(this.BUT_cleargraph, "BUT_cleargraph");
     this.BUT_cleargraph.Name = "BUT_cleargraph";
     this.toolTip1.SetToolTip(this.BUT_cleargraph, resources.GetString("BUT_cleargraph.ToolTip"));
     this.BUT_cleargraph.UseVisualStyleBackColor = true;
     this.BUT_cleargraph.Click += new System.EventHandler(this.BUT_cleargraph_Click);
     //
     // BUT_loadlog
     //
     resources.ApplyResources(this.BUT_loadlog, "BUT_loadlog");
     this.BUT_loadlog.Name = "BUT_loadlog";
     this.toolTip1.SetToolTip(this.BUT_loadlog, resources.GetString("BUT_loadlog.ToolTip"));
     this.BUT_loadlog.UseVisualStyleBackColor = true;
     this.BUT_loadlog.Click += new System.EventHandler(this.BUT_loadlog_Click);
     //
     // LogBrowse
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.BUT_loadlog);
     this.Controls.Add(this.BUT_cleargraph);
     this.Controls.Add(this.Graphit);
     this.Controls.Add(this.zg1);
     this.Controls.Add(this.dataGridView1);
     this.Name = "LogBrowse";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 14
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigFirmware));
     this.pictureBoxAPM             = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxQuad            = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxHexa            = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxTri             = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxY6              = new ArdupilotMega.Controls.ImageLabel();
     this.lbl_status                = new System.Windows.Forms.Label();
     this.progress                  = new System.Windows.Forms.ProgressBar();
     this.label2                    = new System.Windows.Forms.Label();
     this.pictureBoxHeli            = new ArdupilotMega.Controls.ImageLabel();
     this.BUT_setup                 = new ArdupilotMega.Controls.MyButton();
     this.pictureBoxHilimage        = new System.Windows.Forms.PictureBox();
     this.pictureBoxAPHil           = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHil           = new System.Windows.Forms.PictureBox();
     this.pictureBoxACHHil          = new System.Windows.Forms.PictureBox();
     this.pictureBoxOcta            = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxOctaQuad        = new ArdupilotMega.Controls.ImageLabel();
     this.pictureBoxRover           = new ArdupilotMega.Controls.ImageLabel();
     this.label1                    = new System.Windows.Forms.Label();
     this.CMB_history               = new System.Windows.Forms.ComboBox();
     this.CMB_history_label         = new System.Windows.Forms.Label();
     this.lbl_Custom_firmware_label = new System.Windows.Forms.Label();
     this.lbl_devfw                 = new System.Windows.Forms.Label();
     this.lbl_px4io                 = new System.Windows.Forms.Label();
     this.lbl_dlfw                  = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
     this.SuspendLayout();
     //
     // pictureBoxAPM
     //
     this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPM.Image  = global::MissionPlanner.Properties.Resources.APM_airframes_001;
     resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
     this.pictureBoxAPM.Name    = "pictureBoxAPM";
     this.pictureBoxAPM.TabStop = false;
     this.pictureBoxAPM.Tag     = "";
     this.pictureBoxAPM.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxQuad
     //
     this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxQuad.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_04;
     resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
     this.pictureBoxQuad.Name    = "pictureBoxQuad";
     this.pictureBoxQuad.TabStop = false;
     this.pictureBoxQuad.Tag     = "";
     this.pictureBoxQuad.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxHexa
     //
     this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHexa.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_10;
     resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
     this.pictureBoxHexa.Name    = "pictureBoxHexa";
     this.pictureBoxHexa.TabStop = false;
     this.pictureBoxHexa.Tag     = "";
     this.pictureBoxHexa.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxTri
     //
     this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxTri.Image  = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_08;
     resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
     this.pictureBoxTri.Name    = "pictureBoxTri";
     this.pictureBoxTri.TabStop = false;
     this.pictureBoxTri.Tag     = "";
     this.pictureBoxTri.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxY6
     //
     this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxY6.Image  = global::MissionPlanner.Properties.Resources.y6;
     resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
     this.pictureBoxY6.Name    = "pictureBoxY6";
     this.pictureBoxY6.TabStop = false;
     this.pictureBoxY6.Tag     = "";
     this.pictureBoxY6.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // lbl_status
     //
     resources.ApplyResources(this.lbl_status, "lbl_status");
     this.lbl_status.Name = "lbl_status";
     //
     // progress
     //
     resources.ApplyResources(this.progress, "progress");
     this.progress.Name = "progress";
     this.progress.Step = 1;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // pictureBoxHeli
     //
     this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxHeli.Image  = global::MissionPlanner.Properties.Resources.APM_airframes_08;
     resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
     this.pictureBoxHeli.Name    = "pictureBoxHeli";
     this.pictureBoxHeli.TabStop = false;
     this.pictureBoxHeli.Tag     = "";
     this.pictureBoxHeli.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // BUT_setup
     //
     this.BUT_setup.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_setup.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_setup, "BUT_setup");
     this.BUT_setup.Name      = "BUT_setup";
     this.BUT_setup.Outline   = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_setup.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_setup.UseVisualStyleBackColor = true;
     //
     // pictureBoxHilimage
     //
     this.pictureBoxHilimage.Image = global::MissionPlanner.Properties.Resources.hil;
     resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
     this.pictureBoxHilimage.Name    = "pictureBoxHilimage";
     this.pictureBoxHilimage.TabStop = false;
     this.pictureBoxHilimage.Tag     = "";
     //
     // pictureBoxAPHil
     //
     this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxAPHil.Image  = global::MissionPlanner.Properties.Resources.hilplane;
     resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
     this.pictureBoxAPHil.Name    = "pictureBoxAPHil";
     this.pictureBoxAPHil.TabStop = false;
     this.pictureBoxAPHil.Tag     = "";
     this.pictureBoxAPHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxACHil
     //
     this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHil.Image  = global::MissionPlanner.Properties.Resources.hilquad;
     resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
     this.pictureBoxACHil.Name    = "pictureBoxACHil";
     this.pictureBoxACHil.TabStop = false;
     this.pictureBoxACHil.Tag     = "";
     this.pictureBoxACHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxACHHil
     //
     this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxACHHil.Image  = global::MissionPlanner.Properties.Resources.hilheli;
     resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
     this.pictureBoxACHHil.Name    = "pictureBoxACHHil";
     this.pictureBoxACHHil.TabStop = false;
     this.pictureBoxACHHil.Tag     = "";
     this.pictureBoxACHHil.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxOcta
     //
     this.pictureBoxOcta.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_12;
     resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
     this.pictureBoxOcta.Name    = "pictureBoxOcta";
     this.pictureBoxOcta.TabStop = false;
     this.pictureBoxOcta.Tag     = "";
     this.pictureBoxOcta.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxOctaQuad
     //
     this.pictureBoxOctaQuad.Image = global::MissionPlanner.Properties.Resources.x8;
     resources.ApplyResources(this.pictureBoxOctaQuad, "pictureBoxOctaQuad");
     this.pictureBoxOctaQuad.Name    = "pictureBoxOctaQuad";
     this.pictureBoxOctaQuad.TabStop = false;
     this.pictureBoxOctaQuad.Tag     = "";
     this.pictureBoxOctaQuad.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // pictureBoxRover
     //
     this.pictureBoxRover.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBoxRover.Image  = global::MissionPlanner.Properties.Resources.rover_11;
     resources.ApplyResources(this.pictureBoxRover, "pictureBoxRover");
     this.pictureBoxRover.Name    = "pictureBoxRover";
     this.pictureBoxRover.TabStop = false;
     this.pictureBoxRover.Tag     = "";
     this.pictureBoxRover.Click  += new System.EventHandler(this.pictureBoxFW_Click);
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // CMB_history
     //
     this.CMB_history.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CMB_history.FormattingEnabled = true;
     resources.ApplyResources(this.CMB_history, "CMB_history");
     this.CMB_history.Name = "CMB_history";
     this.CMB_history.SelectedIndexChanged += new System.EventHandler(this.CMB_history_SelectedIndexChanged);
     //
     // CMB_history_label
     //
     resources.ApplyResources(this.CMB_history_label, "CMB_history_label");
     this.CMB_history_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.CMB_history_label.Name   = "CMB_history_label";
     this.CMB_history_label.Click += new System.EventHandler(this.CMB_history_label_Click);
     //
     // lbl_Custom_firmware_label
     //
     resources.ApplyResources(this.lbl_Custom_firmware_label, "lbl_Custom_firmware_label");
     this.lbl_Custom_firmware_label.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_Custom_firmware_label.Name   = "lbl_Custom_firmware_label";
     this.lbl_Custom_firmware_label.Click += new System.EventHandler(this.Custom_firmware_label_Click);
     //
     // lbl_devfw
     //
     resources.ApplyResources(this.lbl_devfw, "lbl_devfw");
     this.lbl_devfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_devfw.Name   = "lbl_devfw";
     this.lbl_devfw.Click += new System.EventHandler(this.lbl_devfw_Click);
     //
     // lbl_px4io
     //
     resources.ApplyResources(this.lbl_px4io, "lbl_px4io");
     this.lbl_px4io.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_px4io.Name   = "lbl_px4io";
     this.lbl_px4io.Click += new System.EventHandler(this.lbl_px4io_Click);
     //
     // lbl_dlfw
     //
     resources.ApplyResources(this.lbl_dlfw, "lbl_dlfw");
     this.lbl_dlfw.Cursor = System.Windows.Forms.Cursors.Hand;
     this.lbl_dlfw.Name   = "lbl_dlfw";
     this.lbl_dlfw.Click += new System.EventHandler(this.lbl_dlfw_Click);
     //
     // ConfigFirmware
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.lbl_dlfw);
     this.Controls.Add(this.lbl_px4io);
     this.Controls.Add(this.lbl_devfw);
     this.Controls.Add(this.lbl_Custom_firmware_label);
     this.Controls.Add(this.CMB_history_label);
     this.Controls.Add(this.pictureBoxRover);
     this.Controls.Add(this.CMB_history);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.BUT_setup);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lbl_status);
     this.Controls.Add(this.progress);
     this.Controls.Add(this.pictureBoxACHHil);
     this.Controls.Add(this.pictureBoxACHil);
     this.Controls.Add(this.pictureBoxAPHil);
     this.Controls.Add(this.pictureBoxHilimage);
     this.Controls.Add(this.pictureBoxOctaQuad);
     this.Controls.Add(this.pictureBoxOcta);
     this.Controls.Add(this.pictureBoxHeli);
     this.Controls.Add(this.pictureBoxY6);
     this.Controls.Add(this.pictureBoxTri);
     this.Controls.Add(this.pictureBoxHexa);
     this.Controls.Add(this.pictureBoxQuad);
     this.Controls.Add(this.pictureBoxAPM);
     this.Name  = "ConfigFirmware";
     this.Load += new System.EventHandler(this.Firmware_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 15
0
 /// <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(LogBrowse));
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.BUT_Graphit = new ArdupilotMega.Controls.MyButton();
     this.BUT_cleargraph = new ArdupilotMega.Controls.MyButton();
     this.BUT_loadlog = new ArdupilotMega.Controls.MyButton();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.zg1 = new ZedGraph.ZedGraphControl();
     this.myGMAP1 = new ArdupilotMega.Controls.myGMAP();
     this.CHK_map = new System.Windows.Forms.CheckBox();
     this.BUT_Graphit_R = new ArdupilotMega.Controls.MyButton();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.SuspendLayout();
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows = false;
     this.dataGridView1.AllowUserToDeleteRows = false;
     resources.ApplyResources(this.dataGridView1, "dataGridView1");
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.MultiSelect = false;
     this.dataGridView1.Name = "dataGridView1";
     this.dataGridView1.ReadOnly = true;
     this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
     this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick);
     this.dataGridView1.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowEnter);
     this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
     //
     // BUT_Graphit
     //
     this.BUT_Graphit.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_Graphit.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_Graphit, "BUT_Graphit");
     this.BUT_Graphit.Name = "BUT_Graphit";
     this.BUT_Graphit.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_Graphit.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_Graphit.UseVisualStyleBackColor = true;
     this.BUT_Graphit.Click += new System.EventHandler(this.Graphit_Click);
     //
     // BUT_cleargraph
     //
     this.BUT_cleargraph.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_cleargraph.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_cleargraph, "BUT_cleargraph");
     this.BUT_cleargraph.Name = "BUT_cleargraph";
     this.BUT_cleargraph.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_cleargraph.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_cleargraph.UseVisualStyleBackColor = true;
     this.BUT_cleargraph.Click += new System.EventHandler(this.BUT_cleargraph_Click);
     //
     // BUT_loadlog
     //
     this.BUT_loadlog.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_loadlog.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_loadlog, "BUT_loadlog");
     this.BUT_loadlog.Name = "BUT_loadlog";
     this.BUT_loadlog.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_loadlog.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_loadlog.UseVisualStyleBackColor = true;
     this.BUT_loadlog.Click += new System.EventHandler(this.BUT_loadlog_Click);
     //
     // splitContainer1
     //
     resources.ApplyResources(this.splitContainer1, "splitContainer1");
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.CHK_map);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_Graphit_R);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_Graphit);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_loadlog);
     this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
     this.splitContainer1.Panel2.Controls.Add(this.BUT_cleargraph);
     //
     // splitContainer2
     //
     resources.ApplyResources(this.splitContainer2, "splitContainer2");
     this.splitContainer2.Name = "splitContainer2";
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.zg1);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.myGMAP1);
     this.splitContainer2.Panel2Collapsed = true;
     //
     // zg1
     //
     resources.ApplyResources(this.zg1, "zg1");
     this.zg1.Name = "zg1";
     this.zg1.ScrollGrace = 0D;
     this.zg1.ScrollMaxX = 0D;
     this.zg1.ScrollMaxY = 0D;
     this.zg1.ScrollMaxY2 = 0D;
     this.zg1.ScrollMinX = 0D;
     this.zg1.ScrollMinY = 0D;
     this.zg1.ScrollMinY2 = 0D;
     this.zg1.ZoomEvent += new ZedGraph.ZedGraphControl.ZoomEventHandler(this.zg1_ZoomEvent);
     this.zg1.Paint += new System.Windows.Forms.PaintEventHandler(this.zg1_Paint);
     //
     // myGMAP1
     //
     this.myGMAP1.Bearing = 0F;
     this.myGMAP1.CanDragMap = true;
     resources.ApplyResources(this.myGMAP1, "myGMAP1");
     this.myGMAP1.GrayScaleMode = false;
     this.myGMAP1.LevelsKeepInMemmory = 5;
     this.myGMAP1.MarkersEnabled = true;
     this.myGMAP1.MaxZoom = 19;
     this.myGMAP1.MinZoom = 2;
     this.myGMAP1.MouseWheelZoomType = GMap.NET.MouseWheelZoomType.MousePositionAndCenter;
     this.myGMAP1.Name = "myGMAP1";
     this.myGMAP1.NegativeMode = false;
     this.myGMAP1.PolygonsEnabled = true;
     this.myGMAP1.RetryLoadTile = 0;
     this.myGMAP1.RoutesEnabled = true;
     this.myGMAP1.ShowTileGridLines = false;
     this.myGMAP1.streamjpg = ((System.IO.MemoryStream)(resources.GetObject("myGMAP1.streamjpg")));
     this.myGMAP1.Zoom = 0D;
     //
     // CHK_map
     //
     resources.ApplyResources(this.CHK_map, "CHK_map");
     this.CHK_map.Name = "CHK_map";
     this.CHK_map.UseVisualStyleBackColor = true;
     this.CHK_map.CheckedChanged += new System.EventHandler(this.CHK_map_CheckedChanged);
     //
     // BUT_Graphit_R
     //
     this.BUT_Graphit_R.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
     this.BUT_Graphit_R.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
     resources.ApplyResources(this.BUT_Graphit_R, "BUT_Graphit_R");
     this.BUT_Graphit_R.Name = "BUT_Graphit_R";
     this.BUT_Graphit_R.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
     this.BUT_Graphit_R.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
     this.BUT_Graphit_R.UseVisualStyleBackColor = true;
     this.BUT_Graphit_R.Click += new System.EventHandler(this.BUT_Graphit_R_Click);
     //
     // LogBrowse
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.splitContainer1);
     this.Name = "LogBrowse";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigFirmware));
            this.pictureBoxAPM = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxQuad = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxHexa = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxTri = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxY6 = new ArdupilotMega.Controls.ImageLabel();
            this.lbl_status = new System.Windows.Forms.Label();
            this.progress = new System.Windows.Forms.ProgressBar();
            this.label2 = new System.Windows.Forms.Label();
            this.pictureBoxHeli = new ArdupilotMega.Controls.ImageLabel();
            this.BUT_setup = new ArdupilotMega.Controls.MyButton();
            this.pictureBoxHilimage = new System.Windows.Forms.PictureBox();
            this.pictureBoxAPHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxACHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxACHHil = new System.Windows.Forms.PictureBox();
            this.pictureBoxOcta = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxOctaQuad = new ArdupilotMega.Controls.ImageLabel();
            this.pictureBoxRover = new ArdupilotMega.Controls.ImageLabel();
            this.label1 = new System.Windows.Forms.Label();
            this.CMB_history = new System.Windows.Forms.ComboBox();
            this.CMB_history_label = new System.Windows.Forms.Label();
            this.lbl_Custom_firmware_label = new System.Windows.Forms.Label();
            this.lbl_devfw = new System.Windows.Forms.Label();
            this.lbl_px4io = new System.Windows.Forms.Label();
            this.lbl_dlfw = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).BeginInit();
            this.SuspendLayout();
            // 
            // pictureBoxAPM
            // 
            this.pictureBoxAPM.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxAPM.Image = global::MissionPlanner.Properties.Resources.APM_airframes_001;
            resources.ApplyResources(this.pictureBoxAPM, "pictureBoxAPM");
            this.pictureBoxAPM.Name = "pictureBoxAPM";
            this.pictureBoxAPM.TabStop = false;
            this.pictureBoxAPM.Tag = "";
            this.pictureBoxAPM.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxQuad
            // 
            this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxQuad.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_04;
            resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad");
            this.pictureBoxQuad.Name = "pictureBoxQuad";
            this.pictureBoxQuad.TabStop = false;
            this.pictureBoxQuad.Tag = "";
            this.pictureBoxQuad.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxHexa
            // 
            this.pictureBoxHexa.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxHexa.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_10;
            resources.ApplyResources(this.pictureBoxHexa, "pictureBoxHexa");
            this.pictureBoxHexa.Name = "pictureBoxHexa";
            this.pictureBoxHexa.TabStop = false;
            this.pictureBoxHexa.Tag = "";
            this.pictureBoxHexa.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxTri
            // 
            this.pictureBoxTri.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxTri.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_08;
            resources.ApplyResources(this.pictureBoxTri, "pictureBoxTri");
            this.pictureBoxTri.Name = "pictureBoxTri";
            this.pictureBoxTri.TabStop = false;
            this.pictureBoxTri.Tag = "";
            this.pictureBoxTri.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxY6
            // 
            this.pictureBoxY6.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxY6.Image = global::MissionPlanner.Properties.Resources.y6;
            resources.ApplyResources(this.pictureBoxY6, "pictureBoxY6");
            this.pictureBoxY6.Name = "pictureBoxY6";
            this.pictureBoxY6.TabStop = false;
            this.pictureBoxY6.Tag = "";
            this.pictureBoxY6.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // lbl_status
            // 
            resources.ApplyResources(this.lbl_status, "lbl_status");
            this.lbl_status.Name = "lbl_status";
            // 
            // progress
            // 
            resources.ApplyResources(this.progress, "progress");
            this.progress.Name = "progress";
            this.progress.Step = 1;
            // 
            // label2
            // 
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";
            // 
            // pictureBoxHeli
            // 
            this.pictureBoxHeli.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxHeli.Image = global::MissionPlanner.Properties.Resources.APM_airframes_08;
            resources.ApplyResources(this.pictureBoxHeli, "pictureBoxHeli");
            this.pictureBoxHeli.Name = "pictureBoxHeli";
            this.pictureBoxHeli.TabStop = false;
            this.pictureBoxHeli.Tag = "";
            this.pictureBoxHeli.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // BUT_setup
            // 
            this.BUT_setup.BGGradBot = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(226)))), ((int)(((byte)(150)))));
            this.BUT_setup.BGGradTop = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31)))));
            resources.ApplyResources(this.BUT_setup, "BUT_setup");
            this.BUT_setup.Name = "BUT_setup";
            this.BUT_setup.Outline = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(148)))), ((int)(((byte)(41)))));
            this.BUT_setup.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(87)))), ((int)(((byte)(4)))));
            this.BUT_setup.UseVisualStyleBackColor = true;
            // 
            // pictureBoxHilimage
            // 
            this.pictureBoxHilimage.Image = global::MissionPlanner.Properties.Resources.hil;
            resources.ApplyResources(this.pictureBoxHilimage, "pictureBoxHilimage");
            this.pictureBoxHilimage.Name = "pictureBoxHilimage";
            this.pictureBoxHilimage.TabStop = false;
            this.pictureBoxHilimage.Tag = "";
            // 
            // pictureBoxAPHil
            // 
            this.pictureBoxAPHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxAPHil.Image = global::MissionPlanner.Properties.Resources.hilplane;
            resources.ApplyResources(this.pictureBoxAPHil, "pictureBoxAPHil");
            this.pictureBoxAPHil.Name = "pictureBoxAPHil";
            this.pictureBoxAPHil.TabStop = false;
            this.pictureBoxAPHil.Tag = "";
            this.pictureBoxAPHil.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxACHil
            // 
            this.pictureBoxACHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxACHil.Image = global::MissionPlanner.Properties.Resources.hilquad;
            resources.ApplyResources(this.pictureBoxACHil, "pictureBoxACHil");
            this.pictureBoxACHil.Name = "pictureBoxACHil";
            this.pictureBoxACHil.TabStop = false;
            this.pictureBoxACHil.Tag = "";
            this.pictureBoxACHil.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxACHHil
            // 
            this.pictureBoxACHHil.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxACHHil.Image = global::MissionPlanner.Properties.Resources.hilheli;
            resources.ApplyResources(this.pictureBoxACHHil, "pictureBoxACHHil");
            this.pictureBoxACHHil.Name = "pictureBoxACHHil";
            this.pictureBoxACHHil.TabStop = false;
            this.pictureBoxACHHil.Tag = "";
            this.pictureBoxACHHil.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxOcta
            // 
            this.pictureBoxOcta.Image = global::MissionPlanner.Properties.Resources.FW_icons_2013_logos_12;
            resources.ApplyResources(this.pictureBoxOcta, "pictureBoxOcta");
            this.pictureBoxOcta.Name = "pictureBoxOcta";
            this.pictureBoxOcta.TabStop = false;
            this.pictureBoxOcta.Tag = "";
            this.pictureBoxOcta.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxOctaQuad
            // 
            this.pictureBoxOctaQuad.Image = global::MissionPlanner.Properties.Resources.x8;
            resources.ApplyResources(this.pictureBoxOctaQuad, "pictureBoxOctaQuad");
            this.pictureBoxOctaQuad.Name = "pictureBoxOctaQuad";
            this.pictureBoxOctaQuad.TabStop = false;
            this.pictureBoxOctaQuad.Tag = "";
            this.pictureBoxOctaQuad.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // pictureBoxRover
            // 
            this.pictureBoxRover.Cursor = System.Windows.Forms.Cursors.Hand;
            this.pictureBoxRover.Image = global::MissionPlanner.Properties.Resources.rover_11;
            resources.ApplyResources(this.pictureBoxRover, "pictureBoxRover");
            this.pictureBoxRover.Name = "pictureBoxRover";
            this.pictureBoxRover.TabStop = false;
            this.pictureBoxRover.Tag = "";
            this.pictureBoxRover.Click += new System.EventHandler(this.pictureBoxFW_Click);
            // 
            // label1
            // 
            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";
            // 
            // CMB_history
            // 
            this.CMB_history.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.CMB_history.FormattingEnabled = true;
            resources.ApplyResources(this.CMB_history, "CMB_history");
            this.CMB_history.Name = "CMB_history";
            this.CMB_history.SelectedIndexChanged += new System.EventHandler(this.CMB_history_SelectedIndexChanged);
            // 
            // CMB_history_label
            // 
            resources.ApplyResources(this.CMB_history_label, "CMB_history_label");
            this.CMB_history_label.Cursor = System.Windows.Forms.Cursors.Hand;
            this.CMB_history_label.Name = "CMB_history_label";
            this.CMB_history_label.Click += new System.EventHandler(this.CMB_history_label_Click);
            // 
            // lbl_Custom_firmware_label
            // 
            resources.ApplyResources(this.lbl_Custom_firmware_label, "lbl_Custom_firmware_label");
            this.lbl_Custom_firmware_label.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lbl_Custom_firmware_label.Name = "lbl_Custom_firmware_label";
            this.lbl_Custom_firmware_label.Click += new System.EventHandler(this.Custom_firmware_label_Click);
            // 
            // lbl_devfw
            // 
            resources.ApplyResources(this.lbl_devfw, "lbl_devfw");
            this.lbl_devfw.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lbl_devfw.Name = "lbl_devfw";
            this.lbl_devfw.Click += new System.EventHandler(this.lbl_devfw_Click);
            // 
            // lbl_px4io
            // 
            resources.ApplyResources(this.lbl_px4io, "lbl_px4io");
            this.lbl_px4io.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lbl_px4io.Name = "lbl_px4io";
            this.lbl_px4io.Click += new System.EventHandler(this.lbl_px4io_Click);
            // 
            // lbl_dlfw
            // 
            resources.ApplyResources(this.lbl_dlfw, "lbl_dlfw");
            this.lbl_dlfw.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lbl_dlfw.Name = "lbl_dlfw";
            this.lbl_dlfw.Click += new System.EventHandler(this.lbl_dlfw_Click);
            // 
            // ConfigFirmware
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.lbl_dlfw);
            this.Controls.Add(this.lbl_px4io);
            this.Controls.Add(this.lbl_devfw);
            this.Controls.Add(this.lbl_Custom_firmware_label);
            this.Controls.Add(this.CMB_history_label);
            this.Controls.Add(this.pictureBoxRover);
            this.Controls.Add(this.CMB_history);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.BUT_setup);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.lbl_status);
            this.Controls.Add(this.progress);
            this.Controls.Add(this.pictureBoxACHHil);
            this.Controls.Add(this.pictureBoxACHil);
            this.Controls.Add(this.pictureBoxAPHil);
            this.Controls.Add(this.pictureBoxHilimage);
            this.Controls.Add(this.pictureBoxOctaQuad);
            this.Controls.Add(this.pictureBoxOcta);
            this.Controls.Add(this.pictureBoxHeli);
            this.Controls.Add(this.pictureBoxY6);
            this.Controls.Add(this.pictureBoxTri);
            this.Controls.Add(this.pictureBoxHexa);
            this.Controls.Add(this.pictureBoxQuad);
            this.Controls.Add(this.pictureBoxAPM);
            this.Name = "ConfigFirmware";
            this.Load += new System.EventHandler(this.Firmware_Load);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxHilimage)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPHil)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHil)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBoxACHHil)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Ejemplo n.º 17
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Georefimage));
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.TXT_logfile          = new System.Windows.Forms.TextBox();
     this.TXT_jpgdir           = new System.Windows.Forms.TextBox();
     this.TXT_offsetseconds    = new System.Windows.Forms.TextBox();
     this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
     this.TXT_outputlog        = new System.Windows.Forms.TextBox();
     this.label1                = new System.Windows.Forms.Label();
     this.BUT_Geotagimages      = new ArdupilotMega.Controls.MyButton();
     this.BUT_estoffset         = new ArdupilotMega.Controls.MyButton();
     this.BUT_doit              = new ArdupilotMega.Controls.MyButton();
     this.BUT_browsedir         = new ArdupilotMega.Controls.MyButton();
     this.BUT_browselog         = new ArdupilotMega.Controls.MyButton();
     this.NUM_latpos            = new System.Windows.Forms.NumericUpDown();
     this.NUM_lngpos            = new System.Windows.Forms.NumericUpDown();
     this.NUM_altpos            = new System.Windows.Forms.NumericUpDown();
     this.NUM_headingpos        = new System.Windows.Forms.NumericUpDown();
     this.label2                = new System.Windows.Forms.Label();
     this.label3                = new System.Windows.Forms.Label();
     this.label4                = new System.Windows.Forms.Label();
     this.label5                = new System.Windows.Forms.Label();
     this.label6                = new System.Windows.Forms.Label();
     this.BUT_networklinkgeoref = new ArdupilotMega.Controls.MyButton();
     this.num_vfov              = new System.Windows.Forms.NumericUpDown();
     this.num_hfov              = new System.Windows.Forms.NumericUpDown();
     this.label7                = new System.Windows.Forms.Label();
     this.label8                = new System.Windows.Forms.Label();
     this.num_camerarotation    = new System.Windows.Forms.NumericUpDown();
     this.label9                = new System.Windows.Forms.Label();
     this.NUM_time              = new System.Windows.Forms.NumericUpDown();
     this.label10               = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_latpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_lngpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_altpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_headingpos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_vfov)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_hfov)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_camerarotation)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_time)).BeginInit();
     this.SuspendLayout();
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     //
     // TXT_logfile
     //
     resources.ApplyResources(this.TXT_logfile, "TXT_logfile");
     this.TXT_logfile.Name         = "TXT_logfile";
     this.TXT_logfile.TextChanged += new System.EventHandler(this.TXT_logfile_TextChanged);
     //
     // TXT_jpgdir
     //
     resources.ApplyResources(this.TXT_jpgdir, "TXT_jpgdir");
     this.TXT_jpgdir.Name = "TXT_jpgdir";
     //
     // TXT_offsetseconds
     //
     resources.ApplyResources(this.TXT_offsetseconds, "TXT_offsetseconds");
     this.TXT_offsetseconds.Name = "TXT_offsetseconds";
     //
     // TXT_outputlog
     //
     resources.ApplyResources(this.TXT_outputlog, "TXT_outputlog");
     this.TXT_outputlog.Name     = "TXT_outputlog";
     this.TXT_outputlog.ReadOnly = true;
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // BUT_Geotagimages
     //
     resources.ApplyResources(this.BUT_Geotagimages, "BUT_Geotagimages");
     this.BUT_Geotagimages.Name = "BUT_Geotagimages";
     this.BUT_Geotagimages.UseVisualStyleBackColor = true;
     this.BUT_Geotagimages.Click += new System.EventHandler(this.BUT_Geotagimages_Click);
     //
     // BUT_estoffset
     //
     resources.ApplyResources(this.BUT_estoffset, "BUT_estoffset");
     this.BUT_estoffset.Name = "BUT_estoffset";
     this.BUT_estoffset.UseVisualStyleBackColor = true;
     this.BUT_estoffset.Click += new System.EventHandler(this.BUT_estoffset_Click);
     //
     // BUT_doit
     //
     resources.ApplyResources(this.BUT_doit, "BUT_doit");
     this.BUT_doit.Name = "BUT_doit";
     this.BUT_doit.UseVisualStyleBackColor = true;
     this.BUT_doit.Click += new System.EventHandler(this.BUT_doit_Click);
     //
     // BUT_browsedir
     //
     resources.ApplyResources(this.BUT_browsedir, "BUT_browsedir");
     this.BUT_browsedir.Name = "BUT_browsedir";
     this.BUT_browsedir.UseVisualStyleBackColor = true;
     this.BUT_browsedir.Click += new System.EventHandler(this.BUT_browsedir_Click);
     //
     // BUT_browselog
     //
     resources.ApplyResources(this.BUT_browselog, "BUT_browselog");
     this.BUT_browselog.Name = "BUT_browselog";
     this.BUT_browselog.UseVisualStyleBackColor = true;
     this.BUT_browselog.Click += new System.EventHandler(this.BUT_browselog_Click);
     //
     // NUM_latpos
     //
     resources.ApplyResources(this.NUM_latpos, "NUM_latpos");
     this.NUM_latpos.Name  = "NUM_latpos";
     this.NUM_latpos.Value = new decimal(new int[] {
         3,
         0,
         0,
         0
     });
     //
     // NUM_lngpos
     //
     resources.ApplyResources(this.NUM_lngpos, "NUM_lngpos");
     this.NUM_lngpos.Name  = "NUM_lngpos";
     this.NUM_lngpos.Value = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     //
     // NUM_altpos
     //
     resources.ApplyResources(this.NUM_altpos, "NUM_altpos");
     this.NUM_altpos.Name  = "NUM_altpos";
     this.NUM_altpos.Value = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     //
     // NUM_headingpos
     //
     resources.ApplyResources(this.NUM_headingpos, "NUM_headingpos");
     this.NUM_headingpos.Name  = "NUM_headingpos";
     this.NUM_headingpos.Value = new decimal(new int[] {
         8,
         0,
         0,
         0
     });
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name = "label3";
     //
     // label4
     //
     resources.ApplyResources(this.label4, "label4");
     this.label4.Name = "label4";
     //
     // label5
     //
     resources.ApplyResources(this.label5, "label5");
     this.label5.Name = "label5";
     //
     // label6
     //
     resources.ApplyResources(this.label6, "label6");
     this.label6.Name = "label6";
     //
     // BUT_networklinkgeoref
     //
     resources.ApplyResources(this.BUT_networklinkgeoref, "BUT_networklinkgeoref");
     this.BUT_networklinkgeoref.Name = "BUT_networklinkgeoref";
     this.BUT_networklinkgeoref.UseVisualStyleBackColor = true;
     this.BUT_networklinkgeoref.Click += new System.EventHandler(this.BUT_networklinkgeoref_Click);
     //
     // num_vfov
     //
     resources.ApplyResources(this.num_vfov, "num_vfov");
     this.num_vfov.Maximum = new decimal(new int[] {
         900,
         0,
         0,
         0
     });
     this.num_vfov.Name  = "num_vfov";
     this.num_vfov.Value = new decimal(new int[] {
         130,
         0,
         0,
         0
     });
     //
     // num_hfov
     //
     resources.ApplyResources(this.num_hfov, "num_hfov");
     this.num_hfov.Maximum = new decimal(new int[] {
         900,
         0,
         0,
         0
     });
     this.num_hfov.Name  = "num_hfov";
     this.num_hfov.Value = new decimal(new int[] {
         200,
         0,
         0,
         0
     });
     //
     // label7
     //
     resources.ApplyResources(this.label7, "label7");
     this.label7.Name = "label7";
     //
     // label8
     //
     resources.ApplyResources(this.label8, "label8");
     this.label8.Name = "label8";
     //
     // num_camerarotation
     //
     resources.ApplyResources(this.num_camerarotation, "num_camerarotation");
     this.num_camerarotation.Maximum = new decimal(new int[] {
         180,
         0,
         0,
         0
     });
     this.num_camerarotation.Minimum = new decimal(new int[] {
         180,
         0,
         0,
         -2147483648
     });
     this.num_camerarotation.Name  = "num_camerarotation";
     this.num_camerarotation.Value = new decimal(new int[] {
         90,
         0,
         0,
         0
     });
     //
     // label9
     //
     resources.ApplyResources(this.label9, "label9");
     this.label9.Name = "label9";
     //
     // NUM_time
     //
     resources.ApplyResources(this.NUM_time, "NUM_time");
     this.NUM_time.Name  = "NUM_time";
     this.NUM_time.Value = new decimal(new int[] {
         2,
         0,
         0,
         0
     });
     //
     // label10
     //
     resources.ApplyResources(this.label10, "label10");
     this.label10.Name = "label10";
     //
     // Georefimage
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.label10);
     this.Controls.Add(this.NUM_time);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.num_camerarotation);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.num_hfov);
     this.Controls.Add(this.num_vfov);
     this.Controls.Add(this.BUT_networklinkgeoref);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.NUM_headingpos);
     this.Controls.Add(this.NUM_altpos);
     this.Controls.Add(this.NUM_lngpos);
     this.Controls.Add(this.NUM_latpos);
     this.Controls.Add(this.BUT_Geotagimages);
     this.Controls.Add(this.BUT_estoffset);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.TXT_outputlog);
     this.Controls.Add(this.BUT_doit);
     this.Controls.Add(this.TXT_offsetseconds);
     this.Controls.Add(this.TXT_jpgdir);
     this.Controls.Add(this.TXT_logfile);
     this.Controls.Add(this.BUT_browsedir);
     this.Controls.Add(this.BUT_browselog);
     this.Name = "Georefimage";
     ((System.ComponentModel.ISupportInitialize)(this.NUM_latpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_lngpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_altpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_headingpos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_vfov)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_hfov)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.num_camerarotation)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NUM_time)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 18
0
        /// <summary>
        /// The template xml for the screen
        /// </summary>
        /// <param name="FileName"></param>
        public void LoadXML(string FileName)
        {
            int x = 20;
            int y = 0;

            int optionx = 300;
            int optiony = 0;

            string name = "";
            List<string> paramname = new List<string>();
            double rangemin = 0;
            double rangemax = 10;
            double step = 0.001;

            using (XmlReader reader = XmlReader.Create(FileName))
            {
                while (reader.Read())
                {
                    switch (reader.Name.ToUpper())
                    {
                        case "ITEM":

                            break;
                        case "HEAD":
                            y += 30;
                            string heading = reader.ReadString();

                            Label lbl = new Label();
                            lbl.AutoSize = true;
                            lbl.Text = heading;
                            lbl.Location = new Point(x,y);
                            lbl.Font = new Font(FontFamily.GenericSansSerif, 15,FontStyle.Bold);

                            this.Controls.Add(lbl);

                            ArdupilotMega.Controls.MyButton but = new ArdupilotMega.Controls.MyButton();

                            but.Text = "Save";
                            but.Location = new Point(optionx + 100, y);
                            but.Click += new EventHandler(but_Click);
                            this.Controls.Add(but);

                            y = lbl.Location.Y + lbl.Height + 10;

                            LineSeparator ls = new LineSeparator();

                            ls.Width = this.Width - 40;
                            ls.Location = new Point(x,y);

                            ls.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

                            this.Controls.Add(ls);

                            y = ls.Location.Y + ls.Height;

                            break;
                        case "SUBHEAD":
                            y += 15;

                            optiony = y;
                            optionx = 300;
                            string subhead = reader.ReadString();

                            Label lbl2 = new Label();
                            lbl2.AutoSize = true;
                            lbl2.Text = subhead;
                            lbl2.Location = new Point(x,y);
                            lbl2.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold);

                            this.Controls.Add(lbl2);

                            y = lbl2.Location.Y + lbl2.Height;

                            break;
                        case "DESC":
                            y += 2;
                            string desc = reader.ReadString();

                            Label lbl3 = new Label();
                            lbl3.AutoSize = true;
                            lbl3.Text = AddNewLinesToText(desc);
                            lbl3.Location = new Point(x,y);
                            lbl3.Font = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Bold);

                            this.Controls.Add(lbl3);

                            y = lbl3.Location.Y + lbl3.Height;

                            break;
                        case "FIELDS":
                            if (reader.NodeType == XmlNodeType.EndElement)
                            {
                                if (optiony > y)
                                    y = optiony;
                            }
                            break;
                        case "FIELD":
                            if (reader.NodeType == XmlNodeType.EndElement)
                            {
                                if (name == "" || paramname.Count == 0)
                                    break;

                                Label lbl5 = new Label();
                                //lbl5.AutoSize = true;
                                lbl5.Text = name;
                                lbl5.Location = new Point(optionx, optiony);
                                lbl5.Size = new System.Drawing.Size(90,20);
                                lbl5.Font = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Bold);
                                lbl5.TextAlign = ContentAlignment.MiddleRight;

                                this.Controls.Add(lbl5);

                                NumericUpDown nud = new NumericUpDown();
                                nud.Location = new Point(optionx + 100, optiony);
                                nud.Size = new System.Drawing.Size(78,20);
                                nud.Maximum = (decimal)rangemax;
                                nud.Minimum = (decimal)rangemin;
                                nud.Increment = (decimal)step;
                                nud.DecimalPlaces = (int)(step.ToString().Length - step.ToString(new System.Globalization.CultureInfo("en-US")).IndexOf('.') - 1);
                                nud.Name = paramname[0];

                                this.Controls.Add(nud);

                                optiony += nud.Height;

                                _linkedParams[paramname[0]] = paramname;

                            }
                            else
                            {
                                name = "";
                                paramname = new List<string>();
                                rangemax = 10;
                                rangemin = 0;
                                step = 0.001;
                            }
                            break;
                        case "NAME":
                            name = reader.ReadString();
                            break;
                        case "PARAMNAME":
                            paramname.Add(reader.ReadString());
                            break;
                        case "RANGEMIN":
                            rangemin = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                            break;
                        case "RANGEMAX":
                            rangemax = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                            break;
                        case "STEP":
                            step = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                            break;

                    }
                }
            }

            ThemeManager.ApplyThemeTo(this);

            disableNumericUpDownControls(this);
        }
        private static void AddButtonsToForm(Form msgBoxFrm, MessageBoxButtons buttons)
        {
            Rectangle screenRectangle = msgBoxFrm.RectangleToScreen(msgBoxFrm.ClientRectangle);
            int titleHeight = screenRectangle.Top - msgBoxFrm.Top;

            var t = Type.GetType("Mono.Runtime");
            if ((t != null))
                titleHeight = 25;

            switch (buttons)
            {
                case MessageBoxButtons.OK:
                    var but = new ArdupilotMega.Controls.MyButton
                                  {
                                      Size = new Size(75, 23),
                                      Text = "OK",
                                      Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN,
                                      Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                                  };

                    but.Click += delegate { _state = DialogResult.OK; msgBoxFrm.Close(); };
                    msgBoxFrm.Controls.Add(but);
                    msgBoxFrm.AcceptButton = but;
                    break;

                case MessageBoxButtons.YesNo:

                    if (msgBoxFrm.Width < (75 * 2 + FORM_X_MARGIN * 3))
                        msgBoxFrm.Width = (75 * 2 + FORM_X_MARGIN * 3);

                    var butyes = new ArdupilotMega.Controls.MyButton
                    {
                        Size = new Size(75, 23),
                        Text = "Yes",
                        Left = msgBoxFrm.Width - 75 * 2 - FORM_X_MARGIN * 2,
                        Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                    };

                    butyes.Click += delegate { _state = DialogResult.Yes; msgBoxFrm.Close(); };
                    msgBoxFrm.Controls.Add(butyes);
                    msgBoxFrm.AcceptButton = butyes;

                    var butno = new ArdupilotMega.Controls.MyButton
                    {
                        Size = new Size(75, 23),
                        Text = "No",
                        Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN,
                        Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight
                    };

                    butno.Click += delegate { _state = DialogResult.No; msgBoxFrm.Close(); };
                    msgBoxFrm.Controls.Add(butno);
                    msgBoxFrm.CancelButton = butno;
                    break;

                default:
                    throw new NotImplementedException("Only MessageBoxButtons.OK and YesNo supported at this time");
            }
        }
Ejemplo n.º 20
0
        public static DialogResult MessageShowAgain(string title, string promptText)
        {
            Form form = new Form();
            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            CheckBox chk = new CheckBox();
            ArdupilotMega.Controls.MyButton buttonOk = new ArdupilotMega.Controls.MyButton();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainV2));
            form.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            form.Text = title;
            label.Text = promptText;

            chk.Tag = ("SHOWAGAIN_" + title.Replace(" ","_"));
            chk.AutoSize = true;
            chk.Text = "Show me again?";
            chk.Checked = true;
            chk.Location = new Point(9,80);

            if (MainV2.config[(string)chk.Tag] != null && (string)MainV2.config[(string)chk.Tag] == "False") // skip it
            {
                form.Dispose();
                chk.Dispose();
                buttonOk.Dispose();
                label.Dispose();
                return DialogResult.OK;
            }

            chk.CheckStateChanged += new EventHandler(chk_CheckStateChanged);

            buttonOk.Text = "OK";
            buttonOk.DialogResult = DialogResult.OK;
            buttonOk.Location = new Point(form.Right - 100 ,80);

            label.SetBounds(9, 40, 372, 13);

            label.AutoSize = true;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, chk, buttonOk });
            form.ClientSize = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedDialog;
            form.StartPosition = FormStartPosition.CenterScreen;
            form.MinimizeBox = false;
            form.MaximizeBox = false;

            ThemeManager.ApplyThemeTo(form);

            DialogResult dialogResult =form.ShowDialog();

            form.Dispose();

            form = null;

            return dialogResult;
        }
Ejemplo n.º 21
0
        //from http://www.csharp-examples.net/inputbox/
        public static DialogResult InputBox(string title, string promptText, ref string value)
        {
            Form form = new Form();
            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            TextBox textBox = new TextBox();
            ArdupilotMega.Controls.MyButton buttonOk = new ArdupilotMega.Controls.MyButton();
            ArdupilotMega.Controls.MyButton buttonCancel = new ArdupilotMega.Controls.MyButton();

            form.TopMost = true;

            form.Text = title;
            label.Text = promptText;
            textBox.Text = value;

            buttonOk.Text = "OK";
            buttonCancel.Text = "Cancel";
            buttonOk.DialogResult = DialogResult.OK;
            buttonCancel.DialogResult = DialogResult.Cancel;

            label.SetBounds(9, 20, 372, 13);
            textBox.SetBounds(12, 36, 372, 20);
            buttonOk.SetBounds(228, 72, 75, 23);
            buttonCancel.SetBounds(309, 72, 75, 23);

            label.AutoSize = true;
            textBox.Anchor = textBox.Anchor | AnchorStyles.Right;
            buttonOk.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
            buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, textBox, buttonOk, buttonCancel });
            form.ClientSize = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedDialog;
            form.StartPosition = FormStartPosition.CenterScreen;
            form.MinimizeBox = false;
            form.MaximizeBox = false;
            form.AcceptButton = buttonOk;
            form.CancelButton = buttonCancel;

            ThemeManager.ApplyThemeTo(form);

            DialogResult dialogResult = DialogResult.Cancel;

            dialogResult = form.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                value = textBox.Text;
            }

            form.Dispose();

            return dialogResult;
        }
Ejemplo n.º 22
0
        /// <summary>
        /// The template xml for the screen
        /// </summary>
        /// <param name="FileName"></param>
        public void LoadXML(string FileName)
        {
            int x = 20;
            int y = 0;

            int optionx = 300;
            int optiony = 0;

            string        name      = "";
            List <string> paramname = new List <string>();
            double        rangemin  = 0;
            double        rangemax  = 10;
            double        step      = 0.001;

            using (XmlReader reader = XmlReader.Create(FileName))
            {
                while (reader.Read())
                {
                    switch (reader.Name.ToUpper())
                    {
                    case "ITEM":

                        break;

                    case "HEAD":
                        y += 30;
                        string heading = reader.ReadString();

                        Label lbl = new Label();
                        lbl.AutoSize = true;
                        lbl.Text     = heading;
                        lbl.Location = new Point(x, y);
                        lbl.Font     = new Font(FontFamily.GenericSansSerif, 15, FontStyle.Bold);

                        this.Controls.Add(lbl);

                        ArdupilotMega.Controls.MyButton but = new ArdupilotMega.Controls.MyButton();

                        but.Text     = "Save";
                        but.Location = new Point(optionx + 100, y);
                        but.Click   += new EventHandler(but_Click);
                        this.Controls.Add(but);

                        y = lbl.Location.Y + lbl.Height + 10;

                        LineSeparator ls = new LineSeparator();

                        ls.Width    = this.Width - 40;
                        ls.Location = new Point(x, y);

                        ls.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

                        this.Controls.Add(ls);

                        y = ls.Location.Y + ls.Height;

                        break;

                    case "SUBHEAD":
                        y += 15;

                        optiony = y;
                        optionx = 300;
                        string subhead = reader.ReadString();

                        Label lbl2 = new Label();
                        lbl2.AutoSize = true;
                        lbl2.Text     = subhead;
                        lbl2.Location = new Point(x, y);
                        lbl2.Font     = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold);

                        this.Controls.Add(lbl2);

                        y = lbl2.Location.Y + lbl2.Height;

                        break;

                    case "DESC":
                        y += 2;
                        string desc = reader.ReadString();

                        Label lbl3 = new Label();
                        lbl3.AutoSize = true;
                        lbl3.Text     = AddNewLinesToText(desc);
                        lbl3.Location = new Point(x, y);
                        lbl3.Font     = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Bold);

                        this.Controls.Add(lbl3);

                        y = lbl3.Location.Y + lbl3.Height;

                        break;

                    case "FIELDS":
                        if (reader.NodeType == XmlNodeType.EndElement)
                        {
                            if (optiony > y)
                            {
                                y = optiony;
                            }
                        }
                        break;

                    case "FIELD":
                        if (reader.NodeType == XmlNodeType.EndElement)
                        {
                            if (name == "" || paramname.Count == 0)
                            {
                                break;
                            }

                            Label lbl5 = new Label();
                            //lbl5.AutoSize = true;
                            lbl5.Text      = name;
                            lbl5.Location  = new Point(optionx, optiony);
                            lbl5.Size      = new System.Drawing.Size(90, 20);
                            lbl5.Font      = new Font(FontFamily.GenericSansSerif, 8, FontStyle.Bold);
                            lbl5.TextAlign = ContentAlignment.MiddleRight;

                            this.Controls.Add(lbl5);

                            NumericUpDown nud = new NumericUpDown();
                            nud.Location      = new Point(optionx + 100, optiony);
                            nud.Size          = new System.Drawing.Size(78, 20);
                            nud.Maximum       = (decimal)rangemax;
                            nud.Minimum       = (decimal)rangemin;
                            nud.Increment     = (decimal)step;
                            nud.DecimalPlaces = (int)(step.ToString().Length - step.ToString(new System.Globalization.CultureInfo("en-US")).IndexOf('.') - 1);
                            nud.Name          = paramname[0];

                            this.Controls.Add(nud);

                            optiony += nud.Height;

                            _linkedParams[paramname[0]] = paramname;
                        }
                        else
                        {
                            name      = "";
                            paramname = new List <string>();
                            rangemax  = 10;
                            rangemin  = 0;
                            step      = 0.001;
                        }
                        break;

                    case "NAME":
                        name = reader.ReadString();
                        break;

                    case "PARAMNAME":
                        paramname.Add(reader.ReadString());
                        break;

                    case "RANGEMIN":
                        rangemin = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                        break;

                    case "RANGEMAX":
                        rangemax = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                        break;

                    case "STEP":
                        step = double.Parse(reader.ReadString(), new System.Globalization.CultureInfo("en-US"));
                        break;
                    }
                }
            }

            ThemeManager.ApplyThemeTo(this);

            disableNumericUpDownControls(this);
        }
Ejemplo n.º 23
0
        //from http://www.csharp-examples.net/inputbox/
        public static DialogResult Show(string title, string promptText, ref string value)
        {
            Form form = new Form();

            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            TextBox textBox = new TextBox();

            ArdupilotMega.Controls.MyButton buttonOk     = new ArdupilotMega.Controls.MyButton();
            ArdupilotMega.Controls.MyButton buttonCancel = new ArdupilotMega.Controls.MyButton();
            //System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainV2));
            //form.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            form.TopMost  = true;
            form.TopLevel = true;

            form.Text    = title;
            label.Text   = promptText;
            textBox.Text = value;

            buttonOk.Text             = "OK";
            buttonCancel.Text         = "Cancel";
            buttonOk.DialogResult     = DialogResult.OK;
            buttonCancel.DialogResult = DialogResult.Cancel;

            label.SetBounds(9, 20, 372, 13);
            textBox.SetBounds(12, 36, 372, 20);
            buttonOk.SetBounds(228, 72, 75, 23);
            buttonCancel.SetBounds(309, 72, 75, 23);

            label.AutoSize      = true;
            textBox.Anchor      = textBox.Anchor | AnchorStyles.Right;
            buttonOk.Anchor     = AnchorStyles.Bottom | AnchorStyles.Right;
            buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;

            form.ClientSize = new Size(396, 107);
            form.Controls.AddRange(new Control[] { label, textBox, buttonOk, buttonCancel });
            form.ClientSize      = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height);
            form.FormBorderStyle = FormBorderStyle.FixedSingle;
            form.StartPosition   = FormStartPosition.CenterScreen;
            form.MinimizeBox     = false;
            form.MaximizeBox     = false;
            form.AcceptButton    = buttonOk;
            form.CancelButton    = buttonCancel;

            if (ApplyTheme != null)
            {
                ApplyTheme(form);
            }

            DialogResult dialogResult = DialogResult.Cancel;

            Console.WriteLine("Input Box");

            form.ShowDialog();

            Console.WriteLine("Input Box 2");

            dialogResult = form.DialogResult;

            if (dialogResult == DialogResult.OK)
            {
                value = textBox.Text;
            }

            form.Dispose();

            form = null;

            return(dialogResult);
        }