Skip to content

Commit

Permalink
UI Maintenance
Browse files Browse the repository at this point in the history
+ Fix some translations
  • Loading branch information
HighPriest committed Sep 4, 2024
1 parent 5352373 commit 6e2550d
Show file tree
Hide file tree
Showing 7 changed files with 2,983 additions and 134 deletions.
14 changes: 14 additions & 0 deletions InstallationForm.Designer.cs

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

41 changes: 21 additions & 20 deletions InstallationForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ private void tab4buttonNext_Click(object sender, EventArgs e)
foreach (TreeNode node in tab4treeView1.Nodes)
{
if (node.Checked) { continue; }
else if (node.Nodes.Count > 0) {
if(!tab4AtLeastOneNodeChecked(node))
else if (node.Nodes.Count > 0)
{
if (!tab4AtLeastOneNodeChecked(node))
{
System.Windows.Forms.MessageBox.Show(text: resources.GetString("ErrorDownloadList"), caption: "ERROR", buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Exclamation);
return;
Expand All @@ -144,7 +145,7 @@ private void tab4buttonNext_Click(object sender, EventArgs e)
private bool tab4AtLeastOneNodeChecked(TreeNode _node)
{
bool status = false;
if ( _node.Nodes.Count > 0)
if (_node.Nodes.Count > 0)
{
foreach (TreeNode node in _node.Nodes)
{
Expand Down Expand Up @@ -187,24 +188,24 @@ private void tab6listViewHandler(object sender, EventArgs e)
{
BeginInvoke((MethodInvoker)delegate
{
ListView _sender = (ListView)sender;
if (_sender.SelectedItems.Count > 0)
{
foreach (ListViewItem item in _sender.CheckedItems)
ListView _sender = (ListView)sender;
if (_sender.SelectedItems.Count > 0)
{
item.Checked = false;
foreach (ListViewItem item in _sender.CheckedItems)
{
item.Checked = false;
}
_sender.SelectedItems[0].Checked = true;
return;
}
try
{
_sender.Items[0].Checked = true;
}
catch (Exception ex)
{
Debug.Write(ex.ToString());
}
_sender.SelectedItems[0].Checked = true;
return;
}
try
{
_sender.Items[0].Checked = true;
}
catch (Exception ex)
{
Debug.Write(ex.ToString());
}
});

}
Expand Down Expand Up @@ -300,7 +301,7 @@ private void workerInstallation_DoWork(object sender, System.ComponentModel.DoWo

// (Installation) Copy files to working directory, after download & backup
downloadManager.installRBRConfiguration(tab3dirRBR.Text, workerInstallation);
// Directory.Move(Path.Combine(tab3dirRBR.Text, "backup\\FilipekMod"), tab3dirRBR.Text);
// Directory.Move(Path.Combine(tab3dirRBR.Text, "backup\\FilipekMod"), tab3dirRBR.Text);

// Make sure at least one item is checked
tab6listViewHandler(tab6selectLanguage, new EventArgs());
Expand Down
2 changes: 1 addition & 1 deletion InstallationForm.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Sounds: Language &amp; voice of the CoPilot.</value>
<value>Download</value>
</data>
<data name="tab5textBox2.Text" xml:space="preserve">
<value> Wait for the installer to finish downloading selecetde content</value>
<value> Wait for the installer to finish downloading seleceted content</value>
</data>
<data name="tab5textBox1.Text" xml:space="preserve">
<value>Downloading</value>
Expand Down
5 changes: 1 addition & 4 deletions InstallationForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ Sounds: Language &amp; voice of the CoPilot.</value>
<value>5</value>
</data>
<data name="tab5textBox2.Text" xml:space="preserve">
<value> Wait for the installer to finish downloading selecetde content</value>
<value> Wait for the installer to finish downloading seleceted content</value>
</data>
<data name="&gt;&gt;tab5textBox2.Name" xml:space="preserve">
<value>tab5textBox2</value>
Expand Down Expand Up @@ -4104,9 +4104,6 @@ Sounds: Language &amp; voice of the CoPilot.</value>
kTtyR+7IHbkjP5fy/wMbyXtUu02poAAAAABJRU5ErkJggg==
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>800, 600</value>
</data>
Expand Down
Loading

0 comments on commit 6e2550d

Please sign in to comment.