private void MainPage_Load(object sender, EventArgs e) { m_ServerConfigPath = new StringBuilder(Directory.GetCurrentDirectory()).Append(m_ServerConfigRelativePath).ToString(); m_ClientConfigPath = new StringBuilder(Directory.GetCurrentDirectory()).Append(m_ClientConfigRelativePath).ToString(); using (var file = System.IO.File.OpenRead("Config.bin")) { MainPage.m_ConfigPath = ProtoBuf.Serializer.Deserialize <Solution.ConfigPath>(file); } if (!LoadDll()) { Application.Exit(); } TSMI_SERVER_CONFIG_Click(sender, e); }
private void MainPage_Load(object sender, EventArgs e) { m_ServerConfigPath = new StringBuilder(Directory.GetCurrentDirectory()).Append(m_ServerConfigRelativePath).ToString(); m_ClientConfigPath = new StringBuilder(Directory.GetCurrentDirectory()).Append(m_ClientConfigRelativePath).ToString(); using (var file = System.IO.File.OpenRead("Config.bin")) { MainPage.m_ConfigPath = ProtoBuf.Serializer.Deserialize<Solution.ConfigPath>(file); } if (!LoadDll()) { Application.Exit(); } TSMI_SERVER_CONFIG_Click(sender, e); }