コード例 #1
0
ファイル: MainPage.cs プロジェクト: LazyPlanet/TemplateEditor
        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);
        }
コード例 #2
0
ファイル: MainPage.cs プロジェクト: LazyPlanet/TemplateEditor
        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);
        }