public SettingDialog()
        {
            InitializeComponent();

            this.GroupDefaultPath.Text = SettingDialogLang.GroupTitle;
            this.FrameworkLabel.Text   = SettingDialogLang.FrameworkLabel;
            this.DirectoryLabel.Text   = SettingDialogLang.DirectoryLabel;
            this.ButtonAccept.Text     = SettingDialogLang.ButtonAccept;
            this.ButtonCancel.Text     = SettingDialogLang.ButtonCancel;

            this.FrameworkBox.Text = IniManager.Read(Common.settingSection, Common.settingFramework, Common.SettingFilePath, Common.defaultFramework);
            this.DirectoryBox.Text = IniManager.Read(Common.settingSection, Common.settingDirectory, Common.SettingFilePath, Common.defaultDirectory);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get the fully-qualified path to the Crystal reports template file
        /// </summary>
        /// <param name="installDirIn">The root installation directory name</param>
        /// <param name="areaIn">The area name</param>
        /// <param name="versionIn">The version number</param>
        /// <param name="viewName">The name of the view</param>
        /// <returns>The fully-qualified path to the Crystal reports template file</returns>
        private string GetCrystalReportFileNameFromReportIniFile(string installDirIn, string areaIn, string versionIn, string viewName)
        {
            var        filenameOnly = string.Empty;
            var        iniFileName  = areaIn + "rpt.ini";
            var        iniPath      = Path.Combine(installDirIn, areaIn + versionIn, iniFileName);
            IniManager iniManager   = new IniManager(iniPath);

            if (iniManager.KeyExists(Constants.CRYSTALREPORTS_TEMPLATEFILE_INIKEY, viewName))
            {
                var reportTemplateNameFromIni = iniManager.Read(Constants.CRYSTALREPORTS_TEMPLATEFILE_INIKEY, viewName);
                filenameOnly = $"{reportTemplateNameFromIni}{Constants.REPORTEXTENSION}";
            }
            return(filenameOnly);
        }
Ejemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();

            // link localization resources
            LinkMainFormLocalization();

            // fill default framework path, project directory and command box
            string framework = IniManager.Read(Common.settingSection, Common.settingFramework, Common.SettingFilePath, Common.defaultFramework);
            string directory = IniManager.Read(Common.settingSection, Common.settingDirectory, Common.SettingFilePath, Common.defaultDirectory);

            this.FrameworkBox.Text = framework;
            this.DirectoryBox.Text = directory;
            string cocosFile  = string.Format("python {0}\\tools\\cocos2d-console\\bin\\cocos.py", framework);
            string cocosParam = string.Format("new <ProjectName> -p com.<Domain>.<Package> -l cpp -d {0}", directory);

            this.CommandBox.Text = cocosFile + ' ' + cocosParam;
        }