This repository has been archived on 2025-09-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Password-Manager-Legacy/Password Manager/Form1.cs
Miskolczi Richárd bb7625d2f8 bro check it out
2023-03-24 12:39:50 +01:00

39 lines
1.1 KiB
C#

namespace Password_Manager
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
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
{
searchBox.Clear();
}
private void UpdateResultList(object sender, EventArgs args)
{
resultList.Refresh();
}
private void ProfileChange(object sender, EventArgs e)
{
searchBox.Clear();
resultList.Refresh();
}
private void AddProfile(object sender, EventArgs e)
{
Fields.ListOfProfiles.Add(new Profile("tmp", @"C:\Users\RichardMiskolczi\pass"));
Fields.CurrentProfile = Fields.ListOfProfiles[0]; //temporary
ProfileChange(sender, e);
}
}
}