Example #1
0
        public CRSReportViewerEmbedded()
        {
            opened        = false;
            _groupState   = false;
            _offline      = true;
            dlgSetupLogin = RsViewEngine.dlgSetupLogin;
            _dlgExport    = RsViewEngine.dlgExport;

            this.SuspendLayout();

            _lDisplay           = new Label();
            _lDisplay.BackColor = Color.White;
            _lDisplay.Location  = new Point(0, 0);
            _lDisplay.Size      = new Size(this.ClientRectangle.Width, this.ClientRectangle.Height);
            _lDisplay.Anchor    = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom);
            _lDisplay.Name      = "lDisplay";
            _lDisplay.Font      = RsViewEngine.TitleFont;
            _lDisplay.TextAlign = ContentAlignment.MiddleCenter;

            _ParamEditor               = new CRSParamEditor();
            _ParamEditor.Location      = new Point(0, 0);
            _ParamEditor.Size          = new Size(this.ClientRectangle.Width, this.ClientRectangle.Height);
            _ParamEditor.Anchor        = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom);
            _ParamEditor.Visible       = false;
            _ParamEditor.BackColor     = Color.White;
            _ParamEditor.HeaderColor   = ReportSmart.Controls.ControlProperties.ColorItemInBack();
            _ParamEditor.AcceptParams += ehParamsAccepted;

            this.Controls.Add(_lDisplay);
            this.Controls.Add(_ParamEditor);

            this.ResumeLayout();
            _Timer          = new System.Timers.Timer(1000);
            _Timer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            _Timer.Enabled  = false;

            _offlineTimer          = new System.Timers.Timer(1000);
            _offlineTimer.Enabled  = false;
            _offlineTimer.Elapsed += new ElapsedEventHandler(ehOfflineTimer);
        }
Example #2
0
        public CRSReportViewerEmbedded()
        {
            opened = false;
            _groupState = false;
            _offline = true;
            dlgSetupLogin = RsViewEngine.dlgSetupLogin;
            _dlgExport = RsViewEngine.dlgExport;

            this.SuspendLayout();

            _lDisplay = new Label();
            _lDisplay.BackColor = Color.White;
            _lDisplay.Location = new Point(0, 0);
            _lDisplay.Size = new Size(this.ClientRectangle.Width, this.ClientRectangle.Height);
            _lDisplay.Anchor = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom);
            _lDisplay.Name = "lDisplay";
            _lDisplay.Font = RsViewEngine.TitleFont;
            _lDisplay.TextAlign = ContentAlignment.MiddleCenter;

            _ParamEditor = new CRSParamEditor();
            _ParamEditor.Location = new Point(0, 0);
            _ParamEditor.Size = new Size(this.ClientRectangle.Width, this.ClientRectangle.Height);
            _ParamEditor.Anchor = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom);
            _ParamEditor.Visible = false;
            _ParamEditor.BackColor = Color.White;
            _ParamEditor.HeaderColor = ReportSmart.Controls.ControlProperties.ColorItemInBack();
            _ParamEditor.AcceptParams += ehParamsAccepted;

            this.Controls.Add(_lDisplay);
            this.Controls.Add(_ParamEditor);

            this.ResumeLayout();
            _Timer = new System.Timers.Timer(1000);
            _Timer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            _Timer.Enabled = false;

            _offlineTimer = new System.Timers.Timer(1000);
            _offlineTimer.Enabled = false;
            _offlineTimer.Elapsed += new ElapsedEventHandler(ehOfflineTimer);
        }
Example #3
0
        private static void buildUserInterface()
        {
            _DefFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            _TitleFont = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            _PwdFont = new System.Drawing.Font("Wingdings 2", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            _editFont = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));

            _dlgOpenRpt = new OpenFileDialog();
            //_dlgOpenCollection = new OpenFileDialog();
            //_dlgSaveCollection = new SaveFileDialog();
            _dlgExport = new SaveFileDialog();

            _AddReport = new CfAddReport();
            _dlgAddFolder = new CdlgAddFolder();
            //_dlgCreateCollection = new CdlgCreateCollection();
            _dlgSetupLogin = new CdlgSetupLogin();
            //_dlgSMTPProfile = new CdlgNewSMTPProfile();

            Locale.AddLocalizedControl(_dlgSetupLogin);
            Locale.AddLocalizedControl(_AddReport);
            #if DEMO
                        try {
                                long lVal = ReportSmart.Authorization.AppAuth.chkshwauthfrw(ReportSmart.Authorization.AppAuth.crdtstamp(new DateTime(2010, 5, 23), _YM, _MM, _DM), _YM, _MM, _DM, _PERIOD);
                                long lChkval = ReportSmart.Authorization.AppAuth.gnchkval(_YM, _MM, _DM, _PERIOD);
                                Math.Sqrt(lVal - lChkval);
                            } catch {
                                KillApplication();
                            }
            #endif
            Locale.AddLocalizedControl(_dlgAddFolder);
            //Locale.AddLocalizedControl(_dlgCreateCollection);
            Locale.AddLocalizedControl(_dlgSetupLogin);
            //Locale.AddLocalizedControl(_dlgSMTPProfile);

            //loadFavorites();
            _MainForm.InitializeForm();
            //loadCollections();

            RsCollectionControl.Initialize();

            //Locale.AddLocalizedControl(this);
            Locale.ApplyLocalization();
        }
Example #4
0
        private static void buildEmbeddedUserInterface()
        {
            _DefFont = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            _TitleFont = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            _PwdFont = new System.Drawing.Font("Wingdings 2", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));

            _dlgOpenRpt = new OpenFileDialog();
            _dlgOpenCollection = new OpenFileDialog();
            _dlgSaveCollection = new SaveFileDialog();
            _dlgExport = new SaveFileDialog();

            _dlgSetupLogin = new CdlgSetupLogin();
            _dlgSendMail = new CdlgSendMail();

            Locale.AddLocalizedControl(_dlgSetupLogin);
            Locale.AddLocalizedControl(_dlgSendMail);

            //Locale.AddLocalizedControl(this);
            Locale.ApplyLocalization();
        }