public static void Initialize(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
 {
     // initialize one form per-thread
     if (_imagePropertySidebar == null)
     {
         _imagePropertySidebar = new ImageEditingPropertySidebar();
         _imagePropertySidebar.Init(editorContext, dataContext, callback);
     }
 }
 public static void Initialize(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
 {
     // initialize one form per-thread
     if ( _imagePropertyForm == null )
     {
         _imagePropertyForm = new ImageEditingPropertyForm() ;
         _imagePropertyForm.Init(editorContext, dataContext, callback);
     }
 }
        private void Init(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
        {
            _editorContext = editorContext;
            _editorContext.SelectionChanged += new EventHandler(_editorContext_SelectionChanged);
            _imageDataContext = dataContext;

            _createFileCallback = callback;

            this.imagePropertyEditorControl.Init(dataContext);
        }
        private void Init(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
        {
            _editorContext = editorContext ;
            _editorContext.SelectionChanged +=new EventHandler(_editorContext_SelectionChanged);
            _imageDataContext = dataContext;

            _createFileCallback = callback ;

            this.imagePropertyEditorControl1.Init(dataContext);

            base.Init(editorContext.MainFrameWindow, typeof(CommandViewImageProperties)) ;
        }
        private void Init(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
        {
            _editorContext = editorContext;
            _editorContext.SelectionChanged += new EventHandler(_editorContext_SelectionChanged);
            _imageDataContext = dataContext;

            _createFileCallback = callback;

            this.imagePropertyEditorControl1.Init(dataContext);

            base.Init(editorContext.MainFrameWindow, typeof(CommandViewImageProperties));
        }
        public void Init(IBlogPostImageDataContext dataContext)
        {

            _imageDataContext = dataContext;
            // initialization constants
            const int TOP_INSET = 2;

            imageTabPageImage = new ImageTabPageImageControl() ;
            imageTabPageLayout = new ImageTabPageLayoutControl() ;
            imageTabPageEffects = new ImageTabPageEffectsControl() ;
            imageTabPageUpload = new ImageTabPageUploadControl() ;

            _tabPages = new ImageEditingTabPageControl[]{imageTabPageLayout, imageTabPageImage, imageTabPageEffects, imageTabPageUpload};
            for(int i=0; i<_tabPages.Length; i++)
            {
                ImageEditingTabPageControl tabPage = _tabPages[i];
                tabPage.DecoratorsManager = dataContext.DecoratorsManager;
                tabPage.TabStop = false ;
                tabPage.TabIndex = i ;
                Controls.Add( tabPage ) ;
                tabLightweightControl.SetTab( i, tabPage ) ;
            }

            // initial appearance of editor
            tabLightweightControl.SelectedTabNumber = 0 ;

            InitializeCommands();
            InitializeToolbar();

            _imageDataContext.DecoratorsManager.GetImageDecorator(BrightnessDecorator.Id).Command.StateChanged += new EventHandler(Command_StateChanged);

            // configure primary workspace
            // configure primary workspace
            SuspendLayout() ;
            TopLayoutMargin = TOP_INSET;
            LeftColumn.UpperPane.LightweightControl = tabLightweightControl;
            CenterColumn.Visible = false;
            RightColumn.Visible = false;
            ResumeLayout() ;
        }
        public void Init(IBlogPostImageDataContext dataContext)
        {
            _imageDataContext = dataContext;
            // initialization constants
            const int TOP_INSET = 2;

            imageTabPageImage   = new ImageTabPageImageControl();
            imageTabPageLayout  = new ImageTabPageLayoutControl();
            imageTabPageEffects = new ImageTabPageEffectsControl();
            imageTabPageUpload  = new ImageTabPageUploadControl();

            _tabPages = new ImageEditingTabPageControl[] { imageTabPageLayout, imageTabPageImage, imageTabPageEffects, imageTabPageUpload };
            for (int i = 0; i < _tabPages.Length; i++)
            {
                ImageEditingTabPageControl tabPage = _tabPages[i];
                tabPage.DecoratorsManager = dataContext.DecoratorsManager;
                tabPage.TabStop           = false;
                tabPage.TabIndex          = i;
                Controls.Add(tabPage);
                tabLightweightControl.SetTab(i, tabPage);
            }

            // initial appearance of editor
            tabLightweightControl.SelectedTabNumber = 0;

            InitializeCommands();
            InitializeToolbar();

            _imageDataContext.DecoratorsManager.GetImageDecorator(BrightnessDecorator.Id).Command.StateChanged += new EventHandler(Command_StateChanged);

            // configure primary workspace
            // configure primary workspace
            SuspendLayout();
            TopLayoutMargin = TOP_INSET;
            LeftColumn.UpperPane.LightweightControl = tabLightweightControl;
            CenterColumn.Visible = false;
            RightColumn.Visible  = false;
            ResumeLayout();
        }
        private void Init(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
        {
            _editorContext = editorContext ;
            _editorContext.SelectionChanged +=new EventHandler(_editorContext_SelectionChanged);
            _imageDataContext = dataContext;

            _createFileCallback = callback ;

            this.imagePropertyEditorControl.Init(dataContext);
        }