예제 #1
0
파일: Form1.cs 프로젝트: MiThewsey/SMauto
        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();
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: MiThewsey/SMauto
 private void L_FB4_Click(object sender, EventArgs e)
 {
     TB_FB4.Clear();
 }