public void SetLabelStyle(LLZBox.LabelStyle labelStyle) { switch (labelStyle) { case LLZBox.LabelStyle.LatLon: this.latLabel_text.Text = "Latitude"; this.lonLabel_text.Text = "Longitude"; return; case LLZBox.LabelStyle.XY: this.latLabel_text.Text = "Y"; this.lonLabel_text.Text = "X"; return; default: return; } }
private void InitializeComponent() { this.zoomOutButton = new System.Windows.Forms.Button(); this.zoomInButton = new System.Windows.Forms.Button(); this.creditsTextBox = new System.Windows.Forms.TextBox(); this.zenButton = new System.Windows.Forms.Button(); this.displayProgressBar = new System.Windows.Forms.ProgressBar(); this.llzBox = new MSR.CVE.BackMaker.LLZBox(); this.SuspendLayout(); // // zoomOutButton // this.zoomOutButton.Location = new System.Drawing.Point(242, 39); this.zoomOutButton.Name = "zoomOutButton"; this.zoomOutButton.Size = new System.Drawing.Size(82, 23); this.zoomOutButton.TabIndex = 9; this.zoomOutButton.Text = "Zoom Out"; this.zoomOutButton.Click += new System.EventHandler(this.zoomOutButton_Click); // // zoomInButton // this.zoomInButton.Location = new System.Drawing.Point(242, 68); this.zoomInButton.Name = "zoomInButton"; this.zoomInButton.Size = new System.Drawing.Size(82, 23); this.zoomInButton.TabIndex = 10; this.zoomInButton.Text = "Zoom In"; this.zoomInButton.Click += new System.EventHandler(this.zoomInButton_Click); // // creditsTextBox // this.creditsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.creditsTextBox.Location = new System.Drawing.Point(330, 34); this.creditsTextBox.Multiline = true; this.creditsTextBox.Name = "creditsTextBox"; this.creditsTextBox.ReadOnly = true; this.creditsTextBox.Size = new System.Drawing.Size(115, 32); this.creditsTextBox.TabIndex = 12; this.creditsTextBox.Visible = false; // // zenButton // this.zenButton.Location = new System.Drawing.Point(242, 10); this.zenButton.Name = "zenButton"; this.zenButton.Size = new System.Drawing.Size(82, 23); this.zenButton.TabIndex = 13; this.zenButton.Text = "zenButton"; this.zenButton.UseVisualStyleBackColor = true; // // displayProgressBar // this.displayProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.displayProgressBar.Location = new System.Drawing.Point(330, 14); this.displayProgressBar.Name = "displayProgressBar"; this.displayProgressBar.Size = new System.Drawing.Size(115, 19); this.displayProgressBar.TabIndex = 14; // // llzBox // this.llzBox.Dock = System.Windows.Forms.DockStyle.Top; this.llzBox.Location = new System.Drawing.Point(0, 0); this.llzBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.llzBox.Name = "llzBox"; this.llzBox.Size = new System.Drawing.Size(456, 95); this.llzBox.TabIndex = 11; // // ViewerControl // this.Controls.Add(this.creditsTextBox); this.Controls.Add(this.zoomInButton); this.Controls.Add(this.zoomOutButton); this.Controls.Add(this.displayProgressBar); this.Controls.Add(this.zenButton); this.Controls.Add(this.llzBox); this.Name = "ViewerControl"; this.Size = new System.Drawing.Size(456, 615); this.ResumeLayout(false); this.PerformLayout(); }
public void SetLLZBoxLabelStyle(LLZBox.LabelStyle labelStyle) { this.llzBox.SetLabelStyle(labelStyle); }
private void InitializeComponent() { zoomOutButton = new Button(); zoomInButton = new Button(); creditsTextBox = new TextBox(); zenButton = new Button(); displayProgressBar = new ProgressBar(); llzBox = new LLZBox(); SuspendLayout(); // // zoomOutButton // zoomOutButton.Location = new Point(242, 39); zoomOutButton.Name = "zoomOutButton"; zoomOutButton.Size = new Size(82, 23); zoomOutButton.TabIndex = 9; zoomOutButton.Text = "Zoom Out"; zoomOutButton.Click += zoomOutButton_Click; // // zoomInButton // zoomInButton.Location = new Point(242, 68); zoomInButton.Name = "zoomInButton"; zoomInButton.Size = new Size(82, 23); zoomInButton.TabIndex = 10; zoomInButton.Text = "Zoom In"; zoomInButton.Click += zoomInButton_Click; // // creditsTextBox // creditsTextBox.Anchor = AnchorStyles.Top | AnchorStyles.Right; creditsTextBox.Location = new Point(330, 34); creditsTextBox.Multiline = true; creditsTextBox.Name = "creditsTextBox"; creditsTextBox.ReadOnly = true; creditsTextBox.Size = new Size(115, 32); creditsTextBox.TabIndex = 12; creditsTextBox.Visible = false; // // zenButton // zenButton.Location = new Point(242, 10); zenButton.Name = "zenButton"; zenButton.Size = new Size(82, 23); zenButton.TabIndex = 13; zenButton.Text = "zenButton"; zenButton.UseVisualStyleBackColor = true; // // displayProgressBar // displayProgressBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; displayProgressBar.Location = new Point(330, 14); displayProgressBar.Name = "displayProgressBar"; displayProgressBar.Size = new Size(115, 19); displayProgressBar.TabIndex = 14; // // llzBox // llzBox.Dock = DockStyle.Top; llzBox.Location = new Point(0, 0); llzBox.Margin = new Padding(4, 4, 4, 4); llzBox.Name = "llzBox"; llzBox.Size = new Size(456, 95); llzBox.TabIndex = 11; // // ViewerControl // Controls.Add(creditsTextBox); Controls.Add(zoomInButton); Controls.Add(zoomOutButton); Controls.Add(displayProgressBar); Controls.Add(zenButton); Controls.Add(llzBox); Name = "ViewerControl"; Size = new Size(456, 615); ResumeLayout(false); PerformLayout(); }