整体调整了功能

This commit is contained in:
2026-01-13 15:03:02 +08:00
parent 63a768bd80
commit f1a892281b
82 changed files with 11226 additions and 291 deletions

View File

@@ -79,6 +79,10 @@ namespace FATrace.OEMApp
btnStopLoadVideo = new Button();
btnNVRLogin = new Button();
imageList2 = new ImageList(components);
navPanel = new Panel();
btnNavMain = new Button();
btnNavHistory = new Button();
btnNavSettings = new Button();
statusStrip1.SuspendLayout();
materialTabControl1.SuspendLayout();
tabPage1.SuspendLayout();
@@ -91,6 +95,7 @@ namespace FATrace.OEMApp
materialCard1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)videoView1).BeginInit();
tabPage3.SuspendLayout();
navPanel.SuspendLayout();
SuspendLayout();
//
// statusStrip1
@@ -146,18 +151,21 @@ namespace FATrace.OEMApp
//
// materialTabControl1
//
materialTabControl1.Appearance = TabAppearance.FlatButtons;
materialTabControl1.Controls.Add(tabPage1);
materialTabControl1.Controls.Add(tabPage2);
materialTabControl1.Controls.Add(tabPage3);
materialTabControl1.Depth = 0;
materialTabControl1.Dock = DockStyle.Fill;
materialTabControl1.ImageList = imageList1;
materialTabControl1.ItemSize = new Size(0, 1);
materialTabControl1.Location = new Point(3, 64);
materialTabControl1.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialTabControl1.Multiline = true;
materialTabControl1.Name = "materialTabControl1";
materialTabControl1.SelectedIndex = 0;
materialTabControl1.Size = new Size(1914, 963);
materialTabControl1.SizeMode = TabSizeMode.Fixed;
materialTabControl1.TabIndex = 0;
//
// tabPage1
@@ -167,10 +175,10 @@ namespace FATrace.OEMApp
tabPage1.Controls.Add(materialCard2);
tabPage1.Font = new Font("Microsoft YaHei UI", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 134);
tabPage1.ImageKey = "set2.png";
tabPage1.Location = new Point(4, 26);
tabPage1.Location = new Point(4, 5);
tabPage1.Name = "tabPage1";
tabPage1.Padding = new Padding(3);
tabPage1.Size = new Size(1906, 933);
tabPage1.Size = new Size(1906, 954);
tabPage1.TabIndex = 0;
tabPage1.Text = "主界面";
tabPage1.UseVisualStyleBackColor = true;
@@ -187,12 +195,12 @@ namespace FATrace.OEMApp
materialCard4.Controls.Add(DownloadProgressBarMain);
materialCard4.Depth = 0;
materialCard4.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard4.Location = new Point(14, 373);
materialCard4.Location = new Point(196, 373);
materialCard4.Margin = new Padding(14);
materialCard4.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard4.Name = "materialCard4";
materialCard4.Padding = new Padding(14);
materialCard4.Size = new Size(561, 535);
materialCard4.Size = new Size(579, 535);
materialCard4.TabIndex = 5;
//
// txtCsvSaveState
@@ -267,19 +275,19 @@ namespace FATrace.OEMApp
materialCard3.Controls.Add(label8);
materialCard3.Depth = 0;
materialCard3.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard3.Location = new Point(590, 373);
materialCard3.Location = new Point(788, 373);
materialCard3.Margin = new Padding(14);
materialCard3.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard3.Name = "materialCard3";
materialCard3.Padding = new Padding(14);
materialCard3.Size = new Size(1307, 535);
materialCard3.Size = new Size(1109, 535);
materialCard3.TabIndex = 1;
//
// LvLog
//
LvLog.Location = new Point(17, 58);
LvLog.Name = "LvLog";
LvLog.Size = new Size(1281, 460);
LvLog.Size = new Size(1075, 460);
LvLog.TabIndex = 6;
LvLog.UseCompatibleStateImageBehavior = false;
//
@@ -309,19 +317,19 @@ namespace FATrace.OEMApp
materialCard2.Controls.Add(label5);
materialCard2.Depth = 0;
materialCard2.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard2.Location = new Point(14, 9);
materialCard2.Location = new Point(196, 9);
materialCard2.Margin = new Padding(14);
materialCard2.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard2.Name = "materialCard2";
materialCard2.Padding = new Padding(14);
materialCard2.Size = new Size(1883, 348);
materialCard2.Size = new Size(1701, 348);
materialCard2.TabIndex = 0;
//
// label19
//
label19.AutoSize = true;
label19.ForeColor = Color.DimGray;
label19.Location = new Point(41, 180);
label19.Location = new Point(29, 180);
label19.Name = "label19";
label19.Size = new Size(88, 26);
label19.TabIndex = 10;
@@ -329,7 +337,7 @@ namespace FATrace.OEMApp
//
// txtRURawCode
//
txtRURawCode.Location = new Point(154, 177);
txtRURawCode.Location = new Point(142, 177);
txtRURawCode.Name = "txtRURawCode";
txtRURawCode.ReadOnly = true;
txtRURawCode.Size = new Size(387, 32);
@@ -341,17 +349,17 @@ namespace FATrace.OEMApp
gridRULog.AllowUserToDeleteRows = false;
gridRULog.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
gridRULog.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
gridRULog.Location = new Point(576, 7);
gridRULog.Location = new Point(592, 9);
gridRULog.Name = "gridRULog";
gridRULog.ReadOnly = true;
gridRULog.RowHeadersVisible = false;
gridRULog.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
gridRULog.Size = new Size(1290, 338);
gridRULog.Size = new Size(1092, 330);
gridRULog.TabIndex = 8;
//
// btnRawStopLoadVideo
//
btnRawStopLoadVideo.Location = new Point(292, 271);
btnRawStopLoadVideo.Location = new Point(285, 271);
btnRawStopLoadVideo.Name = "btnRawStopLoadVideo";
btnRawStopLoadVideo.Size = new Size(142, 44);
btnRawStopLoadVideo.TabIndex = 7;
@@ -361,7 +369,7 @@ namespace FATrace.OEMApp
//
// btnTestAction
//
btnTestAction.Location = new Point(144, 271);
btnTestAction.Location = new Point(137, 271);
btnTestAction.Name = "btnTestAction";
btnTestAction.Size = new Size(142, 44);
btnTestAction.TabIndex = 5;
@@ -373,7 +381,7 @@ namespace FATrace.OEMApp
//
label7.AutoSize = true;
label7.ForeColor = Color.DimGray;
label7.Location = new Point(41, 126);
label7.Location = new Point(29, 126);
label7.Name = "label7";
label7.Size = new Size(88, 26);
label7.TabIndex = 4;
@@ -381,7 +389,7 @@ namespace FATrace.OEMApp
//
// txtRURawName
//
txtRURawName.Location = new Point(154, 123);
txtRURawName.Location = new Point(142, 123);
txtRURawName.Name = "txtRURawName";
txtRURawName.ReadOnly = true;
txtRURawName.Size = new Size(387, 32);
@@ -391,7 +399,7 @@ namespace FATrace.OEMApp
//
label6.AutoSize = true;
label6.ForeColor = Color.DimGray;
label6.Location = new Point(41, 68);
label6.Location = new Point(29, 68);
label6.Name = "label6";
label6.Size = new Size(107, 26);
label6.TabIndex = 2;
@@ -399,7 +407,7 @@ namespace FATrace.OEMApp
//
// txtRUInBagCode
//
txtRUInBagCode.Location = new Point(154, 65);
txtRUInBagCode.Location = new Point(142, 65);
txtRUInBagCode.Name = "txtRUInBagCode";
txtRUInBagCode.ReadOnly = true;
txtRUInBagCode.Size = new Size(387, 32);
@@ -423,10 +431,10 @@ namespace FATrace.OEMApp
tabPage2.Controls.Add(videoView1);
tabPage2.Font = new Font("Microsoft YaHei UI", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 134);
tabPage2.ImageKey = "Load.png";
tabPage2.Location = new Point(4, 26);
tabPage2.Location = new Point(4, 5);
tabPage2.Name = "tabPage2";
tabPage2.Padding = new Padding(3);
tabPage2.Size = new Size(1906, 933);
tabPage2.Size = new Size(1906, 954);
tabPage2.TabIndex = 1;
tabPage2.Text = "录像历史数据";
tabPage2.UseVisualStyleBackColor = true;
@@ -434,7 +442,7 @@ namespace FATrace.OEMApp
// dataGridView1
//
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView1.Location = new Point(17, 235);
dataGridView1.Location = new Point(197, 235);
dataGridView1.Name = "dataGridView1";
dataGridView1.ReadOnly = true;
dataGridView1.Size = new Size(835, 677);
@@ -454,7 +462,7 @@ namespace FATrace.OEMApp
materialCard1.Controls.Add(PdtHistorySearchStart);
materialCard1.Depth = 0;
materialCard1.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard1.Location = new Point(17, 24);
materialCard1.Location = new Point(197, 24);
materialCard1.Margin = new Padding(14);
materialCard1.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard1.Name = "materialCard1";
@@ -553,10 +561,10 @@ namespace FATrace.OEMApp
// videoView1
//
videoView1.BackColor = Color.Black;
videoView1.Location = new Point(858, 24);
videoView1.Location = new Point(1043, 24);
videoView1.MediaPlayer = null;
videoView1.Name = "videoView1";
videoView1.Size = new Size(1042, 888);
videoView1.Size = new Size(857, 888);
videoView1.TabIndex = 7;
videoView1.Text = "videoView1";
//
@@ -567,9 +575,9 @@ namespace FATrace.OEMApp
tabPage3.Controls.Add(btnStopLoadVideo);
tabPage3.Controls.Add(btnNVRLogin);
tabPage3.ImageKey = "set3.png";
tabPage3.Location = new Point(4, 26);
tabPage3.Location = new Point(4, 5);
tabPage3.Name = "tabPage3";
tabPage3.Size = new Size(1906, 933);
tabPage3.Size = new Size(1906, 954);
tabPage3.TabIndex = 2;
tabPage3.Text = "相机设置";
tabPage3.UseVisualStyleBackColor = true;
@@ -599,14 +607,14 @@ namespace FATrace.OEMApp
//
// DownloadProgressBar
//
DownloadProgressBar.Location = new Point(247, 124);
DownloadProgressBar.Location = new Point(382, 112);
DownloadProgressBar.Name = "DownloadProgressBar";
DownloadProgressBar.Size = new Size(130, 23);
DownloadProgressBar.TabIndex = 3;
//
// btnStopLoadVideo
//
btnStopLoadVideo.Location = new Point(409, 54);
btnStopLoadVideo.Location = new Point(544, 42);
btnStopLoadVideo.Name = "btnStopLoadVideo";
btnStopLoadVideo.Size = new Size(130, 58);
btnStopLoadVideo.TabIndex = 2;
@@ -616,7 +624,7 @@ namespace FATrace.OEMApp
//
// btnNVRLogin
//
btnNVRLogin.Location = new Point(84, 54);
btnNVRLogin.Location = new Point(219, 42);
btnNVRLogin.Name = "btnNVRLogin";
btnNVRLogin.Size = new Size(130, 58);
btnNVRLogin.TabIndex = 0;
@@ -631,14 +639,84 @@ namespace FATrace.OEMApp
imageList2.TransparentColor = Color.Transparent;
imageList2.Images.SetKeyName(0, "About.png");
//
// navPanel
//
navPanel.BackColor = Color.FromArgb(250, 250, 250);
navPanel.Controls.Add(btnNavMain);
navPanel.Controls.Add(btnNavHistory);
navPanel.Controls.Add(btnNavSettings);
navPanel.Dock = DockStyle.Left;
navPanel.Location = new Point(3, 64);
navPanel.Name = "navPanel";
navPanel.Size = new Size(183, 941);
navPanel.TabIndex = 2;
//
// btnNavMain
//
btnNavMain.BackColor = Color.FromArgb(63, 81, 181);
btnNavMain.FlatAppearance.BorderSize = 0;
btnNavMain.FlatStyle = FlatStyle.Flat;
btnNavMain.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Bold);
btnNavMain.ForeColor = Color.White;
btnNavMain.ImageAlign = ContentAlignment.MiddleLeft;
btnNavMain.Location = new Point(0, 3);
btnNavMain.Name = "btnNavMain";
btnNavMain.Padding = new Padding(10, 0, 0, 0);
btnNavMain.Size = new Size(183, 60);
btnNavMain.TabIndex = 0;
btnNavMain.Text = " 主界面";
btnNavMain.TextAlign = ContentAlignment.MiddleLeft;
btnNavMain.TextImageRelation = TextImageRelation.ImageBeforeText;
btnNavMain.UseVisualStyleBackColor = false;
btnNavMain.Click += BtnNavMain_Click;
//
// btnNavHistory
//
btnNavHistory.BackColor = Color.FromArgb(240, 240, 240);
btnNavHistory.FlatAppearance.BorderSize = 0;
btnNavHistory.FlatStyle = FlatStyle.Flat;
btnNavHistory.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Bold);
btnNavHistory.ForeColor = Color.FromArgb(64, 64, 64);
btnNavHistory.ImageAlign = ContentAlignment.MiddleLeft;
btnNavHistory.Location = new Point(0, 65);
btnNavHistory.Name = "btnNavHistory";
btnNavHistory.Padding = new Padding(10, 0, 0, 0);
btnNavHistory.Size = new Size(183, 60);
btnNavHistory.TabIndex = 1;
btnNavHistory.Text = " 历史记录";
btnNavHistory.TextAlign = ContentAlignment.MiddleLeft;
btnNavHistory.TextImageRelation = TextImageRelation.ImageBeforeText;
btnNavHistory.UseVisualStyleBackColor = false;
btnNavHistory.Click += BtnNavHistory_Click;
//
// btnNavSettings
//
btnNavSettings.BackColor = Color.FromArgb(240, 240, 240);
btnNavSettings.FlatAppearance.BorderSize = 0;
btnNavSettings.FlatStyle = FlatStyle.Flat;
btnNavSettings.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Bold);
btnNavSettings.ForeColor = Color.FromArgb(64, 64, 64);
btnNavSettings.ImageAlign = ContentAlignment.MiddleLeft;
btnNavSettings.Location = new Point(0, 127);
btnNavSettings.Name = "btnNavSettings";
btnNavSettings.Padding = new Padding(10, 0, 0, 0);
btnNavSettings.Size = new Size(183, 60);
btnNavSettings.TabIndex = 2;
btnNavSettings.Text = " 相机设置";
btnNavSettings.TextAlign = ContentAlignment.MiddleLeft;
btnNavSettings.TextImageRelation = TextImageRelation.ImageBeforeText;
btnNavSettings.UseVisualStyleBackColor = false;
btnNavSettings.Visible = false;
btnNavSettings.Click += BtnNavSettings_Click;
//
// MainApp
//
AutoScaleDimensions = new SizeF(8F, 17F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1920, 1030);
Controls.Add(navPanel);
Controls.Add(statusStrip1);
Controls.Add(materialTabControl1);
DrawerTabControl = materialTabControl1;
Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 134);
Icon = (Icon)resources.GetObject("$this.Icon");
Name = "MainApp";
@@ -663,6 +741,7 @@ namespace FATrace.OEMApp
materialCard1.PerformLayout();
((System.ComponentModel.ISupportInitialize)videoView1).EndInit();
tabPage3.ResumeLayout(false);
navPanel.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
}
@@ -721,5 +800,9 @@ namespace FATrace.OEMApp
private Label label12;
private TextBox txtCsvSaveState;
private ImageList imageList2;
private Panel navPanel;
private Button btnNavMain;
private Button btnNavHistory;
private Button btnNavSettings;
}
}