예제 #1
0
 public void saveSettings()
 {
     RegMemory.SetString("soundPrintFinished", filePrintFinished);
     RegMemory.SetString("soundPrintPaused", filePrintPaused);
     RegMemory.SetString("soundError", fileError);
     RegMemory.SetString("soundSoundCommand", fileSoundCommand);
     RegMemory.SetBool("soundPrintFinishedEnabled", checkPrintFinished.Checked);
     RegMemory.SetBool("soundPrintPausedEnabled", checkPrintPaused.Checked);
     RegMemory.SetBool("soundErrorEnabled", checkError.Checked);
     RegMemory.SetBool("soundSoundCommandEnabled", checkSoundCommand.Checked);
 }
예제 #2
0
        private void Main_FormClosing(object sender, FormClosingEventArgs e)
        {
            conn.close();
            RegMemory.StoreWindowPos("mainWindow", this, true, true);
            RegMemory.SetInt("logSplitterDistance", splitLog.SplitterDistance);
            RegMemory.SetBool("logShow", toolShowLog.Checked);

            if (previewThread != null)
            {
                previewThread.Join();
            }
            conn.Destroy();
        }
 private void generateRaftCheckbox_CheckedChanged(object sender, EventArgs e)
 {
     Main.main.withRaftToolStripMenuItem1.Checked = generateRaftCheckbox.Checked;
     RegMemory.SetBool("generateRaft", this.generateSupportCheckbox.Checked);
 }