Exemple #1
0
        //сохранение параметров сессии
        private void SavePrintSession()
        {
            m_PrintSession = new PrintSession();

            // m_PrintSession.CurrentQrCode = m_CurrentPrintQrCode;
            m_PrintSession.CollumnsCount        = QrPrintColumsTrack.Value;
            m_PrintSession.QrCodeSize           = QrSizetrackBar.Value;
            m_PrintSession.SizeBeetweenCollumns = SizeBeetweenQrTrack.Value;
            m_PrintSession.SerialCopy           = (int)SerialCopyNumericUpDown.Value;
            m_PrintSession.DX = (int)LeftOffsetNumeric.Value;
            m_PrintSession.DY = (int)UpOffsetNumeric.Value;
            if (OncePrintingRadioBtn.Checked)
            {
                m_PrintSession.CheckedBox = 0;
            }
            if (SerialPrintingRadioBtn.Checked)
            {
                m_PrintSession.CheckedBox = 1;
            }
            if (SerialPrintingSerialRadioBtn.Checked)
            {
                m_PrintSession.CheckedBox = 2;
            }
            if (CopyOfPagesRadioBtn.Checked)
            {
                m_PrintSession.CheckedBox = 3;
            }

            Functions.SaveConfig(m_PrintSession, "printsession.qrc");
        }
Exemple #2
0
 /// <summary>
 /// инициализация конфигурации
 /// </summary>
 private void InitConfiguration()
 {
     m_AppConfig    = (AppConfig)Functions.LoadConfig();
     m_PrintSession = (PrintSession)Functions.LoadConfig("printsession.qrc");
     if (m_PrintSession != null)
     {
         LoadPrintSession();
     }
     if (m_AppConfig == null)
     {
         m_AppConfig = new AppConfig();
         SaveFormParametrs();
     }
     else
     {
         LoadFormParametrs();
         m_ServerIP = m_AppConfig.ServerIp;
     }
 }