long candy ready to test
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
lblCameraName.Font = new Font("Segoe UI Semibold", 12F, FontStyle.Bold, GraphicsUnit.Point, 204);
|
||||
lblCameraName.Location = new Point(8, 8);
|
||||
lblCameraName.Name = "lblCameraName";
|
||||
lblCameraName.Size = new Size(616, 21);
|
||||
lblCameraName.Size = new Size(744, 21);
|
||||
lblCameraName.TabIndex = 2;
|
||||
lblCameraName.Text = "CameraName";
|
||||
lblCameraName.TextAlign = ContentAlignment.TopCenter;
|
||||
@@ -60,7 +60,7 @@
|
||||
//
|
||||
label1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
label1.Font = new Font("Segoe UI", 12F);
|
||||
label1.Location = new Point(656, 8);
|
||||
label1.Location = new Point(784, 0);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(408, 21);
|
||||
label1.TabIndex = 4;
|
||||
@@ -72,7 +72,7 @@
|
||||
previewWindow1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
||||
previewWindow1.Location = new Point(0, 32);
|
||||
previewWindow1.Name = "previewWindow1";
|
||||
previewWindow1.Size = new Size(624, 456);
|
||||
previewWindow1.Size = new Size(752, 456);
|
||||
previewWindow1.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
previewWindow1.TabIndex = 5;
|
||||
previewWindow1.TabStop = false;
|
||||
@@ -82,7 +82,7 @@
|
||||
materialDivider1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
materialDivider1.BackColor = Color.FromArgb(55, 71, 79);
|
||||
materialDivider1.Depth = 0;
|
||||
materialDivider1.Location = new Point(632, 32);
|
||||
materialDivider1.Location = new Point(760, 24);
|
||||
materialDivider1.MouseState = MaterialSkin.MouseState.HOVER;
|
||||
materialDivider1.Name = "materialDivider1";
|
||||
materialDivider1.Size = new Size(1, 456);
|
||||
@@ -92,7 +92,7 @@
|
||||
// errorPreview1
|
||||
//
|
||||
errorPreview1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
errorPreview1.Location = new Point(648, 32);
|
||||
errorPreview1.Location = new Point(776, 24);
|
||||
errorPreview1.Name = "errorPreview1";
|
||||
errorPreview1.Size = new Size(416, 456);
|
||||
errorPreview1.TabIndex = 7;
|
||||
@@ -101,9 +101,9 @@
|
||||
//
|
||||
stats1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
stats1.BackColor = Color.White;
|
||||
stats1.Location = new Point(1080, 32);
|
||||
stats1.Location = new Point(1200, 32);
|
||||
stats1.Name = "stats1";
|
||||
stats1.Size = new Size(320, 456);
|
||||
stats1.Size = new Size(232, 456);
|
||||
stats1.TabIndex = 8;
|
||||
//
|
||||
// btnStart
|
||||
@@ -128,11 +128,11 @@
|
||||
flowLayoutPanel1.Controls.Add(flowLayoutPanel2);
|
||||
flowLayoutPanel1.Dock = DockStyle.Right;
|
||||
flowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
|
||||
flowLayoutPanel1.Location = new Point(1408, 0);
|
||||
flowLayoutPanel1.Location = new Point(1448, 0);
|
||||
flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
flowLayoutPanel1.Padding = new Padding(8, 24, 8, 8);
|
||||
flowLayoutPanel1.RightToLeft = RightToLeft.Yes;
|
||||
flowLayoutPanel1.Size = new Size(280, 498);
|
||||
flowLayoutPanel1.Size = new Size(240, 498);
|
||||
flowLayoutPanel1.TabIndex = 10;
|
||||
//
|
||||
// flowLayoutPanel2
|
||||
@@ -140,7 +140,7 @@
|
||||
flowLayoutPanel2.Controls.Add(btnSelectRecipe);
|
||||
flowLayoutPanel2.Controls.Add(btnStart);
|
||||
flowLayoutPanel2.Controls.Add(btnStop);
|
||||
flowLayoutPanel2.Location = new Point(61, 27);
|
||||
flowLayoutPanel2.Location = new Point(21, 27);
|
||||
flowLayoutPanel2.Name = "flowLayoutPanel2";
|
||||
flowLayoutPanel2.Size = new Size(200, 237);
|
||||
flowLayoutPanel2.TabIndex = 12;
|
||||
@@ -184,7 +184,7 @@
|
||||
materialDivider2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
materialDivider2.BackColor = Color.FromArgb(55, 71, 79);
|
||||
materialDivider2.Depth = 0;
|
||||
materialDivider2.Location = new Point(1064, 32);
|
||||
materialDivider2.Location = new Point(1192, 24);
|
||||
materialDivider2.MouseState = MaterialSkin.MouseState.HOVER;
|
||||
materialDivider2.Name = "materialDivider2";
|
||||
materialDivider2.Size = new Size(1, 456);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Ninject;
|
||||
using VisionBuilder.UI.Common.RecipeProcessing;
|
||||
using VisionBuilder.UI.Common.Services;
|
||||
using VisionBuilder.UI.Common.ViewModel.Interfaces.UI;
|
||||
using VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
@@ -13,6 +14,7 @@ public static class ModuleExtensions
|
||||
self.Bind<ILoadingService>().To<WindowsLoadingService>().InSingletonScope();
|
||||
self.Bind<IRecipeSelectionDialogService>().To<WindowsRecipeSelectionDialogService>().InSingletonScope();
|
||||
self.Bind<IImagePreviewService>().To<WindowsImagePreviewService>().InSingletonScope();
|
||||
self.Bind<IPasswordInputService>().To<WindowsPasswordInputService>().InSingletonScope();
|
||||
return self;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using MaterialSkin.Core.Controls;
|
||||
using VisionBuilder.UI.Common.Services;
|
||||
|
||||
namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class WindowsPasswordInputService: IPasswordInputService
|
||||
{
|
||||
public string GetPassword()
|
||||
{
|
||||
if (MaterialInputBox.Prompt("Password required", "", out var password, true) == DialogResult.OK)
|
||||
{
|
||||
return password;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user