Skip to content

Commit

Permalink
Added button for custom entry
Browse files Browse the repository at this point in the history
  • Loading branch information
zdimension committed Dec 19, 2015
1 parent c780edc commit d70b54f
Show file tree
Hide file tree
Showing 22 changed files with 901 additions and 860 deletions.
2 changes: 1 addition & 1 deletion SharpBoot/CustomFileFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private void CustomFileFrm_Load(object sender, EventArgs e)

private void lvFiles_SelectionChanged(object sender, EventArgs e)
{
btnRemove.Visible = lvFiles.SelectedRows.Count != 0;
btnRemove.Enabled = lvFiles.SelectedRows.Count != 0;
}

private void btnRemove_Click(object sender, EventArgs e)
Expand Down
78 changes: 40 additions & 38 deletions SharpBoot/MainWindow.Designer.cs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions SharpBoot/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void InitAfterLng()
cbxBackType.SelectedIndex = 0;
updateAvailableToolStripMenuItem.Visible = update_available;
addFilesToolStripMenuItem.Text = Strings.AddFiles;
btnCustomEntry.Text = Strings.AddCustomEntry;
}

private void LngItemClick(ToolStripMenuItem it)
Expand Down
1,586 changes: 793 additions & 793 deletions SharpBoot/MainWindow.resx

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions SharpBoot/MainWindow.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,15 @@
<value>语言</value>
</data>
<data name="installBootloaderOnUSBKeyToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>173, 20</value>
<value>205, 20</value>
</data>
<data name="installBootloaderOnUSBKeyToolStripMenuItem.Text" xml:space="preserve">
<value>啟動程式套裝在U片安装</value>
<value>安装启动引导器至 USB 随身碟</value>
</data>
<data name="lblDragHere.Size" type="System.Drawing.Size, System.Drawing">
<value>152, 25</value>
</data>
<data name="lblDragHere.Text" xml:space="preserve">
<value>将文件拖至此处</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
</root>
20 changes: 10 additions & 10 deletions SharpBoot/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions SharpBoot/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,15 @@
<data name="compile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\compile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="package_go" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\package_go.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="syslinux" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\syslinux.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="syslinux1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\syslinux.7z;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="compile1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\compile1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cd" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\cd.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand All @@ -145,6 +148,9 @@
<data name="qemu" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\qemu.7z;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="package_go" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\package_go.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cd_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\cd_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down Expand Up @@ -172,9 +178,6 @@
<data name="script_edit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\script_edit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="syslinux" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\syslinux.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="grldr" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\grldr;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
Expand Down Expand Up @@ -214,10 +217,7 @@
<data name="flag_usa" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\flag_usa.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="compile1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\compile1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="compile2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\compile2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="edit_package" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\edit_package.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file removed SharpBoot/Resources/compile2.png
Binary file not shown.
Binary file added SharpBoot/Resources/edit_package.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion SharpBoot/SharpBoot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@
<None Include="Resources\add.png" />
<None Include="Resources\delete.png" />
<None Include="Resources\compile1.png" />
<None Include="Resources\compile2.png" />
<None Include="Resources\edit_package.png" />
<Content Include="Resources\grubinst.exe" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
9 changes: 9 additions & 0 deletions SharpBoot/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions SharpBoot/Strings.cs.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Přidat soubory</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Přidat vlastní položku</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Dateien hinzufügen</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Benutzerdef. Datensatz hinzufügen</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Agregar archivos</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Agregar una entrada personalizada</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Ajouter des fichiers</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Ajouter une entrée personnalisée</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.it.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Aggiungi file</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Aggiungi voce personalizzata</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Add files</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Add Custom Entry</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.ro.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Adăugare fişiere</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Adăugare intrare particularizată</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Добавить файлы</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Добавление настраиваемой записи</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.uk.resx
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,7 @@
<data name="AddFiles" xml:space="preserve">
<value>Додавання файлів</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>Додати настроюваний запис</value>
</data>
</root>
5 changes: 4 additions & 1 deletion SharpBoot/Strings.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<value>安装</value>
</data>
<data name="InstallABootLoader" xml:space="preserve">
<value>啟動程式套裝在U片安装</value>
<value>安装启动引导器至 USB 随身碟</value>
</data>
<data name="InstallingBoot" xml:space="preserve">
<value>{0}在"{1}"安装</value>
Expand Down Expand Up @@ -246,4 +246,7 @@
<data name="AddFiles" xml:space="preserve">
<value>添加文件</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>添加自定义条目</value>
</data>
</root>
3 changes: 3 additions & 0 deletions SharpBoot/Strings.zh-Hant.resx
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,7 @@
<data name="AddFiles" xml:space="preserve">
<value>新增檔案</value>
</data>
<data name="AddCustomEntry" xml:space="preserve">
<value>新增自訂項目</value>
</data>
</root>

0 comments on commit d70b54f

Please sign in to comment.