Пример #1
0
        /// <summary>
        /// Clones this model object.
        /// </summary>
        /// <returns>A deep copy of this object.</returns>
        public object Clone()
        {
            WebPerformanceModel clonedModel = new WebPerformanceModel();
            clonedModel.m_RequestSubmissionSignal = this.m_RequestSubmissionSignal;
            clonedModel.m_RequestLogSignal = this.m_RequestLogSignal;

            return clonedModel;
        }
Пример #2
0
        /// <summary>
        /// Clones this model object.
        /// </summary>
        /// <returns>A deep copy of this object.</returns>
        public object Clone()
        {
            WebPerformanceModel clonedModel = new WebPerformanceModel();

            clonedModel.m_RequestSubmissionSignal = this.m_RequestSubmissionSignal;
            clonedModel.m_RequestLogSignal        = this.m_RequestLogSignal;

            return(clonedModel);
        }
        /// <summary>
        /// Constructor for the web service.
        /// </summary>
        /// <param name="sender">The event queue to use.</param>
        /// <param name="presentation">The web performance model to listen to.</param>
        public WebPerformanceWebService(SendingQueue sender, WebPerformanceModel performance)
        {
            this.m_Sender = sender;
            this.m_WebPerformance = performance;

            this.m_RequestSubmissionChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleRequestSubmissionChanged));
            this.m_WebPerformance.Changed["RequestSubmissionSignal"].Add(this.m_RequestSubmissionChangedDispatcher.Dispatcher);
            this.m_RequestLogChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleRequestLogChanged));
            this.m_WebPerformance.Changed["RequestLogSignal"].Add(this.m_RequestLogChangedDispatcher.Dispatcher);
        }
Пример #4
0
        /// <summary>
        /// Instantiates a new <see cref="ViewerStateModel"/>.
        /// </summary>
        public ViewerStateModel()
        {
            this.m_PollStyle                          = QuickPollModel.QuickPollStyle.ABCD;
            this.m_Document                           = new PrintDocument();
            this.m_PrintableDeck                      = null;
            this.m_SlidesPerPage                      = 6;
            this.m_LoggingEnabled                     = true;
            this.m_LoggingPath                        = ".\\Logs";
            this.m_SecondMonitorEnabled               = true;
            this.m_SecondMonitorWindowsAPIsEnabled    = true;
            this.m_SecondMonitorCustomCommandsEnabled = false;
            this.m_SecondMonitorCustomCommandType     = "";
            this.m_SecondMonitorCloneCommand          = "";
            this.m_SecondMonitorExtendCommand         = "";
            this.m_NumberOfScreens                    = System.Windows.Forms.Screen.AllScreens.Length;
            this.m_SlidePreviewEnabled                = true;
            this.m_SlidePreviewVisible                = false;
            this.m_SlidePreviewWidth                  = 400;
            this.m_SlidePreviewHeight                 = 300;
            this.m_AutoScrollEnabled                  = true;
            this.m_FilmStripEnabled                   = true;
            this.m_PrimaryMonitorFullScreen           = false;
            this.m_FEC = 0;
            this.m_InterPacketDelay          = 0;
            this.m_BeaconInterval            = 5;
            this.m_FilmStripAlignment        = DockStyle.Right;
            this.m_SaveOnClose               = true;
            this.m_BroadcastDisabled         = false;
            this.m_UseLightColorSet          = false;
            this.m_ClassmateMode             = false;
            this.m_DefaultPenWidth           = 53;
            this.m_DefaultHLWidth            = 318;
            this.m_StudentSubmissionInterval = 5;
            this.m_Language   = "en";
            this.m_DeviceName = string.Empty;
            this.m_OutPutSize = "320x240";

            this.m_FilmStripWidth             = 1;
            this.m_SSFilmStripWidth           = 3;
            this.m_iRole                      = 0;//0-disconnected, 1-Viewer, 2-Presenter, 3-Public
            this.m_Advanced                   = false;
            this.m_ManualConnectionButtonName = "";
            this.m_TCPaddress                 = "";
            this.m_ShowIP                     = true;
            this.m_StudentNavigationType      = LinkedDeckTraversalModel.NavigationSelector.Full;

            this.m_Diagnostic     = new DiagnosticModel();
            this.m_WebPerformance = new WebPerformanceModel();
        }
Пример #5
0
        /// <summary>
        /// Instantiates a new <see cref="ViewerStateModel"/>.
        /// </summary>
        public ViewerStateModel()
        {
            this.m_PollStyle = QuickPollModel.QuickPollStyle.ABCD;
            this.m_Document = new PrintDocument();
            this.m_PrintableDeck = null;
            this.m_SlidesPerPage = 6;
            this.m_LoggingEnabled = true;
            this.m_LoggingPath = ".\\Logs";
            this.m_SecondMonitorEnabled = true;
            this.m_SecondMonitorWindowsAPIsEnabled = true;
            this.m_SecondMonitorCustomCommandsEnabled = false;
            this.m_SecondMonitorCustomCommandType = "";
            this.m_SecondMonitorCloneCommand = "";
            this.m_SecondMonitorExtendCommand = "";
            this.m_NumberOfScreens = System.Windows.Forms.Screen.AllScreens.Length;
            this.m_SlidePreviewEnabled = true;
            this.m_SlidePreviewVisible = false;
            this.m_SlidePreviewWidth = 400;
            this.m_SlidePreviewHeight = 300;
            this.m_AutoScrollEnabled = true;
            this.m_FilmStripEnabled = true;
            this.m_PrimaryMonitorFullScreen = false;
            this.m_FEC = 0;
            this.m_InterPacketDelay = 0;
            this.m_BeaconInterval = 5;
            this.m_FilmStripAlignment = DockStyle.Right;
            this.m_SaveOnClose = true;
            this.m_BroadcastDisabled = false;
            this.m_UseLightColorSet = false;
            this.m_ClassmateMode = false;
            this.m_DefaultPenWidth = 53;
            this.m_DefaultHLWidth = 318;
            this.m_StudentSubmissionInterval = 5;
            this.m_Language = "en";
            this.m_DeviceName = string.Empty;
            this.m_OutPutSize = "320x240";

            this.m_FilmStripWidth = 1;
            this.m_SSFilmStripWidth = 3;
            this.m_iRole = 0;//0-disconnected, 1-Viewer, 2-Presenter, 3-Public
            this.m_Advanced = false;
            this.m_ManualConnectionButtonName = "";
            this.m_TCPaddress = "";
            this.m_ShowIP = true;
            this.m_StudentNavigationType = LinkedDeckTraversalModel.NavigationSelector.Full;

            this.m_Diagnostic = new DiagnosticModel();
            this.m_WebPerformance = new WebPerformanceModel();
        }