private void Button_Click(object sender, RoutedEventArgs e) { var f = new FolderBrowserDialog(); f.SelectedPath = SettingConfiguration.GetStringValue("BackupPath"); f.ShowDialog(); if (f != null && !string.IsNullOrEmpty(f.SelectedPath)) { SettingConfiguration.UpdateKey("BackupPath", f.SelectedPath); vm.DataPath = f.SelectedPath + vm.GetFileName(); } }
private void SaveAction(object obj) { try { SettingConfiguration.UpdateKey("Company", Company); SettingConfiguration.UpdateKey("PortId", PortId.ToString()); SettingConfiguration.UpdateKey("CityId", CityId.ToString()); WindowClose(); } catch (Exception ex) { Helpers.ShowMessage(ex.Message); } }