Exemple #1
0
 /// <summary>
 /// 打开日记
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void 日记ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dp.GetPwd() != null)
     {
         FrmTallMePass tall = new FrmTallMePass(dp.GetPwd());
         tall.Show();
     }
     else
     {
         FrmDiary frmdiary = new FrmDiary();
         frmdiary.Show();
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.textBox1.Text == "")
     {
         MessageBox.Show("密码不能为空!");
         return;
     }
     if (this.textBox1.Text == plan.PlanContent)
     {
         FrmDiary diary = new FrmDiary();
         diary.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("密码错误!");
     }
 }
Exemple #3
0
 public FrmAddDiary(FrmDiary diary)
 {
     InitializeComponent();
     this.diary = diary;
 }