private void btn_export_Click(object sender, RoutedEventArgs e) { Excel_helper eh = new Excel_helper(); SaveFileDialog saveFile = new SaveFileDialog(); saveFile.Filter = "Excel files (*.xlsx)|*.xlsx|All files (*.*)|*.*"; if (saveFile.ShowDialog() == System.Windows.Forms.DialogResult.OK) { eh.FileCreate(saveFile.FileName); System.Windows.MessageBox.Show("완료되었습니다."); } }
private void btn_import_Click(object sender, RoutedEventArgs e) { Excel_helper eh = new Excel_helper(); OpenFileDialog openFile = new OpenFileDialog(); openFile.Filter = "Excel files (*.xlsx)|*.xlsx|All files (*.*)|*.*"; if (openFile.ShowDialog() == System.Windows.Forms.DialogResult.OK) { eh.Excel_Import(openFile.FileName); //Pages.Tab_Device td = new Pages.Tab_Device(); Mapping_Data(); } }