I'm literally on fire rn

This commit is contained in:
Miskolczi Richárd
2023-03-24 14:03:09 +01:00
parent b06568fb27
commit 99498ed660
10 changed files with 85 additions and 51 deletions

View File

@@ -10,23 +10,9 @@ namespace Password_Manager
private void ChangeProfile(object sender, EventArgs e)
{
ComboBox cb = (ComboBox)sender;
Fields.CurrentProfile = Fields.ListOfProfiles.SearchByName(cb.Text);
}
private void ClearSearchBox(object sender, EventArgs e) //needed because declaring an anonymous method and subscribing that onto the delegate didn't work for some reason
{
ProfileHandler.CurrentProfile = ProfileHandler.ListOfProfiles.SearchByName(cb.Text);
searchBox.Clear();
}
private void UpdateResultList(object sender, EventArgs args)
{
resultList.Refresh();
}
private void ProfileChange(object sender, EventArgs e)
{
searchBox.Clear();
resultList.Refresh();
this.Text = ProfileHandler.CurrentProfile == null ? "Password Manager" : $"Current profile: {ProfileHandler.CurrentProfile.Name}";
}
private void AddProfile(object sender, EventArgs e)