Пример #1
0
 public static SystemController GetInstance()
 {
     if (_instance == null)
     {
         _instance = new SystemController();
     }
     return(_instance);
 }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());

            Controller = new SystemController();
        }
Пример #3
0
 public MainForm()
 {
     InitializeComponent();
     messageLabel.Text = string.Empty;
     _controller       = SystemController.GetInstance();
 }