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"); }
public CommandForm(ConnectionServer server) { InitializeComponent(); _server = server; }