//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { nativeFolderBrowser01 = (NXOpen.BlockStyler.FolderSelection)theDialog.TopBlock.FindBlock("nativeFolderBrowser01"); group0 = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group0"); } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }
//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { bodySelect0 = (NXOpen.BlockStyler.BodyCollector)theDialog.TopBlock.FindBlock("bodySelect0"); nativeFolderBrowser0 = (NXOpen.BlockStyler.FolderSelection)theDialog.TopBlock.FindBlock("nativeFolderBrowser0"); string0 = (NXOpen.BlockStyler.StringBlock)theDialog.TopBlock.FindBlock("string0"); } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }
//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { group0 = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group0"); list_postName = (NXOpen.BlockStyler.ListBox)theDialog.TopBlock.FindBlock("list_postName"); nativeFileBrowser_post = (NXOpen.BlockStyler.FileSelection)theDialog.TopBlock.FindBlock("nativeFileBrowser_post"); group1 = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group1"); string_outfile = (NXOpen.BlockStyler.StringBlock)theDialog.TopBlock.FindBlock("string_outfile"); string_lastName = (NXOpen.BlockStyler.StringBlock)theDialog.TopBlock.FindBlock("string_lastName"); nativeFolderBrowser_outpath = (NXOpen.BlockStyler.FolderSelection)theDialog.TopBlock.FindBlock("nativeFolderBrowser_outpath"); group = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group"); string_Unit = (NXOpen.BlockStyler.StringBlock)theDialog.TopBlock.FindBlock("string_Unit"); toggle_showIt = (NXOpen.BlockStyler.Toggle)theDialog.TopBlock.FindBlock("toggle_showIt"); group2 = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group2"); list_ncfiles = (NXOpen.BlockStyler.ListBox)theDialog.TopBlock.FindBlock("list_ncfiles"); button_output = (NXOpen.BlockStyler.Button)theDialog.TopBlock.FindBlock("button_output"); //------------------------------------------------------------------------------ //Registration of ListBox specific callbacks //------------------------------------------------------------------------------ //list_postName.SetAddHandler(new NXOpen.BlockStyler.ListBox.AddCallback(AddCallback)); //list_postName.SetDeleteHandler(new NXOpen.BlockStyler.ListBox.DeleteCallback(DeleteCallback)); //list_ncfiles.SetAddHandler(new NXOpen.BlockStyler.ListBox.AddCallback(AddCallback)); //list_ncfiles.SetDeleteHandler(new NXOpen.BlockStyler.ListBox.DeleteCallback(DeleteCallback)); //------------------------------------------------------------------------------ } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }
//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { group = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group"); treeElectrode = (NXOpen.BlockStyler.Tree)theDialog.TopBlock.FindBlock("treeElectrode"); group1 = (NXOpen.BlockStyler.Group)theDialog.TopBlock.FindBlock("group1"); file = (NXOpen.BlockStyler.FolderSelection)theDialog.TopBlock.FindBlock("file"); toggleShops = (NXOpen.BlockStyler.Toggle)theDialog.TopBlock.FindBlock("toggleShops"); //------------------------------------------------------------------------------ //Registration of Treelist specific callbacks //------------------------------------------------------------------------------ //treeElectrode.SetOnExpandHandler(new NXOpen.BlockStyler.Tree.OnExpandCallback(OnExpandCallback)); //treeElectrode.SetOnInsertColumnHandler(new NXOpen.BlockStyler.Tree.OnInsertColumnCallback(OnInsertColumnCallback)); //treeElectrode.SetOnInsertNodeHandler(new NXOpen.BlockStyler.Tree.OnInsertNodeCallback(OnInsertNodecallback)); //treeElectrode.SetOnDeleteNodeHandler(new NXOpen.BlockStyler.Tree.OnDeleteNodeCallback(OnDeleteNodecallback)); //treeElectrode.SetOnPreSelectHandler(new NXOpen.BlockStyler.Tree.OnPreSelectCallback(OnPreSelectcallback)); treeElectrode.SetOnSelectHandler(new NXOpen.BlockStyler.Tree.OnSelectCallback(OnSelectcallback)); //treeElectrode.SetOnStateChangeHandler(new NXOpen.BlockStyler.Tree.OnStateChangeCallback(OnStateChangecallback)); //treeElectrode.SetToolTipTextHandler(new NXOpen.BlockStyler.Tree.ToolTipTextCallback(ToolTipTextcallback)); //treeElectrode.SetColumnSortHandler(new NXOpen.BlockStyler.Tree.ColumnSortCallback(ColumnSortcallback)); //treeElectrode.SetStateIconNameHandler(new NXOpen.BlockStyler.Tree.StateIconNameCallback(StateIconNameCallback)); //treeElectrode.SetOnBeginLabelEditHandler(new NXOpen.BlockStyler.Tree.OnBeginLabelEditCallback(OnBeginLabelEditCallback)); //treeElectrode.SetOnEndLabelEditHandler(new NXOpen.BlockStyler.Tree.OnEndLabelEditCallback(OnEndLabelEditCallback)); //treeElectrode.SetOnEditOptionSelectedHandler(new NXOpen.BlockStyler.Tree.OnEditOptionSelectedCallback(OnEditOptionSelectedCallback)); //treeElectrode.SetAskEditControlHandler(new NXOpen.BlockStyler.Tree.AskEditControlCallback(AskEditControlCallback)); //treeElectrode.SetOnMenuHandler(new NXOpen.BlockStyler.Tree.OnMenuCallback(OnMenuCallback));; //treeElectrode.SetOnMenuSelectionHandler(new NXOpen.BlockStyler.Tree.OnMenuSelectionCallback(OnMenuSelectionCallback));; //treeElectrode.SetIsDropAllowedHandler(new NXOpen.BlockStyler.Tree.IsDropAllowedCallback(IsDropAllowedCallback));; //treeElectrode.SetIsDragAllowedHandler(new NXOpen.BlockStyler.Tree.IsDragAllowedCallback(IsDragAllowedCallback));; //treeElectrode.SetOnDropHandler(new NXOpen.BlockStyler.Tree.OnDropCallback(OnDropCallback));; //treeElectrode.SetOnDropMenuHandler(new NXOpen.BlockStyler.Tree.OnDropMenuCallback(OnDropMenuCallback)); //treeElectrode.SetOnDefaultActionHandler(new NXOpen.BlockStyler.Tree.OnDefaultActionCallback(OnDefaultActionCallback)); //------------------------------------------------------------------------------ } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }