alireza_kaka new member
Posts : 5 Emtiaz : 38837 Thanked : 0 Join date : 2013-09-14
| Subject: Sakhtan Remoter DataGraidView [Solved] Thu Oct 31, 2013 8:50 am | |
| سلام اگه كسي بلده آموزش ساخت ريموتر با ديتا گريد رو بزاره مثلا addwlc/x ايكس بره تو ليست ولكام ها |
|
i2 AmTin FireBuzZ TeaM
Medals : Posts : 130 Emtiaz : 41016 Thanked : 77 Join date : 2013-06-15 Age : 29
| Subject: Re: Sakhtan Remoter DataGraidView [Solved] Thu Oct 31, 2013 11:45 am | |
| hi, age 2ta sellol dashtim [masalan Vase Question Answer] age bekhaim remotesh in shekli kar kone , mishe : addqa/hi:hello User - Code:
-
if (msg.Body.ToLower().Substring(0, 6) == "addqa/") { string str1 = msg.Body.Replace("addqa/", ""); string str2 = str1; string[] qa = str2.Split(':'); dataGridView2.Rows.Add(qa); }
ama age taki bashe mishe [mesle welcome bot] : - Code:
-
if (msg.Body.ToLower().Substring(0, 7) == "addwlc/") { dataGridView1.Rows.Add(msg.Body.ToLower().Replace("addwlc/", "")); }
vase pak kardan ham az in estefade kon , in ham roye Question Answer kar mide ham roye Wlc [vase Question Answer , bayad Question ro betypi ta answer ham pak she ] - Code:
-
if (msg.Body.ToLower().Substring(0, 4) == "del/") { for (int i = 0; i < dataGridView1.Rows.Count - 1; i++) { string strA = dataGridView1.Rows[i].Cells[0].Value.ToString(); string strB = msg.Body.ToLower().Replace("del/", ""); if (strA == strB) { dataGridView1.Rows.RemoveAt(i); break; } } }
kolle codeha be sorate yekja - Code:
-
if (msg.Body.ToLower().Substring(0, 6) == "addqa/") { string str1 = msg.Body.Replace("addqa/", ""); string str2 = str1; string[] qa = str2.Split(':'); dataGridView2.Rows.Add(qa); } else if (msg.Body.ToLower().Substring(0, 7) == "addwlc/") { dataGridView1.Rows.Add(msg.Body.ToLower().Replace("addwlc/", "")); } else if (msg.Body.ToLower().Substring(0, 6) == "delqa/") { for (int i = 0; i < dataGridView2.Rows.Count - 1; i++) { string strA = dataGridView2.Rows[i].Cells[0].Value.ToString(); string strB = msg.Body.ToLower().Replace("delqa/", ""); if (strA == strB) { dataGridView2.Rows.RemoveAt(i); break; } } } else if (msg.Body.ToLower().Substring(0, 7) == "delwlc/") { for (int i = 0; i < dataGridView1.Rows.Count - 1; i++) { string strA = dataGridView1.Rows[i].Cells[0].Value.ToString(); string strB = msg.Body.ToLower().Replace("delwlc/", ""); if (strA == strB) { dataGridView1.Rows.RemoveAt(i); break; } } }
Movafagh bashi |
|
alireza_kaka new member
Posts : 5 Emtiaz : 38837 Thanked : 0 Join date : 2013-09-14
| Subject: Re: Sakhtan Remoter DataGraidView [Solved] Thu Oct 31, 2013 2:15 pm | |
| |
|
alireza_kaka new member
Posts : 5 Emtiaz : 38837 Thanked : 0 Join date : 2013-09-14
| Subject: Re: Sakhtan Remoter DataGraidView [Solved] Thu Oct 31, 2013 2:34 pm | |
| اينو هر كسي نمياد بگه واقعا ممنون |
|
Sponsored content
| Subject: Re: Sakhtan Remoter DataGraidView [Solved] | |
| |
|