private void ProcessCommandExecute() { Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; try { _khachHang.Clear(); ProcessFileExcel(_settingModel.FileKinhDoanh); FillDataToFileNPP(_settingModel.FileThuong); _settingModel.SaveSetting(); } catch (Exception ex) { Mouse.OverrideCursor = null; MessageBox.Show("Lỗi Không Thể Mở File !!!!" + ex.Message, "Nhắc Nhở Bạn !!!"); } finally { Mouse.OverrideCursor = null; } Mouse.OverrideCursor = null; }
void SaveSetting() { SaveSettingValue(); sm.SaveSetting(); }