Esempio n. 1
0
 //------------------------------------------------------------------------------
 //Callback Name: initialize_cb
 //------------------------------------------------------------------------------
 public void initialize_cb()
 {
     try
     {
         //tabControl = Snap.UI.Block.Group.GetBlock(theDialog,"tabControl");
         tabPage       = Snap.UI.Block.Group.GetBlock(theDialog, "tabPage");
         group5        = Snap.UI.Block.Group.GetBlock(theDialog, "group5");
         enum02        = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum02");
         group         = Snap.UI.Block.Group.GetBlock(theDialog, "group");
         bodySelect0   = Snap.UI.Block.SelectObject.GetBlock(theDialog, "bodySelect0");
         vector0       = Snap.UI.Block.SpecifyVector.GetBlock(theDialog, "vector0");
         group1        = Snap.UI.Block.Group.GetBlock(theDialog, "group1");
         enum0         = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum0");
         label01       = Snap.UI.Block.LabelBlock.GetBlock(theDialog, "label01");
         button0       = Snap.UI.Block.Button.GetBlock(theDialog, "button0");
         tabPage1      = Snap.UI.Block.Group.GetBlock(theDialog, "tabPage1");
         group2        = Snap.UI.Block.Group.GetBlock(theDialog, "group2");
         double0       = Snap.UI.Block.Double.GetBlock(theDialog, "double0");
         label0        = Snap.UI.Block.LabelBlock.GetBlock(theDialog, "label0");
         toggle0       = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle0");
         colorPicker0  = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker0");
         toggle01      = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle01");
         colorPicker01 = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker01");
         toggle02      = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle02");
         colorPicker02 = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker02");
         toggle03      = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle03");
         colorPicker03 = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker03");
         toggle04      = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle04");
         colorPicker04 = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker04");
         toggle05      = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle05");
         colorPicker05 = Snap.UI.Block.ColorPicker.GetBlock(theDialog, "colorPicker05");
         button01      = Snap.UI.Block.Button.GetBlock(theDialog, "button01");
         group4        = Snap.UI.Block.Group.GetBlock(theDialog, "group4");
         label02       = Snap.UI.Block.LabelBlock.GetBlock(theDialog, "label02");
         integer0      = Snap.UI.Block.Integer.GetBlock(theDialog, "integer0");
         label03       = Snap.UI.Block.LabelBlock.GetBlock(theDialog, "label03");
         integer01     = Snap.UI.Block.Integer.GetBlock(theDialog, "integer01");
         group3        = Snap.UI.Block.Group.GetBlock(theDialog, "group3");
         face_select0  = Snap.UI.Block.FaceCollector.GetBlock(theDialog, "face_select0");
         enum01        = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum01");
         button02      = Snap.UI.Block.Button.GetBlock(theDialog, "button02");
     }
     catch (Exception ex)
     {
         theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
     }
 }
Esempio n. 2
0
    //------------------------------------------------------------------------------
    //---------------------Block UI Styler Callback Functions--------------------------
    //------------------------------------------------------------------------------

    //------------------------------------------------------------------------------
    //Callback Name: initialize_cb
    //------------------------------------------------------------------------------
    public void initialize_cb()
    {
        try
        {
            selection0           = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selection0");
            toggleJiaju          = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleJiaju");
            selectionJiaju       = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectionJiaju");
            enum01               = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum01");
            groupRotation        = Snap.UI.Block.Group.GetBlock(theDialog, "groupRotation");
            enumRotation         = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enumRotation");
            pointAxis            = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointAxis");
            vector0              = Snap.UI.Block.SpecifyVector.GetBlock(theDialog, "vector0");
            expressionAngle      = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionAngle");
            toggleRotationMove   = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleRotationMove");
            toggleRotationPatter = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleRotationPatter");
            groupMove            = Snap.UI.Block.Group.GetBlock(theDialog, "groupMove");
            enum0                    = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum0");
            pointStart               = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointStart");
            pointEnd                 = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointEnd");
            enumSelectAxis           = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enumSelectAxis");
            expressionDistance       = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistance");
            expressionDistanceX      = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceX");
            expressionDistanceY      = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceY");
            expressionDistanceZ      = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceZ");
            toggleMoveRotation       = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleMoveRotation");
            toggleMovePatter         = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleMovePatter");
            group                    = Snap.UI.Block.Group.GetBlock(theDialog, "group");
            vectorPatter             = Snap.UI.Block.SpecifyVector.GetBlock(theDialog, "vectorPatter");
            expressionPatterSum      = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionPatterSum");
            expressionPatterDistance = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionPatterDistance");
        }
        catch (Exception ex)
        {
            //---- Enter your exception handling code here -----
            theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
        }
    }