You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
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; |
|
} |
|
|
|
} |
|
|
|
|
|
}
|
|
|