コード例 #1
0
        /// <summary>
        /// The constructor of the class
        /// </summary>
        /// <param name="document">The current document been processed</param>
        /// <param name="isPart">If the current document is a part or not</param>
        public ServerCommSessionWindows(Model document)
        {
            // Initialize the window
            InitializeComponent();

            // Both buttons are disabled initially
            btCancel.IsEnabled = false;
            btOk.IsEnabled     = false;

            //
            lbResults.FontFamily = new System.Windows.Media.FontFamily("Consolas");

            // Create the communication session
            m_Session = new CommunicationSession();

            // Create the first assembly
            m_StartAssembly = new Assembly(document);

            // Initialize all the workers
            InitializeWorkers();
        }
コード例 #2
0
        /// <summary>
        /// The constructor of the class
        /// </summary>
        /// <param name="model">The current active model</param>
        public ExportSessionWindows()
        {
            // Initialize the window
            InitializeComponent();

            // Both buttons are disabled initially
            btCancel.IsEnabled = false;
            btOk.IsEnabled = false;

            //
            lbResults.FontFamily = new System.Windows.Media.FontFamily("Consolas");

            // Create the communication session
            m_Session = new CommunicationSession();

            // Create the first assembly
            var modeldoc = Dna.Application.UnsafeObject.IActiveDoc2;
            m_StartAssembly = new Assembly(new Model(modeldoc));

            // Initialize all the workers
            InitializeWorkers();
        }