using System;
using System.Collections.Generic;
using System.Text;
namespace STUD1
{
class Timetable
{
private int iD;
public int ID
{
get { return iD; }
set { iD = value; }
}
private int group;
public int Group
{
get { return group; }
set { group = value; }
}
private int date;
public int Date
{
get { return date; }
set { date = value; }
}
private int number;
public int Number
{
get { return number; }
set { number = value; }
}
private int time;
public int Time
{
get { return time; }
set { time = value; }
}
private int lesson;
public int Lesson
{
get { return lesson; }
set { lesson = value; }
}
private int aud;
public int Aud
{
get { return aud; }
set { aud = value; }
}
private int teacher;
public int Teacher
{
get { return teacher; }
set { teacher = value; }
}
private int lkPz;
public int LkPz
{
get { return lkPz; }
set { lkPz = value; }
}
}
}
Приложение Д
Класс «IntData»
using System;
using System.Collections.Generic;
using System.Text;
namespace STUD1
{
public class IntData
{
private int intValue;
public int IntValue
{
get { return intValue; }
set { intValue = value; }
}
public string StrValue
{
get { return intValue == 0 ? " " : intValue.ToString(); }
set { int.TryParse(value, out intValue); }
}
public IntData(int value)
{
intValue = value;
}
}
}