38 lines
736 B
C#
38 lines
736 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Lab1
|
|||
|
{
|
|||
|
class Controller
|
|||
|
{
|
|||
|
private View view;
|
|||
|
|
|||
|
// Геттеры и сеттеры для view
|
|||
|
public View View
|
|||
|
{
|
|||
|
get { return view; }
|
|||
|
set { view = value; }
|
|||
|
}
|
|||
|
|
|||
|
public Controller()
|
|||
|
{
|
|||
|
View = new View();
|
|||
|
View.Show();
|
|||
|
}
|
|||
|
|
|||
|
public Controller(View view)
|
|||
|
{
|
|||
|
View = view;
|
|||
|
View.Show();
|
|||
|
}
|
|||
|
|
|||
|
static Controller()
|
|||
|
{
|
|||
|
Console.WriteLine("Вызыван статический конструктор Controller");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|