コード例 #1
0
    private void OnStopBtnClick()
    {
        IModule module = SingletonMgr.ModuleMgr.GetModule(StringMgr.NetworkModuleName);

        if (module != null)
        {
            NetworkModule networkModule = (NetworkModule)module;
            networkModule.Stop();
        }
    }
コード例 #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if(flag)
         NetworkModule.Stop();
 }