public void containerNull() { container = null; workFiles = null; ListStubServerObj = null; drives = null; }
public void containerCreate() { container = new WindsorContainer(); container.Install(new ConfigurationCastleWindsorTest()); ListStubServerObj = new List <IServerObj>(); IServerObj StubServerObj = container.Resolve <IServerObj>(); IDrives drives = container.Resolve <IDrives>(); workFiles = new WorkFiles(drives); ListStubServerObj.Add(StubServerObj); }
public static void Beginning() { Console.Clear(); Backup.CreateBackupFolder(); WorkFiles type = SelectTypeOfWorkFiles(); string path = Backup.GetFolder(type); if (type == WorkFiles.Browsing) { Watch.Watching(path); } else { Backup.Recoil(path); } }
public static string GetFolder(WorkFiles type) { Console.WriteLine($"\nPress number of folder which you want to {type.ToString().ToLower()}?\n" + $"1 - Default\n2 - Enter your folder"); switch (Сhecking.RangeInsert(1, 2)) { case 1: string path = Path.Combine(Directory.GetParent(Environment.CurrentDirectory).Parent.FullName, @"ExampleFolder"); if (!File.Exists(path)) { Directory.CreateDirectory(path); } return(path); case 2: return(GetCorrectPath()); default: throw new ArgumentOutOfRangeException("\nIncorrect input!"); } }
public void AddClients(string[] FileNames) { Dictionary <int, List <ClientDay> > data = WorkFiles.OpenFiles(FileNames); Update(data); }
public ContainerClient() { Dictionary <int, List <ClientDay> > data = WorkFiles.GetTest(); Update(data); }
public PitersWorkService() { _staticDataSerializer = new XmlSerializer(typeof(StaticData), new Type[] { typeof(Material), typeof(Worker), typeof(Proiority) }); _workSerializer = new XmlSerializer(typeof(Work), new Type[] { typeof(Material), typeof(Worker), typeof(StationWork), typeof(Proiority) }); _workFiles = new WorkFiles(); }