예제 #1
0
        public bool TryReadFile(string path)
        {
            List <int> array = new List <int>();

            if (FileWorkerModel.TryReadArray(array, path))
            {
                _values.Clear();
                foreach (int el in array)
                {
                    _values.Add(el);
                }
                Sort();
                return(true);
            }
            return(false);
        }
예제 #2
0
 public void ResultWriteFile(string path)
 {
     FileWorkerModel.WriteFile(Even_Values, Odd_Values, path);
 }
예제 #3
0
 public void WriteFile(string path)
 {
     FileWorkerModel.WriteFile(Values, path);
 }