public Algorithm(FileInfo file) { if (!Regex.IsMatch(file.Name, @"^PB\d{3}(\.\w+)?\.dll$")) throw new ArgumentException("Not an available file"); this.file = new AlgorithmFileInfo(file); this.time = TimeSpan.MaxValue; this.available = false; this.answer = ""; this.isPrepared = false; loadProblem(); }
public Algorithm(int n = 0, AlgorithmLanguage lang = AlgorithmLanguage.CSharp) { this.time = TimeSpan.MaxValue; this.available = false; this.answer = ""; this.isPrepared = false; this.file = new AlgorithmFileInfo(n, lang); loadProblem(); }
public Algorithm(AlgorithmFileInfo file) { this.file = file; this.time = TimeSpan.MaxValue; this.available = false; this.answer = ""; this.isPrepared = false; loadProblem(); }