Ejemplo n.º 1
0
 /// <summary>
 /// Saves the values in the form to the registry
 /// </summary>
 public void FormToReg()
 {
     repetierKey.SetValue("workdir", Workdir);
     repetierKey.SetValue("logEnabled", LogEnabled ? 1 : 0);
     repetierKey.SetValue("disableQualityReduction", DisableQualityReduction ? 1 : 0);
     repetierKey.SetValue("reduceToolbarSize", ReduceToolbarSize ? 1 : 0);
     RegMemory.SetInt("onOffImageOffset", checkRedGreenSwitch.Checked ? 2 : 0);
 }
Ejemplo n.º 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();
        }