Example #1
0
        public void ClosePage(string calcName)
        {
            var calc = OpenCalculations.FirstOrDefault(c => c.Name == calcName);

            OpenCalculations.Remove(calc);
            CurrentCalculation.Workspace.OnCalculationStopped();
            Threads.Remove(calcName);
        }
Example #2
0
        public void DeleteCalculation(string calcName)
        {
            var calc = OpenCalculations.FirstOrDefault(c => c.Name == calcName);

            if (calc == null)
            {
                throw new NullReferenceException("Не найдено вычисление с именем '" + calcName + "'.");
            }
            OpenCalculations.Remove(calc);
        }