This repository has been archived on 2022-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
dotnet-lab1/Lab1/Controller.cs

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");
}
}
}