コード例 #1
0
 private void btnDisplay_Click(object sender, EventArgs e)
 {
     if (lsvSearch.SelectedIndices.Count > 0)
     {
         frmDisplayRecipe displayRecipe = new frmDisplayRecipe();
         displayRecipe.LoadFoodstuff(fsMasterlist[lsvSearch.SelectedIndices[0]]);
         displayRecipe.ShowDialog();
     }
 }
コード例 #2
0
ファイル: frmSearch.cs プロジェクト: hrharwell/GradeACatering
 private void btnDisplayRecipe_Click(object sender, EventArgs e)
 {
     if (lsvSearch.SelectedItems.Count > 0)
     {
         frmDisplayRecipe displayRecipe = new frmDisplayRecipe();
         displayRecipe.LoadFoodstuff(fsMasterlist[lsvSearch.SelectedIndices[0]]);
         displayRecipe.ShowDialog();
     }
     else
     {
         //message stating an item needs to be selected first...
     }
 }
コード例 #3
0
ファイル: frmSearch.cs プロジェクト: hrharwell/GradeACatering
 private void btnDisplayRecipe_Click(object sender, EventArgs e)
 {
     if (lsvSearch.SelectedItems.Count > 0)
     {
         frmDisplayRecipe displayRecipe = new frmDisplayRecipe();
         displayRecipe.LoadFoodstuff(fsMasterlist[lsvSearch.SelectedIndices[0]]);
         displayRecipe.ShowDialog();
     }
     else
     {
         //message stating an item needs to be selected first...
     }
 }