I'm literally on fire rn
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user