Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Mar 6, 2024
1 parent ec09742 commit 4c70c84
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 28 deletions.
6 changes: 6 additions & 0 deletions FriishProduce/InjectorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public void RefreshForm()
InjectorsList.Items.Add(Language.Get("ByDefault"));
break;

case Console.GBA:
CustomManual.Enabled = false;
InjectorsList.Items.Clear();
InjectorsList.Items.Add(Forwarder.List[6]);
break;

default:
break;
}
Expand Down
82 changes: 54 additions & 28 deletions FriishProduce/LanguageXMLEditor.Designer.cs

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

6 changes: 6 additions & 0 deletions FriishProduce/LanguageXMLEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ private void button4_Click(object sender, EventArgs e)
button1.Enabled = comboBox1.Enabled = true;
dataGridView1.Enabled = button5.Enabled = button4.Enabled = button3.Enabled = button2.Enabled = false;
dataGridView1.Rows.Clear();
textBox1.Text = null;
}

private void button5_Click(object sender, EventArgs e) => WriteTo(Paths.Languages + SelectedCultureInfo().Name + ".xml");
Expand Down Expand Up @@ -182,5 +183,10 @@ private void UpdateList()

private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) => UpdateList();
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) => UpdateList();

private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
try { textBox1.Text = null; textBox1.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); } catch { }
}
}
}

0 comments on commit 4c70c84

Please sign in to comment.