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

@@ -42,19 +42,20 @@
searchBox.PlaceholderText = "Search for a password";
searchBox.Size = new Size(257, 27);
searchBox.TabIndex = 0;
searchBox.TextChanged += UpdateResultList;
searchBox.TextChanged += resultList.ReloadResults;
//
// resultList
//
resultList.FormattingEnabled = true;
resultList.ItemHeight = 20;
resultList.Location = new Point(12, 99);
resultList.Location = new Point(12, 60);
resultList.Name = "resultList";
resultList.Size = new Size(150, 104);
resultList.Size = new Size(257, 364);
resultList.TabIndex = 1;
//
// profileSelection
//
profileSelection.DisplayMember = "Name";
profileSelection.DropDownHeight = 100;
profileSelection.DropDownWidth = 200;
profileSelection.FormattingEnabled = true;
@@ -63,7 +64,7 @@
profileSelection.Name = "profileSelection";
profileSelection.Size = new Size(200, 28);
profileSelection.TabIndex = 2;
profileSelection.SelectedIndexChanged += ClearSearchBox;
profileSelection.SelectedIndexChanged += ProfileHandler.ProfileChange;
//
// addProfile
//
@@ -74,12 +75,11 @@
addProfile.Text = "Add";
addProfile.UseVisualStyleBackColor = true;
addProfile.Click += AddProfile;
//
// button2
// removeProfile
//
removeProfile.Location = new Point(691, 60);
removeProfile.Name = "button2";
removeProfile.Name = "removeProfile";
removeProfile.Size = new Size(95, 29);
removeProfile.TabIndex = 4;
removeProfile.Text = "Delete";
@@ -96,7 +96,7 @@
Controls.Add(resultList);
Controls.Add(searchBox);
Name = "MainForm";
Text = "Form1";
Text = "Password Manager";
ResumeLayout(false);
PerformLayout();
}
@@ -106,7 +106,7 @@
public TextBox searchBox;
public ResultListBox resultList;
public ComboBox profileSelection;
private Button addProfile;
private Button removeProfile;
public Button addProfile;
public Button removeProfile;
}
}