Ejemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (_isModified == true)
     {
         FileOprateHelp.SaveFile(rcBoxContect.Text, _cunrrentModel.Value);
         MsgBoxHelp.ShowInfo("保存成功!");
         btnSave.Enabled = false;
         _isModified     = false;
     }
 }
Ejemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(textBox1.Text) == true)
     {
         MsgBoxHelp.ShowWorning("关键字名称不能为空!");
         return;
     }
     if (operate == 1)
     {
         FileOprateHelp.SetKeyComment(textBox1.Text, textBox3.Text, textBox2.Text);
         //IniDgv(dataGridView1.SelectedRows[0].Index);
         MsgBoxHelp.ShowInfo("修改成功!");
     }
     else if (operate == 2)
     {
         FileOprateHelp.SetKeyComment(textBox1.Text, textBox3.Text, textBox2.Text);
         // IniDgv(dataGridView1.Rows.Count);
         MsgBoxHelp.ShowInfo("插入成功!");
     }
     IniDgv();
 }
Ejemplo n.º 3
0
 private void btnCopy_Click(object sender, EventArgs e)
 {
     Clipboard.Clear();
     Clipboard.SetText(this.textBox1.Text);
     MsgBoxHelp.ShowInfo("已拷贝到剪贴板!");
 }