コード例 #1
0
        public CavityLibraryEditCmd()
        {
            m_cavityLibraryEditForm = null;
            assembly = System.Reflection.Assembly.GetExecutingAssembly();
            FileInfo asmFile = new FileInfo(assembly.Location);

            deFaultpath = asmFile.DirectoryName + "\\CavityLibrary";
        }
コード例 #2
0
        public CavityLibraryEditDataForm(string codingname, string codingnumber, string pathname, string indexname, CavityLibraryEditForm form)
        {
            InitializeComponent();
            this.codingname         = codingname;
            this.codingnumber       = codingnumber;
            this.pathname           = pathname;
            this.indexname          = indexname;
            m_cavityLibraryEditForm = form;
            assembly = System.Reflection.Assembly.GetExecutingAssembly();
            FileInfo asmFile = new FileInfo(assembly.Location);

            deFaultpath = asmFile.DirectoryName + "\\CavityLibrary";
        }
コード例 #3
0
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

            //destroy the command dialog
            m_cavityLibraryEditForm.Hide();
            m_cavityLibraryEditForm.Dispose();
            m_cavityLibraryEditForm = null;

            m_buttonDefinition.Pressed = false;

            //m_commandIsRunning = false;
            base.StopCommand();
        }
コード例 #4
0
        public override void StartCommand()
        {
            base.StartCommand();

            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            m_cavityLibraryEditForm = new CavityLibraryEditForm(this);

            if (m_cavityLibraryEditForm != null)
            {
                m_cavityLibraryEditForm.Activate();
                m_cavityLibraryEditForm.TopMost       = true;
                m_cavityLibraryEditForm.ShowInTaskbar = false;
                m_cavityLibraryEditForm.Show();
                m_cavityLibraryEditForm.Text     = "修改元件";
                m_cavityLibraryEditForm.tb1.Text = deFaultpath;
                AddInformation();
            }
        }