public void Connect(MineAdmin a) { this.servConn = new RCONProtocol(this.Address, this.Port, this.RconPassword); this.servConn.Connect(); this.servConn.OnData += new Action<string,string>(a.ServerDataReceived); this.servConn.OnError += new Action<string>(a.ServerError); }
public MainForm(MineAdmin backend) { this.backend = backend; this.EventQueue = new Queue<KeyValuePair<MineAction, object[]>>(); this.EventHandle = new ManualResetEvent(false); this.Load += new EventHandler(MainForm_Load); this.FormClosed += new FormClosedEventHandler(MainForm_FormClosed); InitializeComponent(); this.tvServers.NodeMouseClick += new TreeNodeMouseClickEventHandler(tvServers_NodeMouseClick); }