recipe name filter

This commit is contained in:
meelstorm
2025-07-28 09:52:29 +02:00
parent 71d59df0cd
commit f80b275ad8
58 changed files with 4066 additions and 79 deletions

View File

@@ -34,6 +34,8 @@
materialDivider1 = new MaterialSkin.Controls.MaterialDivider();
singleCameraControl1 = new VisionBuilder.UI.Windows.Components.SingleCameraControl();
btnTestMode = new MaterialSkin.Controls.MaterialRaisedButton();
flowLayoutPanel1 = new FlowLayoutPanel();
flowLayoutPanel1.SuspendLayout();
SuspendLayout();
//
// btnMinimize
@@ -44,11 +46,11 @@
btnMinimize.DrawBorder = true;
btnMinimize.Font = new Font("Segoe UI Semibold", 12F, FontStyle.Bold);
btnMinimize.Icon = null;
btnMinimize.Location = new Point(960, 984);
btnMinimize.Location = new Point(367, 3);
btnMinimize.MouseState = MaterialSkin.MouseState.HOVER;
btnMinimize.Name = "btnMinimize";
btnMinimize.Primary = false;
btnMinimize.Size = new Size(224, 64);
btnMinimize.Size = new Size(176, 64);
btnMinimize.TabIndex = 8;
btnMinimize.Text = "Minimize";
btnMinimize.UseVisualStyleBackColor = true;
@@ -62,11 +64,11 @@
btnSettings.DrawBorder = true;
btnSettings.Font = new Font("Segoe UI Semibold", 12F, FontStyle.Bold);
btnSettings.Icon = null;
btnSettings.Location = new Point(728, 984);
btnSettings.Location = new Point(185, 3);
btnSettings.MouseState = MaterialSkin.MouseState.HOVER;
btnSettings.Name = "btnSettings";
btnSettings.Primary = false;
btnSettings.Size = new Size(224, 64);
btnSettings.Size = new Size(176, 64);
btnSettings.TabIndex = 7;
btnSettings.Text = "Settings";
btnSettings.UseVisualStyleBackColor = true;
@@ -80,11 +82,11 @@
btnExit.DrawBorder = true;
btnExit.Font = new Font("Segoe UI Semibold", 12F, FontStyle.Bold);
btnExit.Icon = null;
btnExit.Location = new Point(1192, 984);
btnExit.Location = new Point(549, 3);
btnExit.MouseState = MaterialSkin.MouseState.HOVER;
btnExit.Name = "btnExit";
btnExit.Primary = false;
btnExit.Size = new Size(224, 64);
btnExit.Size = new Size(176, 64);
btnExit.TabIndex = 6;
btnExit.Text = "Exit";
btnExit.UseVisualStyleBackColor = true;
@@ -94,7 +96,7 @@
//
materialDivider1.BackColor = Color.FromArgb(55, 71, 79);
materialDivider1.Depth = 0;
materialDivider1.Location = new Point(8, 960);
materialDivider1.Location = new Point(8, 984);
materialDivider1.MouseState = MaterialSkin.MouseState.HOVER;
materialDivider1.Name = "materialDivider1";
materialDivider1.Size = new Size(1904, 1);
@@ -106,7 +108,7 @@
singleCameraControl1.BackColor = Color.White;
singleCameraControl1.Location = new Point(8, 32);
singleCameraControl1.Name = "singleCameraControl1";
singleCameraControl1.Size = new Size(1904, 912);
singleCameraControl1.Size = new Size(1904, 944);
singleCameraControl1.TabIndex = 10;
//
// btnTestMode
@@ -117,30 +119,40 @@
btnTestMode.DrawBorder = true;
btnTestMode.Font = new Font("Segoe UI Semibold", 12F, FontStyle.Bold);
btnTestMode.Icon = null;
btnTestMode.Location = new Point(496, 984);
btnTestMode.Location = new Point(3, 3);
btnTestMode.MouseState = MaterialSkin.MouseState.HOVER;
btnTestMode.Name = "btnTestMode";
btnTestMode.Primary = false;
btnTestMode.Size = new Size(224, 64);
btnTestMode.Size = new Size(176, 64);
btnTestMode.TabIndex = 11;
btnTestMode.Text = "Test mode";
btnTestMode.UseVisualStyleBackColor = true;
btnTestMode.Click += btnTestMode_Click;
//
// flowLayoutPanel1
//
flowLayoutPanel1.BackColor = Color.Transparent;
flowLayoutPanel1.Controls.Add(btnTestMode);
flowLayoutPanel1.Controls.Add(btnSettings);
flowLayoutPanel1.Controls.Add(btnMinimize);
flowLayoutPanel1.Controls.Add(btnExit);
flowLayoutPanel1.Location = new Point(664, 992);
flowLayoutPanel1.Name = "flowLayoutPanel1";
flowLayoutPanel1.Size = new Size(728, 80);
flowLayoutPanel1.TabIndex = 12;
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1920, 1080);
Controls.Add(btnTestMode);
Controls.Add(flowLayoutPanel1);
Controls.Add(singleCameraControl1);
Controls.Add(materialDivider1);
Controls.Add(btnMinimize);
Controls.Add(btnSettings);
Controls.Add(btnExit);
Name = "Form1";
StartPosition = FormStartPosition.CenterScreen;
Text = "Form1";
flowLayoutPanel1.ResumeLayout(false);
ResumeLayout(false);
}
@@ -152,5 +164,6 @@
private MaterialSkin.Controls.MaterialDivider materialDivider1;
private Components.SingleCameraControl singleCameraControl1;
private MaterialSkin.Controls.MaterialRaisedButton btnTestMode;
private FlowLayoutPanel flowLayoutPanel1;
}
}

View File

@@ -36,7 +36,8 @@ namespace VisionBuilder.UI.Windows.Test
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
// In your application startup code
MaterialSkin.MaterialSkinManager.ConfigureForInspectron();
InspectronSettings settings = new InspectronSettings("..\\Config");
var mainKernel = Common.VisionBuilder.CreateMainKernel(settings);
@@ -45,7 +46,12 @@ namespace VisionBuilder.UI.Windows.Test
.UseIOCommander([CAMERA1])
.UseIOCommanderWindowsDebug()
.UseIOCommanderVirtualInput()
.UseWindowsServices();
.UseWindowsServices()
.LoadGlobalPlugins()
;
mainKernel.Get<ILoadingService>().StartLoading("Camera initialization");
// CAMERA 1 //
ChildKernel kernelCamera1 = new ChildKernel(mainKernel);
@@ -58,6 +64,7 @@ namespace VisionBuilder.UI.Windows.Test
.UseRingbuffer(CAMERA1)
.UseHawkeyeRecipes(CAMERA1)
.UseCameraIOCommander(CAMERA1)
.LoadCameraPlugins(CAMERA1)
;
@@ -76,6 +83,8 @@ namespace VisionBuilder.UI.Windows.Test
mainKernel.InitializeModules();
kernelCamera1.InitializeModules();
mainKernel.Get<ILoadingService>().StopLoading("Camera initialization");
var mainWindowVm = mainKernel.Get<MainWindowVM>();
mainWindowVm.SingleCameraVms = [
kernelCamera1.Get<SingleCameraVM>()