public HomePageForm() { InitializeComponent(); _configService = new ConfigService(); config = _configService.ReadConfig(); label_server.Text = "服务器:" + ((config.ServerName ?? "").Length <= 0?"创世服":config.ServerName); _hnbcService = new HnbcService(config.ServerTag); }
public HomePageForm() { InitializeComponent(); _hnbcService = new HnbcService(); _configService = new ConfigService(); }