コード例 #1
0
ファイル: SoundConfig.cs プロジェクト: adambyram/pimaker
 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
ファイル: SoundConfig.cs プロジェクト: gmorkvenas/pimaker
 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;
 }