示例#1
0
        private void EditData()
        {
            int           index  = dataGrid.SelectedRows[0].Index;
            Client        temp   = sql.findClient(Int32.Parse(dataGrid.Rows[index].Cells[0].Value.ToString()));
            AddClientForm editor = new AddClientForm();

            editor.LookForClient(temp);
        }
示例#2
0
        private void знайтиКлієнтаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int           index  = dataGrid.SelectedRows[0].Index;
            Client        temp   = sql.findClient(Int32.Parse(dataGrid.Rows[index].Cells[2].Value.ToString()));
            AddClientForm editor = new AddClientForm();

            editor.LookForClient(temp);
        }