Example #1
0
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            _AppSettings.SaveSetting("AssociateName", _AssociateName);
            _AppSettings.SaveSetting("TargetInstallDate", _TargetInstallDate.ToString());
            _AppSettings.SaveSetting("InstallTime", _InstallTime.ToString());

            _AppFiles.WriteFileAsync("Hello World");
            // Might neet to pause here for async functions to complete
            _AppFiles.ReadFileAsync();
            string s = _AppFiles.ToString();
        }
Example #2
0
 /// <summary>
 ///     Convert the two enums to a consistent file name.
 /// </summary>
 /// <param name="file">The files enum we want to convert</param>
 /// <param name="ext">The files extension enum we want to convert</param>
 /// <returns>THe file name of a combination of file and extension.</returns>
 private static string GetFullFileName(AppFiles file, AppFileExtension ext)
 {
     return($"{file.ToString().ToLower()}.{ext.ToString().ToLower()}");
 }