public FileLoader(Form1 form, Connection connection) { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.FixedSingle; this.form = form; this.connection = connection; }
public DataPanel(Form1 form, Connection connection, Identifier id) { InitializeComponent(); this.form = form; chatInputTextBox.Select(); firstTime = true; this.connection = connection; this.id = id; }
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; }
public SessionsChooser(DataPanel panel, Connection connection, Form1 form1) { //send request for the requests connection.writePacket(new PacketRequestSessions() { id = panel.id.Id, username = "******" }); while (Connection.Sessions == null) { } InitializeComponent(); //sessies Connection.Sessions.ForEach(session => { this.box.Items.Add(session); }); }
public Powerform(Connection connection,DataPanel panel) { InitializeComponent(); this.connection = connection; this.panel = panel; }