Esempio n. 1
0
    public LiteExporterForm()
    {
        InitializeComponent();
        LoadingAnimation.Image = JointResolver.Properties.Resources.LoadAnimationNewLogo;
        Instance = this;
        LoadingAnimation.WaitOnLoad               = true;
        ExporterWorker.WorkerReportsProgress      = true;
        ExporterWorker.WorkerSupportsCancellation = true;
        ExporterWorker.DoWork             += ExporterWorker_DoWork;
        ExporterWorker.RunWorkerCompleted += ExporterWorker_RunWorkerCompleted;

        Shown += delegate(object sender, EventArgs e)
        {
            if (InventorManager.Instance == null)
            {
                MessageBox.Show("Couldn't detect a running instance of Inventor.");
                return;
            }

            InventorManager.Instance.UserInterfaceManager.UserInteractionDisabled = true;

            Exporting = true;
            OnStartExport();
            ExporterWorker.RunWorkerAsync();
        };

        FormClosing += delegate(object sender, FormClosingEventArgs e)
        {
            InventorManager.Instance.UserInterfaceManager.UserInteractionDisabled = false;
        };
    }
Esempio n. 2
0
        public SkeletonExporterForm()
        {
            InitializeComponent();

            FormClosing += delegate(object sender, FormClosingEventArgs e)
            {
                InventorManager.Instance.UserInterfaceManager.UserInteractionDisabled = false;
            };
            Shown += delegate(object sender, EventArgs e)
            {
                ExporterWorker.RunWorkerAsync();
            };
        }