コード例 #1
0
ファイル: Form1.cs プロジェクト: LimeyJohnson/RandomProjects
 //--------------------
 //Commit & Back
 //--------------------
 private void btnRecordBack_Click(object sender, EventArgs e)
 {
     DataAccess DA = new AccessDataAccess();
     DA.InsertArticle("Test", "Test", "Test", 21, "Test", "Test", "Test", "07/20/1986", "Test", "Test", "Test");
     //TextWriter tw = new StreamWriter("NoHTMLText.txt");
     //tw.WriteLine(removeHTML(wb1Ref.DocumentText.ToString()));
     //tw.Close();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: LimeyJohnson/RandomProjects
 private void btnDeleteToday_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you Sure you want to Delete all entries from today","Search String", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         DataAccess DA = new AccessDataAccess();
         DA.DeleteEntriesFromToday();
         lblInfo.Text = "Today's Entries have been erased";
     }
 }