public static async Task InsertDateAsync() { await DateTable.InsertDate(CommandInsertModel.InsertDate()); DateContextList.Add(CommandModel.GetDateContext()); return; }
public static string CopyFile(string NewFileName, string FileType, string filePath) { string Year = CommandModel.GetDateContext(); string Repository = TargetPath(); string finalPath = null; if (!Directory.Exists(Repository)) { Directory.CreateDirectory(Repository); } if (filePath != null) { string fileName = Path.GetFileName(filePath); finalPath = Repository + @"\" + FileType + @"\" + Year + @"\" + NewFileName; FileSystem.CopyFile(filePath, finalPath, UIOption.OnlyErrorDialogs, UICancelOption.DoNothing); } return(finalPath); }
private static string DateContext() { return(CommandModel.GetDateContext()); }