Example #1
0
        internal SwModelViewTab(ModelViewTabCreator <TControl> ctrlCreator,
                                ModelViewManager modelViewManager, SwDocument doc, ISwApplication app, IXLogger logger) : base(doc, app, logger)
        {
            m_CtrlCreator = ctrlCreator;

            m_ModelViewMgr = modelViewManager;
        }
    //상세정보창 Update
    public void updateDetailInfo(int _selected_unit_idx)
    {
        selected_unit_idx = _selected_unit_idx;

        if (selectedMenu == menu_type.SERVANT)
        {
            updateServantInfo(ServantList[selected_unit_idx]);
        }
        else if (selectedMenu == menu_type.MONSTER)
        {
            if (MonsterList != null)
            {
                updateMonsterInfo(MonsterList[selected_unit_idx]);
            }
            else
            {
                updateMonsterInfo(null);
                return;
            }
        }

        if (ModelViewManager.checkInst())
        {
            ModelViewManager.Inst.ChangeSelectedUnitModel();
        }
    }
Example #3
0
        public ManagerWindow(UIApplication uiapp, ModelManagerMode mode)
        {
            try
            {
                m_app  = uiapp;
                m_doc  = m_app.ActiveUIDocument.Document;
                m_mode = mode;

                InitializeComponent();

                ControlUI(mode);

                comboBoxViewBy.Items.Add("Show Sheets");
                comboBoxViewBy.Items.Add("Show View Types");
                comboBoxViewBy.SelectedIndex = 0;

                if (m_mode == ModelManagerMode.ProjectReplication)
                {
                    projectView         = new ProjectViewManager(m_app); //get drafting views info
                    modelInfoDictionary = projectView.ModelInfoDictionary;
                    if (projectView.VerifiedUser)
                    {
                        DisplayDocuments();
                    }
                    else
                    {
                        MessageBox.Show("The Model Manager provided by HOK will be no longer available.\nPlease contact the software provider to exetend the license.", "Account Not Verified", MessageBoxButton.OK, MessageBoxImage.Warning);
                    }

                    this.Title = "HOK Model Manager - Project Replication v." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
                }
                else if (m_mode == ModelManagerMode.ModelBuilder)
                {
                    modelView  = new ModelViewManager(m_app);
                    this.Title = "HOK Model Manager - Model Builder v." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Failed to initialize Model Manager.\n" + ex.Message, "Model Manager", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
Example #4
0
 internal ModelViewTabCreator(ModelViewManager modelViewMgr, IServiceProvider svcProvider)
 {
     m_ModelViewMgr = modelViewMgr;
     m_SvcProvider  = svcProvider;
     m_CtrlProvider = m_SvcProvider.GetService <IModelViewControlProvider>();
 }
 internal FeatureManagerTabCreator(ModelViewManager modelViewMgr, IServiceProvider svcProvider)
 {
     m_ModelViewMgr = modelViewMgr;
     m_SvcProvider  = svcProvider;
     m_TabProvider  = m_SvcProvider.GetService <IFeatureManagerTabControlProvider>();
 }