Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 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);
     }
 }