/// <summary>
        /// Constructor for the scripting network service
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="model"></param>
        /// <param name="diag"></param>
        public ScriptingNetworkService(SendingQueue sender, PresenterModel model)
        {
            this.Sender = sender;
            this.m_Model = model;
            this.m_Diagnostic = model.ViewerState.Diagnostic;

            // Set up the change listeners
            this.m_GenericChangeDispatcher = new EventQueue.PropertyEventDispatcher(this.Sender, new PropertyEventHandler(this.HandleGenericChange));
            this.m_Diagnostic.Changed["ExecuteRemoteScript"].Add(this.m_GenericChangeDispatcher.Dispatcher);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Clones this model object
        /// </summary>
        /// <returns>A Deep copy of this structure</returns>
        public object Clone()
        {
            // Create the clone
            DiagnosticModel clonedModel = new DiagnosticModel();

            clonedModel.m_LatencyList = (ArrayList)this.m_LatencyList.Clone();
            clonedModel.m_SkewList    = (ArrayList)this.m_SkewList.Clone();

            // Copy the values
            return(clonedModel);
        }
Exemplo n.º 3
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();
        }
        /// <summary>
        /// Constructor for the synchronization network service
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="model"></param>
        /// <param name="diag"></param>
        public SynchronizationNetworkService(SendingQueue sender, PresenterModel model)
        {
            this.Sender = sender;
            this.m_Model = model;
            this.m_Diagnostic = model.ViewerState.Diagnostic;

            // Set up the change listeners
            this.m_ServerChangeDispatcher = new EventQueue.PropertyEventDispatcher(this.Sender, new PropertyEventHandler(this.HandleServerStateChange));
            this.m_Diagnostic.Changed["ServerState"].Add(this.m_ServerChangeDispatcher.Dispatcher);
            this.m_ClientChangeDispatcher = new EventQueue.PropertyEventDispatcher(this.Sender, new PropertyEventHandler(this.HandleClientStateChange));
            this.m_Diagnostic.Changed["ClientState"].Add(this.m_ClientChangeDispatcher.Dispatcher);

            this.m_Timer = new System.Windows.Forms.Timer();
            this.m_Timer.Interval = 5000;
            this.m_Timer.Tick += new EventHandler( this.OnTimerTick );
        }
        private bool m_UseLightColorSet; // Use light color set as the pen color set

        #endregion Fields

        #region Constructors

        /// <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_Language = "en";

            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_Diagnostic = new DiagnosticModel();
        }
Exemplo n.º 6
0
        /// <summary>
        /// Clones this model object
        /// </summary>
        /// <returns>A Deep copy of this structure</returns>
        public object Clone()
        {
            // Create the clone
            DiagnosticModel clonedModel = new DiagnosticModel();

            clonedModel.m_LatencyList = (ArrayList)this.m_LatencyList.Clone();
            clonedModel.m_SkewList = (ArrayList)this.m_SkewList.Clone();

            // Copy the values
            return clonedModel;
        }