public static void method_167(CmsForm cmsForm, out string out_log) { out_log = ""; try { if (!cmsForm.InvokeRequired) { cmsForm.Visible = true; cmsForm.WindowState = FormWindowState.Normal; Thread.Sleep(100); cmsForm.Activate(); Thread.Sleep(100); cmsForm.tabControlMain.SelectedIndex = 1; Thread.Sleep(100); } else { GDelegate74 gDelegate74 = new GDelegate74(QqUtil.method_167); cmsForm.BeginInvoke(gDelegate74, new object[] { cmsForm, out_log }); } } catch (Exception exception) { out_log = string.Concat("[WindowNomal]出错:", exception.ToString()); } }
public static void set_formWindowState(CmsForm cmsForm, FormWindowState formWindowState) { try { if (cmsForm.InvokeRequired) { formWindowState method = new formWindowState(FormUtil.set_formWindowState); cmsForm.BeginInvoke(method, new object[] { cmsForm, formWindowState }); } else { //cmsForm.WindowState = formWindowState; if (formWindowState == FormWindowState.Normal) { cmsForm.Activate(); cmsForm.Show(); } else if (formWindowState == FormWindowState.Minimized) { cmsForm.Hide(); } } } catch (Exception exception) { LogUtil.log_call(cmsForm, "[SetFormState]出错," + exception.ToString()); } }
public static void load_pid_call(CmsForm cmsForm, int qun_type) { try { if (cmsForm.dataGridView_fenqun_qq.InvokeRequired) { load_qun_pid method = new load_qun_pid(FollowUtil.load_pid_call); cmsForm.BeginInvoke(method, new object[] { cmsForm, qun_type }); } else { FollowUtil.load_pid(cmsForm, qun_type); } } catch (Exception exception) { MessageBox.Show("[load_pid_qq]出错:" + exception.ToString()); } }
public static void load_weibo_call(CmsForm cmsForm) { try { if (cmsForm.dataGridView_weibo.InvokeRequired) { load method = new load(FollowUtil.load_weibo_call); cmsForm.BeginInvoke(method, new object[] { cmsForm }); } else { FollowUtil.load_weibo(cmsForm); } } catch (Exception exception) { MessageBox.Show("[load_weibo]出错:" + exception.ToString()); } }
public static void qunfa_shoudong_fasong_call(CmsForm cmsForm, string content) { try { if (cmsForm.InvokeRequired) { zhuanhua_copy_Click method = new zhuanhua_copy_Click(QunfaUtil.qunfa_shoudong_fasong_call); cmsForm.BeginInvoke(method, new object[] { cmsForm, content }); } else { QunfaUtil.qunfa_shoudong_fasong(cmsForm, content); } } catch (Exception exception) { //MessageBox.Show("[messageForThread]出错:" + exception.ToString()); } }
public static void isBinding_call(CmsForm cmsForm) { try { if (cmsForm.InvokeRequired) { bind method = new bind(BindingUtil.isBinding_call); cmsForm.BeginInvoke(method, new object[] { cmsForm }); } else { BindingUtil.isBinding(cmsForm); } } catch (Exception exception) { MessageBox.Show("[messageForThread]出错:" + exception.ToString()); } }
public static void tools_zhuanhua_tianjia_zhushou_call(CmsForm cmsForm, string content) { try { if (cmsForm.InvokeRequired) { zhuanhua_copy_Click method = new zhuanhua_copy_Click(ToolsUtil.tools_zhuanhua_tianjia_zhushou_call); cmsForm.BeginInvoke(method, new object[] { cmsForm, content }); } else { ToolsUtil.tools_zhuanhua_tianjia_zhushou(cmsForm, content); } } catch (Exception exception) { //MessageBox.Show("[messageForThread]出错:" + exception.ToString()); } }
public static void log_cms_call(CmsForm cmsForm, String content) { try { if (cmsForm.richTextBoxCms.InvokeRequired) { log method = new log(LogUtil.log_cms_call); cmsForm.BeginInvoke(method, new object[] { cmsForm, content }); } else { LogUtil.log_cms_str(cmsForm, content); } } catch (Exception exception) { MessageBox.Show("[messageForThread]出错:" + exception.ToString()); } }
public static void method_168(CmsForm cmsForm, out string out_log) { out_log = ""; try { if (!cmsForm.InvokeRequired) { cmsForm.Visible = true; cmsForm.WindowState = FormWindowState.Minimized; } else { GDelegate75 gDelegate75 = new GDelegate75(QqUtil.method_168); cmsForm.BeginInvoke(gDelegate75, new object[] { cmsForm, out_log }); } } catch (Exception exception) { out_log = string.Concat("[WindowMin]出错:", exception.ToString()); } }
public static void load_item(CmsForm cmsForm, SendItem sendItem) { try { if (cmsForm.dataGridViewFollowSnd.InvokeRequired) { load_item method = new load_item(FollowUtil.load_item); cmsForm.BeginInvoke(method, new object[] { cmsForm, sendItem }); } else { DataGridViewRow dataGridViewRow = new DataGridViewRow(); //cmsForm.dataGridViewFollowSnd.Rows[i].HeaderCell.Value = string.Concat(i + 1, ""); DataGridViewTextBoxCell create_date_str = new DataGridViewTextBoxCell(); create_date_str.Value = sendItem.create_date_str; create_date_str.Tag = sendItem; dataGridViewRow.Cells.Add(create_date_str); DataGridViewTextBoxCell from = new DataGridViewTextBoxCell(); from.Value = sendItem.from; dataGridViewRow.Cells.Add(from); DataGridViewTextBoxCell memo = new DataGridViewTextBoxCell(); memo.Value = sendItem.memo; dataGridViewRow.Cells.Add(memo); DataGridViewTextBoxCell status = new DataGridViewTextBoxCell(); status.Value = (sendItem.status == 0 ? "未发送" : "已发送"); dataGridViewRow.Cells.Add(status); //DataGridViewComboBoxCell comboxcell = new DataGridViewComboBoxCell(); //row.Cells.Add(comboxcell); //cmsForm.dataGridViewFollowSnd[0, i].Value = sendItem.create_date_str; //cmsForm.dataGridViewFollowSnd[1, i].Value = sendItem.from; //cmsForm.dataGridViewFollowSnd[2, i].Value = sendItem.memo; //cmsForm.dataGridViewFollowSnd[3, i].Value = (sendItem.status == 0 ? "未发送" : "已发送"); //LogUtil.log_call(this, "sendItem.create_date:" + sendItem.create_date); //this.dataGridViewFollowSnd[2, string0].Value = GClass13.smethod_15(arrayList26.string_2); //this.dataGridViewFollowSnd[2, string0].Style.ForeColor = GClass13.smethod_16(arrayList26.string_2); //cmsForm.dataGridViewFollowSnd[0, i].Tag = sendItem; cmsForm.dataGridViewFollowSnd.Rows.Add(dataGridViewRow); //string out_log = ""; //ArrayList follow_list = cmsForm.sendSqlUtil.query_send(0, out out_log); //cmsForm.dataGridViewFollowSnd.Rows.Clear(); //if (follow_list != null && follow_list.Count > 0) //{ // int i = 0; // foreach (SendItem sendItem in follow_list) // { // DataGridViewRow dataGridViewRow = new DataGridViewRow(); // cmsForm.dataGridViewFollowSnd.Rows.Add(dataGridViewRow); // cmsForm.dataGridViewFollowSnd.Rows[i].HeaderCell.Value = string.Concat(i + 1, ""); // cmsForm.dataGridViewFollowSnd[0, i].Value = sendItem.create_date_str; // cmsForm.dataGridViewFollowSnd[1, i].Value = sendItem.from; // cmsForm.dataGridViewFollowSnd[2, i].Value = sendItem.memo; // cmsForm.dataGridViewFollowSnd[3, i].Value = (sendItem.status == 0 ? "未发送" : "已发送"); // //LogUtil.log_call(this, "sendItem.create_date:" + sendItem.create_date); // //this.dataGridViewFollowSnd[2, string0].Value = GClass13.smethod_15(arrayList26.string_2); // //this.dataGridViewFollowSnd[2, string0].Style.ForeColor = GClass13.smethod_16(arrayList26.string_2); // cmsForm.dataGridViewFollowSnd[0, i].Tag = sendItem; // i++; // } //} } } catch (Exception exception) { MessageBox.Show("[messageForThread]出错:" + exception.ToString()); } }