Beispiel #1
0
        //загрузить результат из истории
        public void LoadHistory(int index)
        {
            //если результата нет в истории - ничего не делать
            if (index >= history.Count())
            {
                return;
            }

            //иначе загрузить результат
            Conver_Record historyRecord = history.GetRecord(index);

            pIn           = historyRecord.p1;
            pOut          = historyRecord.p2;
            editor.number = historyRecord.number1;
            editor.result = historyRecord.number2;
        }
Beispiel #2
0
        //Добавление записи
        public void AddRecord(int p1, int p2, string n1, string n2)
        {
            Conver_Record newRecord = new Conver_Record(p1, p2, n1, n2);

            historyList.Add(newRecord);
        }