public static SystemController GetInstance() { if (_instance == null) { _instance = new SystemController(); } return(_instance); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); Controller = new SystemController(); }
public MainForm() { InitializeComponent(); messageLabel.Text = string.Empty; _controller = SystemController.GetInstance(); }