コード例 #1
0
        //폼을 닫으면 호출하는 메소드
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            //설정값을 저장한다.
            Settings.SetSetting("Model", model_textbox.Text);
            Settings.SetSetting("Region", region_textbox.Text);
            Settings.SetSetting("BinaryNature", binary_checkbox.Checked.ToString());
            Settings.SetSetting("AutoDecrypt", autoDecrypt_checkbox.Checked.ToString());

            //다운로드 일시정지 필드를 true로 한다.
            PauseDownload = true;

            //모듈을 메모리에서 내리고, 로그를 파일로 저장한다.
            Imports.FreeModule();
            Logger.SaveLog();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: xuan2261/SamFirm-Source
 private void Form1_Close(object sender, EventArgs e)
 {
     Settings.SetSetting("Model", this.model_textbox.Text.ToUpper());
     Settings.SetSetting("Region", this.region_textbox.Text.ToUpper());
     Settings.SetSetting("PDAVer", this.pda_textbox.Text);
     Settings.SetSetting("CSCVer", this.csc_textbox.Text);
     Settings.SetSetting("PHONEVer", this.phone_textbox.Text);
     Settings.SetSetting("AutoInfo", this.checkbox_auto.Checked.ToString());
     Settings.SetSetting("SaveFileDialog", this.SaveFileDialog.ToString());
     Settings.SetSetting("BinaryNature", this.binary_checkbox.Checked.ToString());
     Settings.SetSetting("CheckCRC", this.checkbox_crc.Checked.ToString());
     Settings.SetSetting("AutoDecrypt", this.checkbox_autodecrypt.Checked.ToString());
     this.PauseDownload = true;
     Thread.Sleep(100);
     Imports.FreeModule();
     Logger.SaveLog();
 }