Esempio n. 1
0
        private void Prop_Click(object sender, EventArgs e)
        {
            CmpProperties prop = new CmpProperties();

            prop.Component = Component;
            if (prop.ShowDialog() == DialogResult.OK)
            {
                modified = true;
            }
        }
Esempio n. 2
0
        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;
                }
            }
        }