Ejemplo n.º 1
0
        private void B_ClearAll_Click(object sender, EventArgs e)
        {
            //message box, just in case
            DialogResult dialogresult = MessageBox.Show("This will remove all saved tweets, FBs & emails", "Clear Memory", MessageBoxButtons.YesNo);

            if (dialogresult == DialogResult.Yes)
            {
                //clear text boxes
                TB_tweet1.Clear();
                TB_tweet2.Clear();
                TB_tweet3.Clear();
                TB_tweet4.Clear();
                TB_tweet5.Clear();
                TB_FB1.Clear();
                TB_FB2.Clear();
                TB_FB3.Clear();
                TB_FB4.Clear();
                TB_FB5.Clear();

                //clear save data files
                File.WriteAllText(FL_twitterFB_savedata, string.Empty);
                File.WriteAllText(FL_Email_savedata, string.Empty);
                EmailSavedata.Clear();
            }
        }
Ejemplo n.º 2
0
 private void L_FB3_Click(object sender, EventArgs e)
 {
     TB_FB3.Clear();
 }