public Form1()
 {
     InitializeComponent();
     conn = new ConnectionBuilder(true);
     conn.OpenConnection();
     userDelegate = new LoginDelegate(conn);
 }
 public static void CreateNewProfileWindow(ConnectionBuilder connection)
 {
     new ProfileForm(connection).Show();
 }
 public Form1()
 {
     InitializeComponent();
     closeConnButton.Enabled = false;
     conn = new ConnectionBuilder(false);
 }
 public ProfileForm(ConnectionBuilder connection)
 {
     InitializeComponent();
     conn = connection;
     this.Text = UserData.Login;
 }