예제 #1
0
        public MainForm()
        {
            InitializeComponent();
            memDAO = new MembersDAO();
            fmember = new FollowMemberDAO();
            tagsDao = new TagsDAO();
            followMemberDict = fmember.followMember;
            dict = tagsDao.dict;
            followMemberHashSet = fmember.followMemberHashSet;
            hashSet = tagsDao.hashSet;
            isLoggedIn = false;

            if (isLoggedIn == true)
            {
                tagLabel.Text = "Subscribed Tags";
                userLabel.Text = "Users Followed";
                btnCreatePost.Text = "Create Post";
                btnUsername.Text = "" + member.Username;
                btnLogout.Text = "Logout";
            }
            else
            {
                tagLabel.Text = "Popular Tags";
                userLabel.Text = "Popular Members";
                btnCreatePost.Text = "Login";
                btnLogout.Text = "Create Account";
                btnUsername.Hide();

            }
        }
예제 #2
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     MembersDAO member = new MembersDAO();
     //member.SelectMember();
 }
예제 #3
0
 public LogIn()
 {
     InitializeComponent();
     memberDAO = new MembersDAO();
 }
예제 #4
0
 public Register()
 {
     InitializeComponent();
     dao = new MembersDAO();
     image = null;
 }