public ZoneServerListenerService(Button btnStart, Button btnDisconnect) { instance = this; _mainFrm = Globals.mainFrm; _pkShoutService = Globals.PKShoutService; _btnStart = (btnStart != null ? btnStart : null); _btnDisconnect = (btnDisconnect != null ? btnDisconnect : null); }
public MainServerListenerService(MainFrm _main, PKShoutService _PKshoutService, Button btnStart, Button btnDisconnect) { instance = this; _mainFrm = _main; _pkShoutService = _PKshoutService; _btnStart = (btnStart != null ? btnStart : null); _btnDisconnect = (btnDisconnect != null ? btnDisconnect : null); }
private void Initilize() { Globals.mainFrm = this; _pkService = new PKShoutService(btn_PVPService_Start, btn_PVPService_Stop); _msListen = new MainServerListenerService(this, _pkService, btnMSLogServerStart, btnMSLogServerClose); Globals.LoginLogService = _LoginManager = new LoginLogManager(btnLoginlogServiceStart, btnLoginlogServiceClose); _zoneServerListenerService = new ZoneServerListenerService(btnZSGameLogServiceStart, btnZSGameLogServiceClose); _tcp_MainServer = new TCP_MainServer(this, btnMSClientStart, btnMSClientClose); _as = new AnnouncementService(as_Send_Timer, AS_Msg_List, btn_AS_Service_Start, btn_AS_Service_Close); LoadMaps(); }