bro i can't even keep track anymore

This commit is contained in:
2023-03-27 09:17:06 +02:00
parent df33170f71
commit 311a5cc4ca
12 changed files with 248 additions and 131 deletions

View File

@@ -1,6 +1,6 @@
namespace Password_Manager
{
partial class MainForm
sealed partial class MainForm : PasswordManagerForm
{
/// <summary>
/// Required designer variable.
@@ -28,9 +28,9 @@
/// </summary>
private void InitializeComponent()
{
searchBox = new TextBox();
resultList = new PasswordListBox();
profileSelection = new ComboBox();
SearchBox = new TextBox();
ResultList = new PasswordListBox();
ProfileSelection = new ComboBox();
addProfile = new Button();
removeProfile = new Button();
generatePassword = new Button();
@@ -38,82 +38,82 @@
//
// searchBox
//
searchBox.Location = new Point(10, 20);
searchBox.Margin = new Padding(3, 2, 3, 2);
searchBox.Name = "searchBox";
searchBox.PlaceholderText = "Search for a password";
searchBox.Size = new Size(225, 23);
searchBox.TabIndex = 0;
searchBox.TextChanged += resultList.ReloadResults;
SearchBox.Location = new Point(10, 20);
SearchBox.Margin = new Padding(3, 2, 3, 2);
SearchBox.Name = "searchBox";
SearchBox.PlaceholderText = "Search for a password";
SearchBox.Size = new Size(225, 23);
SearchBox.TabIndex = 0;
SearchBox.TextChanged += ResultList.ReloadResults;
//
// resultList
//
resultList.FormattingEnabled = true;
resultList.ItemHeight = 15;
resultList.Location = new Point(10, 45);
resultList.Margin = new Padding(3, 2, 3, 2);
resultList.Name = "resultList";
resultList.Size = new Size(225, 274);
resultList.TabIndex = 1;
resultList.CurrentProfilePathRequest += CurrentProfilePathRequest;
resultList.SearchQueryRequest += () => searchBox.Text;
ResultList.FormattingEnabled = true;
ResultList.ItemHeight = 15;
ResultList.Location = new Point(10, 45);
ResultList.Margin = new Padding(3, 2, 3, 2);
ResultList.Name = "resultList";
ResultList.Size = new Size(225, 274);
ResultList.TabIndex = 1;
ResultList.CurrentProfilePathRequest += () => CurrentProfilePathRequest();
ResultList.SearchQueryRequest += () => SearchBox.Text;
//
// profileSelection
//
profileSelection.DisplayMember = "Name";
profileSelection.DropDownHeight = 100;
profileSelection.DropDownWidth = 200;
profileSelection.FormattingEnabled = true;
profileSelection.IntegralHeight = false;
profileSelection.Location = new Point(513, 20);
profileSelection.Margin = new Padding(3, 2, 3, 2);
profileSelection.Name = "profileSelection";
profileSelection.Size = new Size(176, 23);
profileSelection.TabIndex = 2;
profileSelection.SelectionChangeCommitted += ChangeProfile;
ProfileSelection.DisplayMember = "Name";
ProfileSelection.DropDownHeight = 100;
ProfileSelection.DropDownWidth = 176;
ProfileSelection.FormattingEnabled = true;
ProfileSelection.IntegralHeight = false;
ProfileSelection.Location = new Point(513, 20);
ProfileSelection.Margin = new Padding(3, 2, 3, 2);
ProfileSelection.Name = "profileSelection";
ProfileSelection.Size = new Size(176, 23);
ProfileSelection.TabIndex = 2;
ProfileSelection.SelectionChangeCommitted += ChangeProfile;
//
// addProfile
//
addProfile.Location = new Point(513, 45);
addProfile.Margin = new Padding(3, 2, 3, 2);
addProfile.Name = "addProfile";
addProfile.Size = new Size(83, 22);
addProfile.TabIndex = 3;
addProfile.Text = "Add";
addProfile.UseVisualStyleBackColor = true;
addProfile.Click += AddProfile;
AddProfile.Location = new Point(513, 45);
AddProfile.Margin = new Padding(3, 2, 3, 2);
AddProfile.Name = "addProfile";
AddProfile.Size = new Size(83, 22);
AddProfile.TabIndex = 3;
AddProfile.Text = "Add";
AddProfile.UseVisualStyleBackColor = true;
AddProfile.Click += OpenProfileCreator;
//
// removeProfile
//
removeProfile.Location = new Point(605, 45);
removeProfile.Margin = new Padding(3, 2, 3, 2);
removeProfile.Name = "removeProfile";
removeProfile.Size = new Size(83, 22);
removeProfile.TabIndex = 4;
removeProfile.Text = "Delete";
removeProfile.UseVisualStyleBackColor = true;
DeleteProfile.Location = new Point(605, 45);
DeleteProfile.Margin = new Padding(3, 2, 3, 2);
DeleteProfile.Name = "removeProfile";
DeleteProfile.Size = new Size(83, 22);
DeleteProfile.TabIndex = 4;
DeleteProfile.Text = "Delete";
DeleteProfile.UseVisualStyleBackColor = true;
//
// button1
//
generatePassword.Location = new Point(241, 20);
generatePassword.Name = "button1";
generatePassword.Size = new Size(75, 23);
generatePassword.TabIndex = 5;
generatePassword.Text = "Generate";
generatePassword.UseVisualStyleBackColor = true;
generatePassword.Click += Generate;
GeneratePassword.Location = new Point(241, 20);
GeneratePassword.Name = "button1";
GeneratePassword.Size = new Size(75, 23);
GeneratePassword.TabIndex = 5;
GeneratePassword.Text = "Generate";
GeneratePassword.UseVisualStyleBackColor = true;
GeneratePassword.Click += OpenPasswordGenerator;
//
// MainForm
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(700, 338);
Controls.Add(generatePassword);
Controls.Add(removeProfile);
Controls.Add(addProfile);
Controls.Add(profileSelection);
Controls.Add(resultList);
Controls.Add(searchBox);
Controls.Add(GeneratePassword);
Controls.Add(DeleteProfile);
Controls.Add(AddProfile);
Controls.Add(ProfileSelection);
Controls.Add(ResultList);
Controls.Add(SearchBox);
Margin = new Padding(3, 2, 3, 2);
Name = "MainForm";
Text = "Password Manager";
@@ -123,11 +123,11 @@
#endregion
private TextBox searchBox;
private PasswordListBox resultList;
private ComboBox profileSelection;
private Button addProfile;
private Button removeProfile;
private Button generatePassword;
protected override TextBox SearchBox { get; }
protected override PasswordListBox ResultList { get; }
protected override ComboBox ProfileSelection { get; }
protected override Button AddProfile { get; }
protected override Button DeleteProfile { get; }
protected override Button GeneratePassword { get; }
}
}