コード例 #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddProfileImage a = new AddProfileImage(email, false);

            a.ShowDialog();
            this.Close();
        }
コード例 #2
0
 private void deletePostSubmitButton_Click(object sender, EventArgs e)
 {
     if (postsTooDelete.SelectedIndex == -1)
     {
         MessageBox.Show("Please select an Item first!");
     }
     else
     {
         MessageBox.Show("Post removed.");
         MySQLFunctions.deletePost(email, postsTooDelete.Text);
         this.Hide();
         AddProfileImage a = new AddProfileImage(2, email);
         this.Close();
     }
 }
コード例 #3
0
        private void Submit_post_button_Click(object sender, EventArgs e)
        {
            AccountAddPost ah = new AccountAddPost(postCurrentNum, isNewPage);

            ah.post_lbl.Text = textBox1.Text;
            ah.post_lbl.Size = new System.Drawing.Size(700, 25);

            this.Controls.Add(ah.post_background);
            ah.post_background.Controls.Add(ah.post_lbl);
            ah.post_background.Controls.Add(ah.date_lbl);

            ah.post_lbl.Show();
            ah.date_lbl.Show();
            ah.post_background.Show();

            PanelLocation += 100;

            MySQLFunctions.savePost(email, textBox1.Text, ah.date_lbl.Text);

            this.Hide();
            AddProfileImage a = new AddProfileImage(2, email);

            this.Close();
        }