private void button1_Click(object sender, EventArgs e)
 {
     if (!swAddin.dmcLoaded || !swAddin.stlLoaded)
     {
         swAddin.loadFile();
     }
 }
 public void OnButtonPress(int id)
 {
     if (id == 2)
     {
         userAddin.loadFile();
     }
     else if (id == 3)
     {
         MessageBox.Show("Button 2 Pressed!");
     }
 }