private void Prop_Click(object sender, EventArgs e) { CmpProperties prop = new CmpProperties(); prop.Component = Component; if (prop.ShowDialog() == DialogResult.OK) { modified = true; } }
private void PropBtn_Click(object sender, EventArgs e) { CmpProperties prop = new CmpProperties(); int pos = PrimaryLibList.SelectedIndex; if (pos != -1) { KicadLibComponent selComp = FindComponentPrimary(PrimaryLibList.Items[pos].ToString()); prop.Component = selComp; if (prop.ShowDialog() == DialogResult.OK) { SaveBtn.Enabled = true; } } }