This commit is contained in:
meelstorm
2025-11-18 08:05:00 +01:00
parent e5eaa88e51
commit 51fe29e5e5
5 changed files with 45 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ namespace Inspectron.HawkEye.View
btnNext = new MaterialSkin.Controls.MaterialRaisedButton();
btnPrev = new MaterialSkin.Controls.MaterialRaisedButton();
lblErrName = new Label();
btnSwitchView = new MaterialSkin.Controls.MaterialRaisedButton();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
SuspendLayout();
//
@@ -135,11 +136,30 @@ namespace Inspectron.HawkEye.View
lblErrName.Text = "label1";
lblErrName.TextAlign = ContentAlignment.TopCenter;
//
// btnSwitchView
//
btnSwitchView.AutoSizeMode = AutoSizeMode.GrowAndShrink;
btnSwitchView.Cursor = Cursors.Hand;
btnSwitchView.Depth = 0;
btnSwitchView.DrawBorder = true;
btnSwitchView.Font = new Font("Verdana", 9F);
btnSwitchView.Icon = null;
btnSwitchView.Location = new Point(192, 56);
btnSwitchView.MouseState = MaterialSkin.MouseState.HOVER;
btnSwitchView.Name = "btnSwitchView";
btnSwitchView.Primary = false;
btnSwitchView.Size = new Size(168, 64);
btnSwitchView.TabIndex = 7;
btnSwitchView.Text = "Switch view";
btnSwitchView.UseVisualStyleBackColor = true;
btnSwitchView.Click += btnSwitchView_Click;
//
// ImagePreview
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1568, 680);
Controls.Add(btnSwitchView);
Controls.Add(lblErrName);
Controls.Add(btnPrev);
Controls.Add(btnNext);
@@ -162,5 +182,6 @@ namespace Inspectron.HawkEye.View
private MaterialSkin.Controls.MaterialRaisedButton btnNext;
private MaterialSkin.Controls.MaterialRaisedButton btnPrev;
private Label lblErrName;
private MaterialSkin.Controls.MaterialRaisedButton btnSwitchView;
}
}

View File

@@ -73,6 +73,9 @@ namespace Inspectron.HawkEye.View
_previewVm.NextImage();
}
private void btnSwitchView_Click(object sender, EventArgs e)
{
}
}
}