mirror of
https://github.com/miyconst/Mi899.git
synced 2026-09-12 09:58:17 +02:00
Add brand filter on the motherboards page
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Снимки",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Информация",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Линкове",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Покажи всички",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Приложи",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Описание",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Снимка",
|
||||
@@ -119,6 +120,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Images",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Info",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Links",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Show All",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Apply",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Description",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Image",
|
||||
@@ -189,6 +191,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Imágenes",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Información",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Enlaces",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Mostrar todo",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Buscar",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Descripción",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Imagen",
|
||||
@@ -259,6 +262,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Images",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Info",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Liens",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Afficher tout",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Appliquer",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Description",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Image",
|
||||
@@ -329,6 +333,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Képek",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Információk",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Hálózati elérések",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Mutasd az összeset",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Alkalmaz",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Leírás",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Kép",
|
||||
@@ -399,6 +404,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Малюнки",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Інформація",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Посилання",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Mostra tutto",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Applica",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Descrizione",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Immagine",
|
||||
@@ -443,9 +449,9 @@
|
||||
"MainForm.msiHelpAbout.Text": "Over...",
|
||||
"MainForm.msiHelpHowTo.Text": "Uitleg",
|
||||
"MainForm.msiHelpHowToRamTimings.Text": "Verbeteren van de RAM-timings",
|
||||
"MainForm.msiHelpHowToRebar.Text": "Resizable Bar (ReBar, SAM) op LGA 2011-3 moederborden",
|
||||
"MainForm.msiHelpHowToTurboUnlock.Text": "Ontgrendelen van Turbo Boost",
|
||||
"MainForm.msiHelpHowToUseCh341a.Text": "Hoe gebruik je de CH341A BIOS Programmer",
|
||||
"MainForm.msiHelpHowToRebar.Text": "Resizable Bar (ReBar, SAM) op LGA 2011-3 moederborden",
|
||||
"MainForm.msiRealtekHda.Text": "Drivers voor Realtek Audio",
|
||||
"MainForm.Text": "Mi899 - X99 Tool Set",
|
||||
"MainForm.tsslVersion.Text": "Mi899 Versie 1.3.1 - Copyright © Miyconst",
|
||||
@@ -471,6 +477,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Afbeeldingen",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Info",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Links",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Toon alles",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Toepassen",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Omschrijving",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Afbeelding",
|
||||
@@ -490,7 +497,7 @@
|
||||
"ToolPartialForm.ToolPartialForm._commercialBiosCaption": "Commerciële BIOS",
|
||||
"ToolPartialForm.ToolPartialForm._commercialBiosDescription": "Deze BIOS is niet gratis. Je kunt deze kopen van de betreffende leverancier. Wil je de BIOS pagina openen in je browser?",
|
||||
"ToolPartialForm.ToolPartialForm.txtReadme.Text": "# BIOS lezen en schrijven \r\n\r\nOp dit scherm kun je je huidige BIOS dumpen om een back-up te maken of het geselecteerde BIOS naar uw moederbord flashen.\r\n\r\n## Mi899:\r\n\r\n- Bereidt bestanden en scripts voor om het lees-/schrijfproces van het BIOS te vereenvoudigen.\r\n- Kopieert de bestanden en de scripts naar een tijdelijke map.\r\n- Opent de locatie van de tijdelijke map.\r\n- Leest of schrijft NIET naar het BIOS van uw moederbord.\r\n- Valideert NIET de compatibiliteit van uw moederbord met het geselecteerde BIOS.\r\n- Valideert NIET het lezen/schrijven van het BIOS resultaat.\r\n\r\n## Laatste waarschuwing:\r\n\r\nAls er iets misgaat, ben je zef de enige die verantwoordelijk is. \r\n\r\n## Gebruik\r\n\r\n### Om uw huidige moederbord-BIOS te dumpen:\r\n\r\n- Klik op de knop '[Dump huidige BIOS]'.\r\n- Wacht tot Mi899 een tijdelijke map opent met de voorbereide bestanden.\r\n- Voer het `dump.bat`-script vanuit de map uit als beheerder.\r\n\r\n### Om een BIOS op uw moederbord te flashen:\r\n\r\n- Selecteer het gewenste BIOS in de keuzelijst `BIOS` aan de linkerkant van het scherm.\r\n- Klik op de knop `[Flash geselecteerde BIOS]`.\r\n- Wacht tot Mi899 een tijdelijke map opent met voorbereide bestanden.\r\n- Voer het `flash.bat`-script vanuit de map uit als beheerder."
|
||||
},
|
||||
},
|
||||
"Pl": {
|
||||
"AboutPartialForm.lblAuthorCaption.Text": "Autor:",
|
||||
"AboutPartialForm.lblToolSet.Text": "Zestaw narzędzi dla chipsetów X99",
|
||||
@@ -541,6 +548,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Zdjęcia",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Info",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Linki",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Pokaż wszystko",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Zatwierdź",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Opis",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Zdjęcie",
|
||||
@@ -611,6 +619,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Imagens",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Informações",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Links",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Mostre tudo",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Aplicar",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Descrição",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Imagem",
|
||||
@@ -751,6 +760,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Bilder",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Info",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Länkar",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Visa allt",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Applicera",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Beskrivning",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Bild",
|
||||
@@ -821,6 +831,7 @@
|
||||
"MotherboardPartialForm.tpImages.Text": "Малюнки",
|
||||
"MotherboardPartialForm.tpInfo.Text": "Інформація",
|
||||
"MotherboardPartialForm.tpLinks.Text": "Посилання",
|
||||
"MotherboardsPartialForm.btnClearSearch.Text": "Показати все",
|
||||
"MotherboardsPartialForm.btnSearch.Text": "Шукати",
|
||||
"MotherboardsPartialForm.grdMotherboards.colDescription.HeaderText": "Опис",
|
||||
"MotherboardsPartialForm.grdMotherboards.colImage.HeaderText": "Малюнок",
|
||||
|
||||
@@ -864,7 +864,7 @@
|
||||
{
|
||||
"Id": "g629a",
|
||||
"Name": "G629A - Qiyida, Atermiter, ERYING",
|
||||
"Brand": "Qiyida, Atermiter, ERYING and other",
|
||||
"Brand": "Qiyida",
|
||||
"Model": "G629A",
|
||||
"Version": "",
|
||||
"Tags": [ "machinist", "x99-rs9", "x99-qd4", "ddr4" ],
|
||||
@@ -1218,11 +1218,11 @@
|
||||
},
|
||||
{
|
||||
"Id": "ks-x99-d4",
|
||||
"Name": " Kllisre X99 D4",
|
||||
"Brand": " Kllisre ",
|
||||
"Name": "Kllisre X99 D4",
|
||||
"Brand": "Kllisre",
|
||||
"Model": " X99-D4",
|
||||
"Version": "1.0",
|
||||
"Tags": [ "kllisre ", "d4", "ddr4" ],
|
||||
"Tags": [ "kllisre", "d4", "ddr4" ],
|
||||
"Description": "",
|
||||
"ToolIds": [ "fpt-w64-9.1.10.1000" ],
|
||||
"Images": [
|
||||
@@ -1256,10 +1256,10 @@
|
||||
{
|
||||
"Id": "js-x99-d4",
|
||||
"Name": "JingSha X99-D4",
|
||||
"Brand": "JingSha ",
|
||||
"Brand": "JingSha",
|
||||
"Model": " X99-D4",
|
||||
"Version": "",
|
||||
"Tags": [ "jingsha ", "d4", "ddr4" ],
|
||||
"Tags": [ "jingsha", "d4", "ddr4" ],
|
||||
"Description": "",
|
||||
"ToolIds": [ "fpt-w64-9.1.10.1000" ],
|
||||
"Images": [
|
||||
|
||||
+37
-7
@@ -35,6 +35,8 @@
|
||||
this.txtSearch = new System.Windows.Forms.TextBox();
|
||||
this.lblSearch = new System.Windows.Forms.Label();
|
||||
this.btnSearch = new System.Windows.Forms.Button();
|
||||
this.ddlMotherboardName = new System.Windows.Forms.ComboBox();
|
||||
this.btnClearSearch = new System.Windows.Forms.Button();
|
||||
this.bsMotherboards = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.tlpMain.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdMotherboards)).BeginInit();
|
||||
@@ -70,13 +72,17 @@
|
||||
//
|
||||
// tlpSearch
|
||||
//
|
||||
this.tlpSearch.ColumnCount = 3;
|
||||
this.tlpSearch.ColumnCount = 5;
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
||||
this.tlpSearch.Controls.Add(this.txtSearch, 1, 0);
|
||||
this.tlpSearch.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F));
|
||||
this.tlpSearch.Controls.Add(this.txtSearch, 2, 0);
|
||||
this.tlpSearch.Controls.Add(this.lblSearch, 0, 0);
|
||||
this.tlpSearch.Controls.Add(this.btnSearch, 2, 0);
|
||||
this.tlpSearch.Controls.Add(this.btnSearch, 3, 0);
|
||||
this.tlpSearch.Controls.Add(this.ddlMotherboardName, 1, 0);
|
||||
this.tlpSearch.Controls.Add(this.btnClearSearch, 4, 0);
|
||||
this.tlpSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tlpSearch.Location = new System.Drawing.Point(0, 0);
|
||||
this.tlpSearch.Margin = new System.Windows.Forms.Padding(0);
|
||||
@@ -89,9 +95,9 @@
|
||||
// txtSearch
|
||||
//
|
||||
this.txtSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSearch.Location = new System.Drawing.Point(54, 3);
|
||||
this.txtSearch.Location = new System.Drawing.Point(330, 3);
|
||||
this.txtSearch.Name = "txtSearch";
|
||||
this.txtSearch.Size = new System.Drawing.Size(726, 23);
|
||||
this.txtSearch.Size = new System.Drawing.Size(270, 23);
|
||||
this.txtSearch.TabIndex = 1;
|
||||
this.txtSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearch_KeyPress);
|
||||
//
|
||||
@@ -108,7 +114,7 @@
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSearch.Location = new System.Drawing.Point(786, 3);
|
||||
this.btnSearch.Location = new System.Drawing.Point(606, 3);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(114, 23);
|
||||
this.btnSearch.TabIndex = 2;
|
||||
@@ -116,6 +122,28 @@
|
||||
this.btnSearch.UseVisualStyleBackColor = true;
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// ddlMotherboardName
|
||||
//
|
||||
this.ddlMotherboardName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ddlMotherboardName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.ddlMotherboardName.FormattingEnabled = true;
|
||||
this.ddlMotherboardName.Location = new System.Drawing.Point(54, 3);
|
||||
this.ddlMotherboardName.Name = "ddlMotherboardName";
|
||||
this.ddlMotherboardName.Size = new System.Drawing.Size(270, 23);
|
||||
this.ddlMotherboardName.TabIndex = 3;
|
||||
this.ddlMotherboardName.SelectedIndexChanged += new System.EventHandler(this.ddlMotherboardName_SelectedIndexChanged);
|
||||
//
|
||||
// btnClearSearch
|
||||
//
|
||||
this.btnClearSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClearSearch.Location = new System.Drawing.Point(726, 3);
|
||||
this.btnClearSearch.Name = "btnClearSearch";
|
||||
this.btnClearSearch.Size = new System.Drawing.Size(174, 23);
|
||||
this.btnClearSearch.TabIndex = 4;
|
||||
this.btnClearSearch.Text = "Show All";
|
||||
this.btnClearSearch.UseVisualStyleBackColor = true;
|
||||
this.btnClearSearch.Click += new System.EventHandler(this.btnClearSearch_Click);
|
||||
//
|
||||
// MotherboardsPartialForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
@@ -142,5 +170,7 @@
|
||||
private System.Windows.Forms.TextBox txtSearch;
|
||||
private System.Windows.Forms.BindingSource bsMotherboards;
|
||||
private System.Windows.Forms.Button btnSearch;
|
||||
private System.Windows.Forms.ComboBox ddlMotherboardName;
|
||||
private System.Windows.Forms.Button btnClearSearch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,17 @@ namespace Mi899
|
||||
_model = model ?? throw new ArgumentNullException(nameof(model));
|
||||
_motherboards = new GenericBindingList<IMotherboard>(_model.Motherboards);
|
||||
InitializeComponent();
|
||||
|
||||
List<string> brands = _model.Motherboards
|
||||
.Select(x => x.Brand)
|
||||
.Distinct()
|
||||
.OrderBy(x => x)
|
||||
.ToList();
|
||||
|
||||
brands.Insert(0, string.Empty);
|
||||
ddlMotherboardName.DataSource = brands;
|
||||
ddlMotherboardName.SelectedItem = "Machinist";
|
||||
|
||||
InitializeDataGridComponent();
|
||||
}
|
||||
|
||||
@@ -35,7 +46,8 @@ namespace Mi899
|
||||
List<IComponent> components = new List<IComponent>()
|
||||
{
|
||||
lblSearch,
|
||||
btnSearch
|
||||
btnSearch,
|
||||
btnClearSearch
|
||||
};
|
||||
|
||||
components.AddRange(grdMotherboards.Columns.OfType<DataGridViewColumn>());
|
||||
@@ -125,8 +137,17 @@ namespace Mi899
|
||||
|
||||
private void PopulateDataSource()
|
||||
{
|
||||
string brand = ddlMotherboardName.SelectedItem as string;
|
||||
string key = txtSearch.Text;
|
||||
IEnumerable<MotherboardRowData> source = _motherboards.Select(x => new MotherboardRowData(x));
|
||||
IEnumerable<MotherboardRowData> source = _motherboards
|
||||
.OrderBy(x => x.Brand)
|
||||
.ThenBy(x => x.Name)
|
||||
.Select(x => new MotherboardRowData(x));
|
||||
|
||||
if (!string.IsNullOrEmpty(brand))
|
||||
{
|
||||
source = source.Where(x => x.Brand == brand);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
@@ -166,5 +187,17 @@ namespace Mi899
|
||||
{
|
||||
PopulateDataSource();
|
||||
}
|
||||
|
||||
private void ddlMotherboardName_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
PopulateDataSource();
|
||||
}
|
||||
|
||||
private void btnClearSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
ddlMotherboardName.SelectedItem = string.Empty;
|
||||
txtSearch.Text = string.Empty;
|
||||
PopulateDataSource();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,4 +57,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="bsMotherboards.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user