Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            NewReceiver nReceiver = new NewReceiver(municipality);

            nReceiver.Show();
            Hide();
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int             rowIndex = dataGridView1.SelectedCells[0].RowIndex;
            DataGridViewRow row      = dataGridView1.Rows[rowIndex];
            string          username = row.Cells[0].Value.ToString();
            string          brgy     = row.Cells[2].Value.ToString();

            // MessageBox.Show( username + " : " + brgy);
            for (ctr = 0; ctr < accounts.Length - 1; ctr++)
            {
                string[] userInfo = accounts[ctr].Split(';');
                //   MessageBox.Show(userInfo[1] + " : " + userInfo[3]);
                if (username.Equals(userInfo[1]))
                {
                    //if(username.Equals(userInfo[1]) && brgy.Equals(3)){
                    NewReceiver nReceiver = new NewReceiver("ReceiverCMS", userInfo);
                    nReceiver.Show();
                    Hide();
                }
            }
        }