Exemplo n.º 1
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            if (usrnEdit.Text != "" && passEdit.Text != "")
            {
                boardForm bf = new boardForm(usrnEdit.Text);
                if (!Directory.Exists("data/users/" + usrnEdit.Text))
                {
                    Directory.CreateDirectory("data/users/" + usrnEdit.Text);
                    Directory.CreateDirectory("data/users/" + usrnEdit.Text + "/help");
                    Directory.CreateDirectory("data/users/" + usrnEdit.Text + "/uploaded");
                }

                bf.Show();
                this.Close();
            }
        }
Exemplo n.º 2
0
 private void exitButton_Click(object sender, EventArgs e)
 {
     this.Close();
     bf.Show();
 }