Example #1
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 #2
0
 public void DoAddCollection()
 {
     RsCollectionControl.ImportCollection();
 }