Example #1
0
        private void Node_CustomizeButton_Click(object sender, EventArgs e)
        {
            Filler filler_from = new Filler(Side, ID, Position);

            filler_from.Owner = this;
            filler_from.ShowDialog();
        }
Example #2
0
 private void combo_right_DropDownClosed(object sender, EventArgs e)
 {
     try
     {
         if (NODE.comb_right_chamf.SelectedItem.ToString() == "no feature")
         {
         }
         if (NODE.comb_right_chamf.SelectedItem.ToString() == "Fillet")
         {
             try
             {
                 int id = (NODE.NodePosition + 1) * 2;
                 id -= 1;
                 if (!var_es.chamfer_list[id].IsNullorEmpty())
                 {
                     addInForm.NODES[ID].RemoveAt(var_es.chamfer_list[id].Node_Position);
                     addInForm.nodes.RemoveAt(var_es.chamfer_list[id].Node_Position);
                     addInForm.buttonTree1.ReLoad();
                     var_es.chamfer_list[id] = new chamf();
                 }
             }
             catch { }
             Filler filler_from = new Filler('r', NODE.NodePosition);
             filler_from.Owner = this;
             filler_from.ShowDialog();
             if (!Filler.canceled)
             {
                 addInForm.buttonTree1.ReLoad();
                 addInForm.NODES[addInForm.NODES.Count - 1].comb_right_chamf.SelectedItem = "Fillet";
             }
         }
         if (NODE.comb_right_chamf.SelectedItem.ToString() == "Chamfer")
         {
             try
             {
                 int id = (NODE.NodePosition + 1) * 2;
                 id -= 1;
                 if (!var_es.chamfer_list[id].IsNullorEmpty())
                 {
                     addInForm.NODES[ID].RemoveAt(var_es.chamfer_list[id].Node_Position);
                     addInForm.nodes.RemoveAt(var_es.chamfer_list[id].Node_Position);
                     addInForm.buttonTree1.ReLoad();
                     var_es.chamfer_list[id] = new chamf();
                 }
             }
             catch { }
             chamfer chamf_foorm = new chamfer('r', NODE.NodePosition);
             chamf_foorm.Owner = this;
             chamf_foorm.ShowDialog();
             if (!chamfer.canceled)
             {
                 addInForm.buttonTree1.ReLoad();
                 addInForm.NODES[addInForm.NODES.Count - 1].comb_right_chamf.SelectedItem = "Chamfer";
             }
         }
     }
     catch (Exception) { MessageBox.Show("You have to change somethig"); }
 }