dev: implement proxy creds
This commit is contained in:
38
CarManagerV3/Forms/NetCredentials.cs
Normal file
38
CarManagerV3/Forms/NetCredentials.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CarManagerV3.Forms
|
||||
{
|
||||
public partial class NetCredentials : Form
|
||||
{
|
||||
public NetCredentials()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public NetworkCredential GetCredentails()
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"Username: {tbxUsername.Text}, Password: {tbxPassword.Text}");
|
||||
return new NetworkCredential(tbxUsername.Text, tbxPassword.Text);
|
||||
}
|
||||
|
||||
private void NetCredentials_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnAccept_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user