예제 #1
0
        }         // Search MenuItem

        private void btn_AcceptChange_Click(object sender, RoutedEventArgs e)
        {
            try { Item_Furnishings.AcceptChangeItem(txt_Id, txt_Info, txt_Name, txt_Adress, txt_Phone, cmbSeller_Name, txt_Time_Delivery, txt_Cost, txt_Balance, txt_Date_Order); }
            catch (Exception ex) { MessageBox.Show(ex.Message.ToString() + "accept change 1"); }
            try { AcceptChangeItemDataSet(Item_Furnishings.str_ItemData); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString() + "accept change 2"); }
            try { writereadExcel.writeToExcel(MainWindow.dataSet); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString() + "accept change 3"); }
        }
예제 #2
0
		//======== WORK !!!
		private void btnSaveChange_Click(object sender, RoutedEventArgs e)
		{
			WriteReadExcel writereadExcel = new WriteReadExcel();
			dataSet.AcceptChanges(); 
			writereadExcel.writeToExcel(dataSet);
		}