Exemple #1
0
 private void selectBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var selected   = (dynamic)recipeLst.SelectedItems[0];
         var recipeCode = selected.Col1;
         Application.Current.Properties["exportRecipe"] = recipeCode;
         RecipeEdit ses = new RecipeEdit();
         ses.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         ErrorLogCreate(ex);
         MessageBox.Show("เกิดข้อผิดพลาด ข้อมูล error บันทึกอยู่ในไฟล์ log กรุณาแจ้งข้อมูลดังกล่าวแก่ทีมติดตั้ง"
                         , "ข้อผิดพลาด", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
 private void selectBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var selected = (dynamic)recipeLst.SelectedItems[0];
         var recipeCode = selected.Col1;
         Application.Current.Properties["exportRecipe"] = recipeCode;
         RecipeEdit ses = new RecipeEdit();
         ses.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         ErrorLogCreate(ex);
         MessageBox.Show("เกิดข้อผิดพลาด ข้อมูล error บันทึกอยู่ในไฟล์ log กรุณาแจ้งข้อมูลดังกล่าวแก่ทีมติดตั้ง"
                             , "ข้อผิดพลาด", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
Exemple #3
0
        private void MenuItem_Click_5(object sender, RoutedEventArgs e)
        {
            RecipeEdit ses = new RecipeEdit();

            ses.Show();
        }