示例#1
0
 public Form1(TcpClient client, NetworkStream stream, Login login, string dir)
 {
     InitializeComponent();
     this.FormBorderStyle = FormBorderStyle.FixedSingle;
     this.Client = client;
     this.stream = stream;
     this.login = login;
     this.dir = dir;
     clients = new List<Client>();
     connection = new Connection(this);
     thread = new Thread(() => connection.Run());
     thread.Start();
     KeyPreview = true;
 }
示例#2
0
        private Login()
        {
            logfrm = null;

            InitializeComponent();
        }
 private void editMenu_Click(object sender, EventArgs e)
 {
     Login lo = new Login();
     lo.Show();
 }