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(); }