Beispiel #1
0
        public static void kill_all()
        {
            string processName  = Constants.weixin_login_exe;
            bool   kill_boolean = true;

            while (kill_boolean == true)
            {
                ProcessesUtil.kill(processName, out kill_boolean);
                Thread.Sleep(1000);
            }
            processName  = Constants.qq_jiqiren_exe;
            kill_boolean = true;
            while (kill_boolean == true)
            {
                ProcessesUtil.kill(processName, out kill_boolean);
                Thread.Sleep(1000);
            }
            processName  = Constants.qq_jiqiren_proxy_exe;
            kill_boolean = true;
            while (kill_boolean == true)
            {
                ProcessesUtil.kill(processName, out kill_boolean);
                Thread.Sleep(1000);
            }
        }
Beispiel #2
0
 private void show_qun()
 {
     try
     {
         ArrayList weixinList = ProcessesUtil.getWindows(this.cmsForm, "ChatWnd");
         this.dataGridView1.Rows.Clear();
         //this.load_qq_qun_shunxu();
         int num = 0;
         foreach (string arrayList4 in weixinList)
         {
             DataGridViewRow dataGridViewRow = new DataGridViewRow();
             this.dataGridView1.Rows.Add(dataGridViewRow);
             this.dataGridView1.Rows[num].HeaderCell.Value = string.Concat(num + 1, "");
             this.dataGridView1[0, num].Value = arrayList4;
             //this.dataGridView_qunfa_weixin_list[1, num].Value = "  ↑↓";
             num++;
         }
     }
     catch (Exception exception)
     {
         //LogUtil.log_call(this, string.Concat("[loadWeixinList]出错:", exception.ToString()));
     }
 }