示例#1
0
 void init_form_tftpc()
 {
     tftpclog = new rpanel(fp_tftpc_log);
     text_tftpclfile.DoubleClick += new EventHandler(tftpc_lfile_click);
     btn_tftpcput.Click          += new EventHandler(tftpc_put_click);
     btn_tftpcget.Click          += new EventHandler(tftpc_get_click);
 }
示例#2
0
 void init_form_plan()
 {
     plan_panel             = new rpanel(fp_plan);
     planlog                = new rlog(lb_plan);
     plan_tbhash            = new Hashtable();
     plan_msghash           = new Hashtable();
     btn_planadd.Click     += new EventHandler(plan_add_click);
     btn_plandel.Click     += new EventHandler(plan_del_click);
     cb_planunit.DataSource = cycleunitlist();
     cb_planunit.Text       = cycleunit.minute.ToString();
 }
示例#3
0
 void init_form_chat()
 {
     chat_upanel              = new rpanel(fp_chat, 160);
     chatlog                  = new rlog(lb_chat);
     chatephash               = new Hashtable();
     chatbtnhash              = new Hashtable();
     chat                     = new rchat(chat_log_func, add_user);
     btn_chat.Click          += chat_click;
     btn_chatrefresh.Click   += chat_refresh_click;
     btn_chatntf.Click       += chat_notify_click;
     text_chatname.LostFocus += chat_name_change;
 }
示例#4
0
 void init_form_tftpd()
 {
     tftpd_dpanel       = new rpanel(fp_tftpd_dir);
     tftpdlog           = new rpanel(fp_tftpd_log);
     tftpd_dirs         = new ArrayList();
     tftpd_tmr          = new Timer();
     tftpd_tmr.Interval = 200; // 200ms
     tftpd_tmr.Tick    += new EventHandler(tftpd_dir_tick);
     tftpd_dirhash      = new Hashtable();
     tftpd = new rtftpd(tftpd_log_func);
     tftpd_adddir.Click     += tftpd_adddir_click;
     tftpd_deldir.Click     += tftpd_deldir_click;
     tftpd_btn.Click        += tftpd_click;
     fp_tftpd_dir.AutoScroll = true;
 }
示例#5
0
 void init_form_http()
 {
     http_fpannel = new rpanel(fp_httpd_file);
     sh           = new rshell("Rabbit", Application.ExecutablePath, "Add to Rabbit.http");
     httpd_phash  = new Hashtable();
     //httpd_output.HorizontalScrollbar = true;
     //httpd_output.HorizontalExtent = 5000;
     httpdlog = new rlog(lb_httpd);
     httpd    = new rhttpd(httpd_log_func);
     httpd.init_mime(rconf.get("mime"));
     btn_httpd.Click += new EventHandler(httpd_click);
     if (sh.file_exist())
     {
         cb_http_shell.Checked = true;
     }
     cb_http_shell.CheckedChanged += new EventHandler(http_shell_click);
     init_comsrv();
 }
示例#6
0
 void init_form_scan()
 {
     scan_panel      = new rpanel(fp_scan, 28);
     btn_scan.Click += new EventHandler(scan_click);
     scansshash      = Hashtable.Synchronized(new Hashtable());
 }