internal KyruForm(Session session) { this.session = session; InitializeComponent(); InitLocalFileTree(); Text = session.Username + " - " + Text; session.OnUserMerged += () => BeginInvoke(new Action(UpdateLocalFileTree)); }
private void btnLogin_Click(object sender, EventArgs e) { if (txtUsername.Text != "" && txtPassword.Text != "") { Session session = new Session(txtUsername.Text, txtPassword.Text, localObjectStorage); Visible = false; var kform = new KyruForm(session); kform.Show(); this.Close(); } else { MessageBox.Show("You seem to be missing your username or password", "Warning"); } }