/// <summary> /// Load/de-serialize progress of command from ".progressfile" to and object /// </summary> /// <returns>ProgressFile object</returns> private ProgressFile LoadFile() { ProgressFile progressObject = new ProgressFile(); if (File.Exists(XML_FILE_NAME) == true) { progressObject = SupportHandler <ProgressFile> .Load(XML_FILE_NAME); progressObject.IsExist = true; } return(progressObject); }
/// <summary> /// Save/serialize progress to ".progressfile" file /// It will be called after each operation i.e. file completion, command completion & new command /// </summary> /// <param name="progressObject">Process file object</param> private void SaveFile(ProgressFile progressObject) { SupportHandler <ProgressFile> .Save(progressObject, XML_FILE_NAME); }