public MainSplitContainer(CoreLib core, Options options, CoreOptions coreOptions, MainForm mainForm)
        {
            m_mainForm    = mainForm;
            m_options     = options;
            m_core        = core;
            m_coreOptions = coreOptions;

            m_resultsListView         = new ResultsListView(m_core, m_options, m_coreOptions, this);
            m_resultsPreviewContainer = new ResultsPreviewContainer(m_core, m_options, m_coreOptions, this);

            //m_resultsListView.UpdateResults();

            m_thumbnailGroupTable = new ThumbnailGroupTable(m_core, m_options, this);
            m_thumbnailPreview    = new ThumbnailPreview(m_core, m_options, this);
            m_thumbnailPreview.ContextMenuStrip              = new ThumbnailPreviewContextMenu(m_core, m_options, m_thumbnailPreview, m_thumbnailGroupTable);
            m_thumbnailGroupTable.OnCurrentThumbnailChanged += m_thumbnailPreview.SetThumbnail;

            //m_thumbnailGroupTable.UpdateGroups();

            InitializeComponents();

            // —в¤зываем, чтобы при вызове событи¤ OnViewModeChange вызывалась функци¤ SetViewMode
            m_options.resultsOptions.OnViewModeChange += new ResultsOptions.ViewModeChangeHandler(SetViewMode);

            SplitterMoved += new SplitterEventHandler(OnSplitterPositionChanged);
            Resize        += new EventHandler(OnSizeChanged);
        }
Esempio n. 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:FwSplitContainer"/> class.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public FwSplitContainer()
		{
			InitializeComponent();

			SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving);
			SplitterMoved += new SplitterEventHandler(OnSplitterMoved);
		}
Esempio n. 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="T:FwSplitContainer"/> class.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public FwSplitContainer()
        {
            InitializeComponent();

            SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving);
            SplitterMoved  += new SplitterEventHandler(OnSplitterMoved);
        }
Esempio n. 4
0
        public void OnSplitterMoved(SplitterEventArgs e)
        {
            SplitterEventHandler eh = (SplitterEventHandler)(Events [SplitterMovedEvent]);

            if (eh != null)
            {
                eh(this, e);
            }
        }
Esempio n. 5
0
        protected virtual void OnSplitterMoving(SplitterEventArgs sevent)
        {
            SplitterEventHandler eh = (SplitterEventHandler)(Events [SplitterMovingEvent]);

            if (eh != null)
            {
                eh(this, sevent);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// splittereventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this SplitterEventHandler splittereventhandler, Object sender, SplitterEventArgs e, AsyncCallback callback)
        {
            if (splittereventhandler == null)
            {
                throw new ArgumentNullException("splittereventhandler");
            }

            return(splittereventhandler.BeginInvoke(sender, e, callback, null));
        }
Esempio n. 7
0
        /// <include file='doc\Splitter.uex' path='docs/doc[@for="Splitter.RaiseSplitterEvent"]/*' />
        /// <devdoc>
        ///     Raises a splitter event
        /// </devdoc>
        /// <internalonly/>
        private void RaiseSplitterEvent(object key, SplitterEventArgs spevent)
        {
            SplitterEventHandler handler = (SplitterEventHandler)Events[key];

            if (handler != null)
            {
                handler(this, spevent);
            }
        }
Esempio n. 8
0
        /// <include file='doc\Splitter.uex' path='docs/doc[@for="Splitter.OnSplitterMoved"]/*' />
        /// <devdoc>
        ///     Inherriting classes should override this method to respond to the
        ///     splitterMoved event. This event occurs when the user finishes
        ///     moving the splitter.
        /// </devdoc>
        protected virtual void OnSplitterMoved(SplitterEventArgs sevent)
        {
            SplitterEventHandler handler = (SplitterEventHandler)Events[EVENT_MOVED];

            if (handler != null)
            {
                handler(this, sevent);
            }
            if (splitTarget != null)
            {
                SplitMove(sevent.SplitX, sevent.SplitY);
            }
        }
Esempio n. 9
0
    protected virtual void OnSplitterMoving(SplitterEventArgs sevent)
    {
        SplitterEventHandler handler = (SplitterEventHandler)base.Events[EVENT_MOVING];

        if (handler != null)
        {
            handler(this, sevent);
        }
        if (this.splitTarget != null)
        {
            this.SplitMove(sevent.SplitX, sevent.SplitY);
        }
    }
Esempio n. 10
0
        protected virtual void OnSplitterMoved(SplitterEventArgs e)
        {
            SplitterEventHandler handler1 = (SplitterEventHandler)base.Events[RadSplitContainer.SplitterMovedEventKey];

            if (handler1 != null)
            {
                handler1(this, e);
            }

            if (this.Parent is RadSplitContainer)
            {
                ((RadSplitContainer)this.Parent).OnSplitterMoved(e);
            }
        }
Esempio n. 11
0
        protected virtual void OnSplitterMoving(SplitterEventArgs sevent)
        {
            SplitterEventHandler splitterEventHandler = (SplitterEventHandler)this.Events[RadSplitter.EVENT_MOVING];

            if (splitterEventHandler != null)
            {
                splitterEventHandler((object)this, sevent);
            }
            if (this.splitTarget == null)
            {
                return;
            }
            this.SplitMove(sevent.SplitX, sevent.SplitY);
        }
Esempio n. 12
0
        public RulerPanel(ReportPageDesigner pd) : base()
        {
            FPageDesigner = pd;
            FPage         = pd.Page as ReportPage;
            FWorkspace    = new ReportWorkspace(FPageDesigner);
            FWorkspace.LocationChanged += new EventHandler(Workspace_LocationChanged);

            FHorzRuler        = new HorzRuler(pd);
            FHorzRuler.Height = 24;
            FHorzRuler.Dock   = DockStyle.Top;
            FVertRuler        = new VertRuler(pd);
            FVertRuler.Dock   = DockStyle.Left;
            FVertRuler.Width  = 24;

            btnSwitchView           = new Button();
            btnSwitchView.Location  = new Point(4, 4);
            btnSwitchView.Size      = new Size(16, 16);
            btnSwitchView.FlatStyle = FlatStyle.Flat;
            btnSwitchView.FlatAppearance.BorderColor = SystemColors.ButtonFace;
            btnSwitchView.FlatAppearance.BorderSize  = 0;
            btnSwitchView.Cursor = Cursors.Hand;
            btnSwitchView.Image  = Res.GetImage(81);
            btnSwitchView.Click += new EventHandler(btnSwitchView_Click);
            FHorzRuler.Controls.Add(btnSwitchView);

            FStructure      = new BandStructure(FPageDesigner);
            FStructure.Dock = DockStyle.Fill;

            FControlContainer      = new ControlContainer(FWorkspace);
            FControlContainer.Dock = DockStyle.Fill;

            Panel1.Controls.Add(FStructure);
            Panel2.Controls.AddRange(new Control[] { FControlContainer, FVertRuler, FHorzRuler });
            Panel1MinSize    = 20;
            FixedPanel       = FixedPanel.Panel1;
            SplitterDistance = 120;
            SplitterMoved   += new SplitterEventHandler(RulerPanel_SplitterMoved);

            AdjustOffset();
        }