Adding Profile and ProfileList class

This commit is contained in:
Miskolczi Richárd
2023-03-24 11:14:49 +01:00
parent ef93530830
commit 911b3fc819
7 changed files with 109 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
namespace Password_Manager
{
partial class Form1
partial class MainForm
{
/// <summary>
/// Required designer variable.
@@ -28,34 +28,46 @@
/// </summary>
private void InitializeComponent()
{
textBox1 = new TextBox();
listBox1 = new ListBox();
searchBox = new TextBox();
resultList = new ListBox();
profileSelection = new ComboBox();
SuspendLayout();
//
// textBox1
//
textBox1.Location = new Point(23, 27);
textBox1.Name = "textBox1";
textBox1.PlaceholderText = "Search for a password";
textBox1.Size = new Size(257, 27);
textBox1.TabIndex = 0;
searchBox.Location = new Point(12, 27);
searchBox.Name = "textBox1";
searchBox.PlaceholderText = "Search for a password";
searchBox.Size = new Size(257, 27);
searchBox.TabIndex = 0;
searchBox.TextChanged += UpdateResultList;
//
// listBox1
//
listBox1.FormattingEnabled = true;
listBox1.ItemHeight = 20;
listBox1.Location = new Point(23, 99);
listBox1.Name = "listBox1";
listBox1.Size = new Size(150, 104);
listBox1.TabIndex = 1;
resultList.FormattingEnabled = true;
resultList.ItemHeight = 20;
resultList.Location = new Point(12, 99);
resultList.Name = "listBox1";
resultList.Size = new Size(150, 104);
resultList.TabIndex = 1;
//
// comboBox1
//
profileSelection.FormattingEnabled = true;
profileSelection.Location = new Point(637, 26);
profileSelection.Name = "comboBox1";
profileSelection.Size = new Size(151, 28);
profileSelection.TabIndex = 2;
profileSelection.SelectedIndexChanged += ChangeProfile;
//
// Form1
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(listBox1);
Controls.Add(textBox1);
Controls.Add(profileSelection);
Controls.Add(resultList);
Controls.Add(searchBox);
Name = "Form1";
Text = "Form1";
ResumeLayout(false);
@@ -64,7 +76,8 @@
#endregion
private TextBox textBox1;
private ListBox listBox1;
private TextBox searchBox;
private ListBox resultList;
private ComboBox profileSelection;
}
}