Example #1
0
        public void Close(bool bForce = true)
        {
            if (stop != null)
            {
                stop.DoStop();
            }
#if NO
            this.eventClose.Set();
            Stopped = true;
#endif
            this.StopThread(bForce);
        }
Example #2
0
        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);
                 * */
            }
        }
Example #3
0
        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);
        }
Example #4
0
        public void Close(bool bForce = true)
        {
#if NO
            if (stop != null)
            {
                stop.DoStop();
            }
#endif
            this.StopThread(bForce);
        }
Example #5
0
        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);
        }