Example #1
0
        private void ShowListAttributes_Click(object sender, EventArgs e)
        {
            int introw = 0;

            atributName = new List <string>();
            foreach (DataGridViewRow drow in dgListBlocks.Rows)
            {
                introw = drow.Index;
                bool flagValue = Convert.ToBoolean(drow.Cells[0].Value);
                if (flagValue == true)
                {
                    foreach (KeyValuePair <string, Autodesk.AutoCAD.DatabaseServices.ObjectId> item in classKoleksiBlok.KoleksiAtributBlokRefs)
                    {
                        atributName.Add(item.Key.ToString());
                    }
                    introw++;
                }
            }
            formListAttribut formlistAtr = new formListAttribut();

            formlistAtr.ShowDialog(this);
            formlistAtr.Dispose();
        }
Example #2
0
        private void buttonDaftarAtribut_Click(object sender, EventArgs e)
        {
            formListAttribut frmListatt = new formListAttribut();

            Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(frmListatt);
        }