Esempio n. 1
0
        // public static String ret;
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Payments.com = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            RCF r = new RCF();

            r.ShowDialog();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            save1();
            number = sno;
            nam    = name2;
            RCF rf = new RCF();

            rf.ShowDialog();
        }
Esempio n. 3
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]);
            }
            // MessageBox.Show("Your Var"+tem);
            if (com.Equals("#RET-INV-" + tem))
            {
                com = tem;
                RCF r = new RCF();
                r.ShowDialog();
            }
            else
            {
                if (com.Equals("#SAO-" + tem))
                {
                    com = tem;
                    SO_CRF s = new SO_CRF();
                    s.Show();
                }
                else
                {
                    if (com.Equals("#REN-" + tem))
                    {
                        com         = tem;
                        Invoice.nam = dataGridView1.SelectedRows[0].Cells[4].Value.ToString();
                        INV_REF s = new INV_REF();
                        s.ShowDialog();
                    }
                }
            }
        }