Esempio n. 1
0
        private void btnProjects_Click(object sender, EventArgs e)
        {
            ProjectForm frm = new ProjectForm();

            this.Hide();
            frm.ShowDialog();
            this.Close();
        }
        private void clientGrid_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int    clientId   = Int32.Parse(clientGrid.Rows[e.RowIndex].Cells[0].Value.ToString());
            string clientName = "";

            MySqlDataReader reader = DBConnection.getData("select * from client where client_id=" + clientId);

            while (reader.Read())
            {
                clientName = reader.GetString("name");
            }

            reader.Close();

            ProjectForm frm = new ProjectForm(clientName);

            frm.Show();
        }
        private void metroTile2_Click(object sender, EventArgs e)
        {
            ProjectForm frm = new ProjectForm();

            frm.Show();
        }