Ejemplo n.º 1
0
        public static async Task InsertDateAsync()
        {
            await DateTable.InsertDate(CommandInsertModel.InsertDate());

            DateContextList.Add(CommandModel.GetDateContext());
            return;
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private static string DateContext()
 {
     return(CommandModel.GetDateContext());
 }