コード例 #1
0
ファイル: form_plan.cs プロジェクト: lazebird/rabbit
        void plan_del(string msg)
        {
            if (!plan_msghash.ContainsKey(text_planmsg.Text))
            {
                plan_log_func("!E: <" + msg + "> not found!");
                return;
            }
            TextBox tb = (TextBox)plan_msghash[text_planmsg.Text];
            rplan   p  = (rplan)plan_tbhash[tb];

            p.stop();
            plan_msghash.Remove(text_planmsg.Text);
            plan_tbhash.Remove(tb);
            plan_panel.del(tb);
        }
コード例 #2
0
        void httpd_dir_click(object sender, EventArgs evt)
        {
            TextBox tb = (TextBox)sender;
            string  p  = tb.Text;

            if (File.Exists(p))
            {
                httpd.del_file(p);
            }
            else if (Directory.Exists(p))
            {
                httpd.del_dir(p);
            }
            httpd_phash.Remove(tb);
            http_fpannel.del(tb);
            saveconf();
        }
コード例 #3
0
ファイル: form_tftpd.cs プロジェクト: lazebird/rabbit
 void tftpd_del_dir(TextBox tb)
 {
     tftpd_dirs.Remove(tb);
     tftpd_dirhash.Remove(tb);
     tftpd_dpanel.del(tb);
 }