Deleted everything profile related and started semi-fresh

This commit is contained in:
2023-03-27 10:24:40 +02:00
parent 60c6982663
commit 6dd08d15b5
17 changed files with 118 additions and 687 deletions

View File

@@ -1,6 +1,6 @@
namespace Password_Manager
{
sealed partial class MainForm : PasswordManagerForm
sealed partial class MainForm : Form
{
/// <summary>
/// Required designer variable.
@@ -30,9 +30,6 @@
{
SearchBox = new TextBox();
ResultList = new PasswordListBox();
ProfileSelection = new ComboBox();
AddProfile = new Button();
DeleteProfile = new Button();
GeneratePassword = new Button();
SuspendLayout();
//
@@ -55,43 +52,6 @@
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 = 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 += OpenProfileCreator;
//
// removeProfile
//
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
//
@@ -109,9 +69,6 @@
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(700, 338);
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);
@@ -123,11 +80,8 @@
#endregion
protected override TextBox SearchBox { get; set; }
protected override PasswordListBox ResultList { get; set; }
protected override ComboBox ProfileSelection { get; set; }
protected override Button AddProfile { get; set; }
protected override Button DeleteProfile { get; set; }
protected override Button GeneratePassword { get; set; }
private TextBox SearchBox;
private PasswordListBox ResultList;
private Button GeneratePassword;
}
}