コード例 #1
0
        //================================================================================================================
        //================================================================================================================
        #endregion  // Properties

        #region Constructors
        //================================================================================================================
        //================================================================================================================

        public PokerRoom()
        //================================================================================================================
        // Default constructor
        //================================================================================================================
        {
            // Create an information panel
            InformationPanel = new InfoPanel(SiteHelpers.InfoPanelTypes.InfoPanel);

            // Add a new panel entry for "About This Page"
            InfoPanelEntry aboutEntry = new InfoPanelEntry(Resources.InfoPanel_AboutHeader, Resources.About_PokerRoom, "");

            InformationPanel.PanelEntries.Add(aboutEntry);

            // Add a new panel entry for "Technologies Used"
            InfoPanelEntry techEntry = new InfoPanelEntry(Resources.InfoPanel_TechHeader);

            // Add the about backend technologies line
            InfoPanelEntryLine backendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderBackendTech, Resources.InfoPanel_AboutBackendTech);

            techEntry.EntryLines.Add(backendLine);

            // Add the about frontend technologies line
            InfoPanelEntryLine frontendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderFrontendTech, Resources.InfoPanel_AboutFrontendTech);

            techEntry.EntryLines.Add(frontendLine);

            // Add the about the development environment technologies line
            InfoPanelEntryLine devLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderDevEnv, Resources.InfoPanel_AboutDevEnv);

            techEntry.EntryLines.Add(devLine);

            // Add the panel entry
            InformationPanel.PanelEntries.Add(techEntry);
        }
コード例 #2
0
        //================================================================================================================
        //================================================================================================================
        #endregion  // Properties

        #region Constructors
        //================================================================================================================
        //================================================================================================================

        public Randomness()
        //================================================================================================================
        // Default constructor
        //================================================================================================================
        {
            // Initialize members
            ShuffledPackageFisher = new ShuffledPackage();
            ShuffledPackageNaive  = new ShuffledPackage();
            ShuffleResultsData    = new ShuffleResultsGraph();

            // Create and initailize the shuffler control panel
            ControlPanel = new ShufflerControlPanel(SiteHelpers.ShuffleMode.Comparison);

            // Create an information panel
            InformationPanel = new InfoPanel(SiteHelpers.InfoPanelTypes.InfoPanel);

            // Add a new panel entry for "About This Page"
            string         fisherLink = "<a class='ssc_InfoPanelLink' href='https://medium.com/@oldwestaction/randomness-is-hard-e085decbcbb2' target='_blank'>Fisher-Yates</a>";
            string         naiveLink  = "<a class='ssc_InfoPanelLink' href='https://medium.com/@oldwestaction/randomness-is-hard-e085decbcbb2' target='_blank'>Naive</a>";
            string         aboutInfo  = String.Format(Resources.About_Randomness, fisherLink, naiveLink);
            InfoPanelEntry aboutEntry = new InfoPanelEntry(Resources.InfoPanel_AboutHeader, aboutInfo, "");

            InformationPanel.PanelEntries.Add(aboutEntry);

            // Add a new panel entry for "Technologies Used"
            InfoPanelEntry techEntry = new InfoPanelEntry(Resources.InfoPanel_TechHeader);

            // Add the about backend technologies line
            InfoPanelEntryLine backendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderBackendTech, Resources.InfoPanel_AboutBackendTech);

            techEntry.EntryLines.Add(backendLine);

            // Add the about frontend technologies line
            InfoPanelEntryLine frontendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderFrontendTech, Resources.InfoPanel_AboutFrontendTech);

            techEntry.EntryLines.Add(frontendLine);

            // Add the about the development environment technologies line
            InfoPanelEntryLine devLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderDevEnv, Resources.InfoPanel_AboutDevEnv);

            techEntry.EntryLines.Add(devLine);

            // Add the panel entry
            InformationPanel.PanelEntries.Add(techEntry);
        }
コード例 #3
0
        //================================================================================================================
        //================================================================================================================
        #endregion  // Properties

        #region Constructors
        //================================================================================================================
        //================================================================================================================

        public PokerPlayground()
        //================================================================================================================
        // Default constructor
        //================================================================================================================
        {
            // Set default properties
            NoServerMessage = Properties.Resources.Site_NoServer;
            SiteContact     = Properties.Resources.Site_Contact;
            SiteEmail       = Properties.Resources.Site_Email;

            // Create an information panel
            SitePanel = new InfoPanel(SiteHelpers.InfoPanelTypes.SitePanel);

            // Add a new panel entry for "About This Site"
            InfoPanelEntry aboutEntry = new InfoPanelEntry(Resources.Site_Welcome, Resources.Site_About, "");

            SitePanel.PanelEntries.Add(aboutEntry);

            // Add a new panel entry for "Technologies Used"
            InfoPanelEntry techEntry = new InfoPanelEntry(Resources.InfoPanel_TechHeader);

            // Add the about backend technologies line
            InfoPanelEntryLine backendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderBackendTech, Resources.InfoPanel_AboutBackendTech);

            techEntry.EntryLines.Add(backendLine);

            // Add the about frontend technologies line
            InfoPanelEntryLine frontendLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderFrontendTech, Resources.InfoPanel_AboutFrontendTech);

            techEntry.EntryLines.Add(frontendLine);

            // Add the about the development environment technologies line
            InfoPanelEntryLine devLine = new InfoPanelEntryLine(Resources.InfoPanel_HeaderDevEnv, Resources.InfoPanel_AboutDevEnv);

            techEntry.EntryLines.Add(devLine);

            // Add the panel entry
            SitePanel.PanelEntries.Add(techEntry);
        }