Esempio n. 1
0
        public FusePanel(XmlElement xEle, string fuseBox, FuseCalculator owner)
            : this()
        {
            this.owner = owner;

            string fuseName = xEle.Name.ToLowerInvariant().Trim();

            typeOfFuse = GetTypeOfFuseFromName(fuseName);

            txtInfo.Text  = "Checked = Burnt = 0" + Environment.NewLine;
            txtInfo.Text += GetInfoXMLText(xEle);

            fuseReset = 0xFF;

            fuseReset = FillCheckListAndGetReset(typeOfFuse, xEle);

            FillDictionaries(xEle);

            FillControls();

            fuseVal = MatchAVRDUDEArgs(fuseBox, typeOfFuse, fuseReset);

            SetCheckListWithInt(fuseVal);

            txtManualHex.Text = fuseVal.ToString("X2");

            disablePresetChangeEvent = false;

            ManualEvent(null, null);
        }
        private void btnFuseTool_Click(object sender, EventArgs e)
        {
            TryKill();

            burnerPanel.FormToProj();

            FuseCalculator fc = new FuseCalculator(project);

            fc.ShowDialog();

            burnerPanel.ProjToForm();
        }
Esempio n. 3
0
        public FusePanel(XmlElement xEle, string fuseBox, FuseCalculator owner)
            : this()
        {
            this.owner = owner;

            string fuseName = xEle.Name.ToLowerInvariant().Trim();

            typeOfFuse = GetTypeOfFuseFromName(fuseName);

            txtInfo.Text = "Checked = Burnt = 0" + Environment.NewLine;
            txtInfo.Text += GetInfoXMLText(xEle);

            fuseReset = 0xFF;

            fuseReset = FillCheckListAndGetReset(typeOfFuse, xEle);

            FillDictionaries(xEle);

            FillControls();

            fuseVal = MatchAVRDUDEArgs(fuseBox, typeOfFuse, fuseReset);

            SetCheckListWithInt(fuseVal);

            txtManualHex.Text = fuseVal.ToString("X2");

            disablePresetChangeEvent = false;

            ManualEvent(null, null);
        }
Esempio n. 4
0
        private void btnFuseTool_Click(object sender, EventArgs e)
        {
            TryKill();

            burnerPanel.FormToProj();

            FuseCalculator fc = new FuseCalculator(project);
            fc.ShowDialog();

            burnerPanel.ProjToForm();
        }