示例#1
0
 public SoundConfig()
 {
     InitializeComponent();
     config = this;
     filePrintFinished = RegMemory.GetString("soundPrintFinished", filePrintFinished);
     filePrintPaused = RegMemory.GetString("soundPrintPaused", filePrintPaused);
     fileError = RegMemory.GetString("soundError", fileError);
     fileSoundCommand = RegMemory.GetString("soundSoundCommand", fileSoundCommand);
     checkPrintFinished.Checked = RegMemory.GetBool("soundPrintFinishedEnabled", checkPrintFinished.Checked);
     checkPrintPaused.Checked = RegMemory.GetBool("soundPrintPausedEnabled", checkPrintPaused.Checked);
     checkError.Checked = RegMemory.GetBool("soundErrorEnabled", checkError.Checked);
     checkSoundCommand.Checked = RegMemory.GetBool("soundSoundCommandEnabled", checkSoundCommand.Checked);
     translate();
     Main.main.languageChanged += translate;
 }
示例#2
0
 public SoundConfig()
 {
     InitializeComponent();
     config                     = this;
     filePrintFinished          = RegMemory.GetString("soundPrintFinished", filePrintFinished);
     filePrintPaused            = RegMemory.GetString("soundPrintPaused", filePrintPaused);
     fileError                  = RegMemory.GetString("soundError", fileError);
     fileSoundCommand           = RegMemory.GetString("soundSoundCommand", fileSoundCommand);
     checkPrintFinished.Checked = RegMemory.GetBool("soundPrintFinishedEnabled", checkPrintFinished.Checked);
     checkPrintPaused.Checked   = RegMemory.GetBool("soundPrintPausedEnabled", checkPrintPaused.Checked);
     checkError.Checked         = RegMemory.GetBool("soundErrorEnabled", checkError.Checked);
     checkSoundCommand.Checked  = RegMemory.GetBool("soundSoundCommandEnabled", checkSoundCommand.Checked);
     translate();
     Main.main.languageChanged += translate;
 }