Beispiel #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            userPreNew userPresentat = new userPreNew(myConnection, CurrentState);

            string userName = this.userName.Text;
            string passWord = this.passWord.Text;

            if (myConnection.login(userName, passWord))
            {
                MessageBox.Show("" + userName + "welcome to the forum");
                userPresentat.Show();
            }
            else
            {
                MessageBox.Show("not exist username or password");
            }
        }
Beispiel #2
0
        private void הבא_Click(object sender, EventArgs e)
        {
            int    i;
            string myText = "";

            for (i = 0; i < listBox1.Items.Count; i++)
            {
                if (listBox1.GetSelected(i))
                {
                    myText = (string)listBox1.Items[i];
                    break;
                }
            }
            this.CurrentState.currentSubForumInfo = myConnection.WatchAllSubForum().ElementAt(i);
            //   myConnection.currentSubForumInfo = myConnection.WatchAllSubForum().ElementAt(i);

            userPreNew userPrenew = new userPreNew(myConnection, CurrentState);

            userPrenew.Show();
        }