Esempio n. 1
0
        public CCollectionEditor() : base()
        {
            this.SuspendLayout();

            this.BackColor   = Color.White;
            this.BorderStyle = BorderStyle.FixedSingle;

            _eCollection        = new TreeView();
            _eCollection.Name   = "_eCollection";
            _eCollection.Anchor = ((AnchorStyles)((
                                                      (AnchorStyles.Top | AnchorStyles.Left) |
                                                      (AnchorStyles.Right | AnchorStyles.Bottom)
                                                      )));
            _eCollection.Location = new Point(0, 0);
            _eCollection.Size     = new Size(
                this.ClientRectangle.Width,
                this.ClientRectangle.Height
                );
            _eCollection.BorderStyle = BorderStyle.None;
            _eCollection.ShowLines   = false;

            _IconList            = new ImageList();
            _IconList.ImageSize  = new Size(32, 32);
            _IconList.ColorDepth = ColorDepth.Depth32Bit;
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_folder_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_rpt_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_favorites_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_ReportCollection_32x32"));


            _eCollection.ImageList = _IconList;

            this.Controls.Add(_eCollection);

            this.ResumeLayout(false);

            _dlgAddReport = RsViewEngine.dlgAddReport;
            _dlgAddFolder = RsViewEngine.dlgAddFolder;
            //_dlgCreateCollection = RsViewEngine.dlgCreateCollection;
            _dlgOpenCollection = RsViewEngine.dlgOpenCollection;
            //_dlgSaveCollection = RsViewEngine.dlgSaveCollection;

            RsViewEngine.Favorites.GUITreeView = _eCollection;

            _eCollection.DoubleClick += new EventHandler(this.EH_DblClickEditor);
        }
Esempio n. 2
0
        public CCollectionEditor()
            : base()
        {
            this.SuspendLayout();

            this.BackColor = Color.White;
            this.BorderStyle = BorderStyle.FixedSingle;

            _eCollection = new TreeView();
            _eCollection.Name = "_eCollection";
            _eCollection.Anchor = ((AnchorStyles)((
                        (AnchorStyles.Top | AnchorStyles.Left) |
                        (AnchorStyles.Right | AnchorStyles.Bottom)
                    )));
            _eCollection.Location = new Point(0, 0);
            _eCollection.Size = new Size(
                        this.ClientRectangle.Width,
                        this.ClientRectangle.Height
                    );
            _eCollection.BorderStyle = BorderStyle.None;
            _eCollection.ShowLines = false;

            _IconList = new ImageList();
            _IconList.ImageSize = new Size(32, 32);
            _IconList.ColorDepth = ColorDepth.Depth32Bit;
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_folder_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_rpt_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_favorites_32x32"));
            _IconList.Images.Add((Bitmap)RsViewEngine.Resources.GetObject("gfx_ReportCollection_32x32"));

            _eCollection.ImageList = _IconList;

            this.Controls.Add(_eCollection);

            this.ResumeLayout(false);

            _dlgAddReport = RsViewEngine.dlgAddReport;
            _dlgAddFolder = RsViewEngine.dlgAddFolder;
            //_dlgCreateCollection = RsViewEngine.dlgCreateCollection;
            _dlgOpenCollection = RsViewEngine.dlgOpenCollection;
            //_dlgSaveCollection = RsViewEngine.dlgSaveCollection;

            RsViewEngine.Favorites.GUITreeView = _eCollection;

            _eCollection.DoubleClick += new EventHandler(this.EH_DblClickEditor);
        }
Esempio n. 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();
        }