public ConsolePanel( )
        {
            InitializeComponent( );

            PanelImpl = new PanelImpl {
                IrcPanel         = this,
                ScrollViewer     = ScrollViewer,
                ScrollbackViewer = ScrollbackViewer,
                InputBar         = InputBar,
                Dispatcher       = Dispatcher,
            };
            PanelImpl.InitializeComponent( );

            ScrollbackManager.AddLine("Welcome to ZiveIRC.");
        }
Ejemplo n.º 2
0
        private void Initialize( )
        {
            ScrollActions = new Dictionary <ScrollAction, Action> {
                { ScrollAction.PageUp, ScrollViewer.PageUp },
                { ScrollAction.PageDown, ScrollViewer.PageDown },
                { ScrollAction.LineUp, ScrollViewer.LineUp },
                { ScrollAction.LineDown, ScrollViewer.LineDown },
                { ScrollAction.Top, ScrollViewer.ScrollToTop },
                { ScrollAction.Bottom, ScrollViewer.ScrollToBottom },
            };

            ScrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
        }
Ejemplo n.º 3
0
        // Events
        // Constructors
        public ServerPanel( )
        {
            InitializeComponent( );

            _scrollActions = new Dictionary<ScrollAction, Action> {
                { ScrollAction.PageUp,   ScrollViewer.PageUp         },
                { ScrollAction.PageDown, ScrollViewer.PageDown       },
                { ScrollAction.LineUp,   ScrollViewer.LineUp         },
                { ScrollAction.LineDown, ScrollViewer.LineDown       },
                { ScrollAction.Top,      ScrollViewer.ScrollToTop    },
                { ScrollAction.Bottom,   ScrollViewer.ScrollToBottom },
            };

            _scrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
        }
Ejemplo n.º 4
0
        // Events

        // Constructors

        public ServerPanel( )
        {
            InitializeComponent( );

            _scrollActions = new Dictionary <ScrollAction, Action> {
                { ScrollAction.PageUp, ScrollViewer.PageUp },
                { ScrollAction.PageDown, ScrollViewer.PageDown },
                { ScrollAction.LineUp, ScrollViewer.LineUp },
                { ScrollAction.LineDown, ScrollViewer.LineDown },
                { ScrollAction.Top, ScrollViewer.ScrollToTop },
                { ScrollAction.Bottom, ScrollViewer.ScrollToBottom },
            };

            _scrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
        }
        public ConsolePanel( )
        {
            InitializeComponent( );

            _scrollActions = new Dictionary <ScrollAction, Action> {
                { ScrollAction.PageUp, ScrollViewer.PageUp },
                { ScrollAction.PageDown, ScrollViewer.PageDown },
                { ScrollAction.LineUp, ScrollViewer.LineUp },
                { ScrollAction.LineDown, ScrollViewer.LineDown },
                { ScrollAction.Top, ScrollViewer.ScrollToTop },
                { ScrollAction.Bottom, ScrollViewer.ScrollToBottom },
            };

            _scrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
            _scrollbackManager.AddLine("Welcome to ZiveIRC.");
        }
        public ConsolePanel( )
        {
            InitializeComponent( );

            _scrollActions = new Dictionary<ScrollAction, Action> {
                { ScrollAction.PageUp,   ScrollViewer.PageUp         },
                { ScrollAction.PageDown, ScrollViewer.PageDown       },
                { ScrollAction.LineUp,   ScrollViewer.LineUp         },
                { ScrollAction.LineDown, ScrollViewer.LineDown       },
                { ScrollAction.Top,      ScrollViewer.ScrollToTop    },
                { ScrollAction.Bottom,   ScrollViewer.ScrollToBottom },
            };

            _scrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
            _scrollbackManager.AddLine( "Welcome to ZiveIRC." );
        }
Ejemplo n.º 7
0
        private void Initialize( )
        {
            ScrollActions = new Dictionary<ScrollAction, Action> {
                { ScrollAction.PageUp,   ScrollViewer.PageUp         },
                { ScrollAction.PageDown, ScrollViewer.PageDown       },
                { ScrollAction.LineUp,   ScrollViewer.LineUp         },
                { ScrollAction.LineDown, ScrollViewer.LineDown       },
                { ScrollAction.Top,      ScrollViewer.ScrollToTop    },
                { ScrollAction.Bottom,   ScrollViewer.ScrollToBottom },
            };

            ScrollbackManager = new ScrollbackManager {
                FlowDocument = ScrollbackViewer.Document,
            };
        }