コード例 #1
0
        private void Prop_Click(object sender, EventArgs e)
        {
            CmpProperties prop = new CmpProperties();

            prop.Component = Component;
            if (prop.ShowDialog() == DialogResult.OK)
            {
                modified = true;
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: Filip83/kicad-lib-utils
        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;
                }
            }
        }