Exemple #1
0
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            PaymentMain.com = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            EXP ob2 = new EXP();

            ob2.ShowDialog();
        }
Exemple #2
0
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            com = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
            string[] strArr = null;
            int      count  = 0;

            char[] splitchar = { '-', '.' };
            strArr = com.Split(splitchar);
            string tem = null;

            for (count = 0; count <= strArr.Length - 1; count++)
            {
                if (count == strArr.Length - 1)
                {
                    tem = strArr[count];
                }

                //MessageBox.Show(strArr[count]);
            }

            if (com.Equals("Exp-" + tem))
            {
                com = tem;
                EXP ob2 = new EXP();
                ob2.ShowDialog();
            }
            else
            {
                if (com.Equals("PO." + tem))
                {
                    //MessageBox.Show("hii");
                    com = tem;
                    pur1 ob10 = new pur1();
                    ob10.ShowDialog();
                }
                else
                {
                    if (com.Equals("#BILLNO-" + tem))
                    {
                        //MessageBox.Show("hii");
                        com = tem;
                        billrp ob1 = new billrp();
                        ob1.ShowDialog();
                    }
                }
            }
        }