Ejemplo n.º 1
0
 private void timer_readCfg_Tick(object sender, EventArgs e)
 {
     this.timer_readCfg.Enabled = false;
     if (File.Exists(str_cfgfile))
     {
         ArrayList al_tmp = new ArrayList();
         al_tmp = Form_Main.ReadAllValues("REMOVE_SENTENCES", str_cfgfile);
         if (al_tmp.Count < 1)
         {
             MessageBox.Show("Please add sentences you want to remove.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             Form_RemSen_AddSen frsas = new Form_RemSen_AddSen();
             frsas.ShowDialog();
         }
         else
         {
             for (int idx = 0; idx < al_tmp.Count; idx++)
             {
                 String str_tmp = al_tmp[idx].ToString();
                 str_tmp = str_tmp.Replace("$$Rem$$", "");
                 al_addSen.Add(str_tmp);
             }
         }
     }
     else
     {
         File.Create(str_cfgfile);
         MessageBox.Show("Please add sentences you want to remove.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         Form_RemSen_AddSen frsas = new Form_RemSen_AddSen();
         frsas.ShowDialog();
     }
     this.btn_addsen.Enabled = true;
 }
Ejemplo n.º 2
0
        private void btn_addsen_Click(object sender, EventArgs e)
        {
            Form_RemSen_AddSen frsas = new Form_RemSen_AddSen();

            frsas.ShowDialog();
        }