Esempio n. 1
0
        /// <param name="binder"></param>
        public EventsFrm(IBinder binder)
        {
            InitializeComponent();

            this.binder = binder;
            inspector   = new Inspector(binder.Bootloader);
            logic       = new Logic.Events(binder.Bootloader);

            textEditor.codeCompletionInit(inspector, new MSBuild.Parser(binder.Bootloader.Env, binder.Bootloader.UVariable));

            Icon = Resource.Package_32;
            toolTip.SetToolTip(pictureBoxWarnWait, Resource.StringWarnForWaiting);

            #if DEBUG
            this.Text                       = String.Format("{0} [Debug version]", Settings.APP_NAME);
            toolStripMenuDebugMode.Checked  = true;
            toolStripMenuDebugMode.Enabled  = false;
            toolStripMenuVersion.Text       = String.Format("based on {0}", Version.branchSha1);
            #else
            if(Version.branchName.ToLower() != "releases") {
                this.Text = String.Format("{0}  [Unofficial release]", Settings.APP_NAME);
            }
            toolStripMenuVersion.Text = String.Format("v{0} [ {1} ]", Version.numberString, Version.branchSha1);
            #endif

            btnApply.Location = new Point((statusStrip.Location.X - btnApply.Width) - 10, btnApply.Location.Y);

            //TODO: it was before with original dataGridView... need to check with DataGridViewExt and move it inside if still needed
            foreach(Control ctrl in Util.getControls(this, c => c.GetType() == typeof(DataGridViewExt))) {
                Util.fixDGVRowHeight((DataGridViewExt)ctrl); // solves problem with the height property
            }
        }
Esempio n. 2
0
        /// <param name="binder"></param>
        public EventsFrm(IBinder binder)
        {
            InitializeComponent();

            this.binder = binder;
            inspector   = new Inspector(binder.Bootloader);
            logic       = new Logic.Events(binder.Bootloader);

            textEditor.codeCompletionInit(inspector);

            Icon = Resource.Package_32;
            toolTip.SetToolTip(pictureBoxWarnWait, Resource.StringWarnForWaiting);

            #if DEBUG
            this.Text                       = String.Format("{0} [Debug version]", Settings.APP_NAME);
            toolStripMenuDebugMode.Checked  = true;
            toolStripMenuDebugMode.Enabled  = false;
            toolStripMenuVersion.Text       = String.Format("based on {0}", Version.branchSha1);
            #else
            if(Version.branchName.ToLower() != "releases") {
                this.Text = String.Format("{0}  [Unofficial release]", Settings.APP_NAME);
            }
            toolStripMenuVersion.Text = String.Format("v{0} [ {1} ]", Version.numberString, Version.branchSha1);
            #endif

            btnApply.Location = new Point((statusStrip.Location.X - btnApply.Width) - 10, btnApply.Location.Y);

            // Fixes for dataGridView component with the height property
            Util.fixDGVRowHeight(dgvOWP);
            Util.fixDGVRowHeight(dgvActions);
            Util.fixDGVRowHeight(dgvCEFilters);
            Util.fixDGVRowHeight(dgvEnvCmd);
            Util.fixDGVRowHeight(dgvOperations);
        }