Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();
            Application.ApplicationExit += ApplicationApplicationExit;

            _server = new ConnectionServer();
            _server.OnConnectionServerEvent += OnServerEvent;

            _client = ConnectionClientEx.Instance;
            _client.OnConnectionClientExEvent += OnClientEvent;

            tbDb.Text = DbManager.GetConnectionStatus() ? "connected" : "not connected";

            tbTime_1.Text = DateTime.Now.ToString("yyyy-MM-dd HH':'mm':'ss");
        }
Esempio n. 2
0
 public CommandForm(ConnectionServer server)
 {
     InitializeComponent();
     _server = server;
 }