Пример #1
0
        private void dgv_myRecipe_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView ID         = sender as DataGridView;
            RecipePage   recipePage = new RecipePage((int)ID.CurrentRow.Cells["ID"].Value);

            recipePage.Show();
        }
Пример #2
0
        private void dgv_like_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView ID         = sender as DataGridView;
            RecipePage   recipePage = new RecipePage(RecipeID);

            recipePage.Show();
        }
Пример #3
0
 private void btn_ToR_Click(object sender, EventArgs e)
 {
     if (dgv_GoodsToR.Rows.Count == 0)
     {
         return;
     }
     try
     {
         int        RIndex = (int)dgv_GoodsToR.CurrentRow.Cells[0].Value;
         RecipePage NewR   = new RecipePage(RIndex);
         NewR.Show();
     }
     catch (Exception)
     {
         MessageBox.Show("請選擇您要的食譜。", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }