Ejemplo n.º 1
0
        internal KyruForm(Session session)
        {
            this.session = session;
            InitializeComponent();

            InitLocalFileTree();
            Text = session.Username + " - " + Text;

            session.OnUserMerged += () => BeginInvoke(new Action(UpdateLocalFileTree));
        }
Ejemplo n.º 2
0
        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");
            }
        }