コード例 #1
0
        public void Close(bool bForce = true)
        {
            if (stop != null)
            {
                stop.DoStop();
            }
#if NO
            this.eventClose.Set();
            Stopped = true;
#endif
            this.StopThread(bForce);
        }
コード例 #2
0
ファイル: EaccForm.cs プロジェクト: zhangandding/dp2
        private void EaccForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (stop != null)                // 脱离关联
            {
                stop.Style = StopStyle.None; // 需要强制中断
                stop.DoStop();

                stop.Unregister();      // 和容器关联
                stop = null;
            }

            if (this.MainForm != null && this.MainForm.AppInfo != null)
            {
                MainForm.AppInfo.SetString(
                    "eacc_form",
                    "unihan_filename",
                    this.textBox_unihanFilenames.Text);
                MainForm.AppInfo.SetString(
                    "eacc_form",
                    "e2u_filename",
                    this.textBox_e2uFilename.Text);

                /*
                 * MainForm.applicationInfo.SetString(
                 *  "eacc_form",
                 *  "u2e_filename",
                 *  this.textBox_u2eFilename.Text);
                 * */
            }
        }
コード例 #3
0
ファイル: DtlpLogForm.cs プロジェクト: zszqwe/dp2
        private void DtlpLogForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (stop != null)                // 脱离关联
            {
                stop.Style = StopStyle.None; // 需要强制中断
                stop.DoStop();

                stop.Unregister();      // 和容器关联
                stop = null;
            }

            if (this.MainForm != null && this.MainForm.AppInfo != null)
            {
                MainForm.AppInfo.SetString(
                    "dtlplogform",
                    "serveraddr",
                    this.textBox_serverAddr.Text);

                MainForm.AppInfo.SetString(
                    "dtlplogform",
                    "logfilename",
                    this.textBox_logFileName.Text);
            }

            channelArray.AskAccountInfo -= new AskDtlpAccountInfoEventHandle(channelArray_AskAccountInfo);
        }
コード例 #4
0
        public void Close(bool bForce = true)
        {
#if NO
            if (stop != null)
            {
                stop.DoStop();
            }
#endif
            this.StopThread(bForce);
        }
コード例 #5
0
ファイル: EaccForm.cs プロジェクト: zszqwe/dp2
        private void EaccForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (stop != null) // 脱离关联
            {
                stop.DoStop();

                stop.Unregister();      // 和容器关联
                stop = null;
            }


            MainForm.applicationInfo.SetString(
                "eacc_form",
                "unihan_filename",
                this.textBox_unihanFilenames.Text);
            MainForm.applicationInfo.SetString(
                "eacc_form",
                "e2u_filename",
                this.textBox_e2uFilename.Text);
            MainForm.applicationInfo.SetString(
                "eacc_form",
                "u2e_filename",
                this.textBox_u2eFilename.Text);
        }