//when form load do next: private void addInForm_Load(object sender, EventArgs e) { buttonTree1.IndicatorOnImage = var_es._imgs[19]; buttonTree1.IndicatorOffImage = var_es._imgs[20]; buttonTree1.DeleteBTNImage = var_es._imgs[12]; buttonTree1.CustomizeBTNImage = var_es._imgs[18]; buttonTree1.delToolTip = "Delete"; buttonTree1.customToolTip = "Customize"; var_es.feature_list = new List <Feature>(); form = this; try { if (partDef.Features.ExtendFeatures.Count != 0) { Del(); } var sketch = partDef.Sketches.Add(partDef.WorkPlanes[3]); sketch.Name = "Features"; } catch { } }
public void Form_Create() { addInForm frm = new addInForm(); frm.Show(); }