Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="restProxy"></param>
        public FormConfig(String sessionId)
        {
            try {
                InitializeComponent();

                this.sessionId = sessionId;
                this.restProxy = new WebPrintRestProxy(sessionId);
                this.GetOffsetConfig();
                this.UpdateControls(ConfigState.INIT);
                this.InitPrinters();

                if (Settings1.Default.PinkCb && Settings1.Default.LoggedIn)
                {
                    this.cbPink.Checked = true;
                }
                if (Settings1.Default.A4Checkbox && Settings1.Default.LoggedIn)
                {
                    this.cbWhite.Checked = true;
                }
                if (Settings1.Default.PPWithLogoCb && Settings1.Default.LoggedIn)
                {
                    this.cbPPWithLogo.Checked = true;
                }
            }
            catch (Exception ex) {
                LogException(ex);
            }
        }
Esempio n. 2
0
        public FormLogin()
        {
            InitializeComponent();

            if (Properties.Settings.Default.UserUid != string.Empty)
            {
                this.txtUserID.Text = Properties.Settings.Default.UserUid;
            }

            restProxy = new WebPrintRestProxy("");
        }
Esempio n. 3
0
 public FormPrint(String sessionId, PrinterConfiguration printerConfiguration)
 {
     try {
         InitializeComponent();
         this.sessionId              = sessionId;
         this.printerConfiguration   = printerConfiguration;
         this.restProxy              = new WebPrintRestProxy(sessionId);
         this.isPrintInitiated       = false;
         this.lblCurrentUser.Text    = Properties.Settings.Default.UserUid;
         this.lblLastLogin.Text      = Settings1.Default.LoggedInDateTime;
         this.lblPrintMediaDisp.Text = Settings1.Default.MediaSelected;
         waitHandle     = new AutoResetEvent(false);
         timer          = new System.Windows.Forms.Timer();
         timer.Interval = 5000;
         timer.Tick    += Timer_TickAsync;
         timer.Start();
     } catch (Exception ex) {
         LogException(ex);
     }
 }