Exemplo n.º 1
0
        //@ => we have Tooltips
        //private void ApplicationEventsHint(object sender, EventArgs e)

        private void BuildAndPreview(bool preview)
        {
            ClearLog();
            if (_modified)
            {
                ActionSaveExecute(this, EventArgs.Empty);
            }
            string resourceIdentifier = Settings.Instance.AllowChangingResourceName ? _document.Application.ResourceName : TRibbonObject.ApplicationDefaultName;

            _buildPreviewHelper.ResourceIdentifier = resourceIdentifier;
            if (preview)
            {
                _buildPreviewHelper.ShowPreviewDialog(this);
            }
            else
            {
                this.Cursor = Cursors.WaitCursor;
                try
                {
                    _buildPreviewHelper.BuildRibbonFile(resourceIdentifier);
                }
                finally
                {
                    this.Cursor = Cursors.Default;
                }
            }
        }
Exemplo n.º 2
0
        //@ => we have Tooltips
        //private void ApplicationEventsHint(object sender, EventArgs e)

        private void BuildAndPreview(bool preview)
        {
            ClearLog();
            if (_modified)
            {
                ActionSaveExecute(this, EventArgs.Empty);
            }
            _buildPreviewHelper.ResourceIdentifier = _document.Application.ResourceName;
            if (preview)
            {
                _buildPreviewHelper.ShowPreviewDialog(this);
            }
            else
            {
                this.Cursor = Cursors.WaitCursor;
                try
                {
                    _buildPreviewHelper.BuildRibbonFile(_document.Application.ResourceName);
                }
                finally
                {
                    this.Cursor = Cursors.Default;
                }
            }
        }