using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vlimport { public class Operations : IEnumerable { //public Operations[] operations; ArrayList operations = new ArrayList(); IEnumerator IEnumerable.GetEnumerator() { return operations.GetEnumerator(); } public Operations(string operNum, string operName) { OperNum = operNum; OperName = operName; } public Operations() { } private string operNum; public string OperNum { get => operNum; set => operNum = value; } private string operName; public string OperName { get => operName; set => operName = value; } public void Add(string OperNum, string OperName) { operations.Add(new Operations(operNum, operName)); } public override string ToString() { return operNum + " " + operName; } } }