示例#1
0
        public ConfiguratorForm(IExecutor exec)
        {
            this.exec = exec ?? throw new ArgumentNullException(nameof(exec));

            extcfg       = new Lazy <IExtCfg>(() => new FilterLineControl(this, exec));
            caller       = new Caller(exec.Config.SlnDir);
            pkgVer       = new PackageInfo(exec);
            confFormater = new SimpleConfFormater(exec);

            InitializeComponent();

            updaterInitName = tabUpdating.Text;
            Text            = GetVersionInfo();

            projectItems.Browse      =
                projectItems.OpenUrl = (string url) => url.OpenUrl();

            projectItems.NamespaceValidate = (string ns) => DDNS.IsValidNS(ns?.Trim());

            ShowFilterPanel();
            txtBuildInfo.Text = GetBuildInfo();

            RenderSlnFiles();
            comboBoxSln.SelectedIndex = 0;

            storage = new CfgStorage(exec, comboBoxStorage);
            storage.UpdateItem();

            projectItems.Set(null); // TODO: this only when no projects in solution and only when initial start
        }
示例#2
0
        public ConfiguratorForm(IExecutor exec)
        {
            this.exec = exec ?? throw new ArgumentNullException(nameof(exec));

            InitializeComponent();

            Text = ".NET DllExport";

#if PUBLIC_RELEASE
            Text += " - v" + WizardVersion.S_INFO;
#else
            Text += $" - Based on v{WizardVersion.S_NUM} {WizardVersion.S_REL} [{WizardVersion.BRANCH_SHA1}]";
#endif
#if DEBUG
            Text += " [ Debug ]";
#endif
            Text += " github.com/3F/DllExport";

            projectItems.Browse      =
                projectItems.OpenUrl = OpenUrl;

            projectItems.NamespaceValidate = (string ns) => {
                return(DDNS.IsValidNS(ns?.Trim()));
            };

            RenderSlnFiles();
            comboBoxSln.SelectedIndex = 0;

            storage = new CfgStorage(exec, comboBoxStorage);
            storage.UpdateItem();

            Load += (object sender, EventArgs e) => { TopMost = false; TopMost = true; };
        }
示例#3
0
        private void RenderProjects(string sln)
        {
            if (String.IsNullOrWhiteSpace(sln))
            {
                return;
            }

            exec.ActiveSlnFile = sln;
            storage.UpdateItem();

            toolTipMain.SetToolTip(comboBoxSln, sln);

            GetProjects(sln).ForEach(prj => projectItems.Add(prj));
        }
示例#4
0
        private void RenderProjects(string sln)
        {
            if (string.IsNullOrWhiteSpace(sln))
            {
                return;
            }

            exec.ActiveSlnFile = sln;
            storage.UpdateItem();

            toolTipMain.SetToolTip(comboBoxSln, sln);

            RenderListOfProjects(GetProjects(sln));
        }