private void aboutToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     CiceroSplashForm spl = new CiceroSplashForm(false);
     spl.ShowDialog();
 }
        /// <summary>
        /// runLog will be null in general, when running Cicero as a standalone application. However, when Cicero is launched through Elgin,
        /// runLog will contain the log that we intent to browse.
        /// </summary>
        /// <param name="runLog"></param>
        public mainClientForm(RunLog runLog)
        {
            #region Singleton
            if (instance != null)
                throw new Exception("Word Generator is already running!");
            instance = this;
            #endregion

            try
            {
                string[] forts = WordGenerator.Properties.Resources.Fortunes.Split('\n');
                fortunes = new List<string>(forts);
            }
            catch { }

            if (runLog == null)
            {
                // Identify the clientStartupSettingsFile
                clientStartupSettingsFile = FileNameStrings.DefaultClientStartupSettingsFile;

                // Load all necessary data into Storage
                Storage.SaveAndLoad.LoadAllSubclasses(clientStartupSettingsFile);

            }
            else
            {
                Storage.clientStartupSettings = new ClientStartupSettings();
                Storage.sequenceData = runLog.RunSequence;
                Storage.settingsData = runLog.RunSettings;
            }

            InitializeComponent();

            CiceroSplashForm splash = new CiceroSplashForm();

            splash.Show();

            // bind F9 hotkey to run button:
            if (hotKeyBindings == null)
                hotKeyBindings = new List<object>();

            /*
            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F9);
            hotKeyBindings.Add(sequencePage1.runControl1.runZeroButton);
            */

            // bind F11 hotkey to server manager:
            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F11);
            hotKeyBindings.Add(this.serverManagerButton);

            // bind F1 to F8 to appropriate tab pages

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F1);
            hotKeyBindings.Add(this.sequencePage);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F2);
            hotKeyBindings.Add(this.overrideTab);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F3);
            hotKeyBindings.Add(this.analogPage);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F4);
            hotKeyBindings.Add(this.gpibPage);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F5);
            hotKeyBindings.Add(this.rs232Tab);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F6);
            hotKeyBindings.Add(this.commonWaveformPage);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F7);
            hotKeyBindings.Add(this.variablesPage);

            RegisterHotKey(Handle, hotKeyBindings.Count, KeyModifiers.None, Keys.F8);
            hotKeyBindings.Add(this.pulsesTab);

            RefreshRecentFiles();
            this.RefreshSettingsDataToUI(Storage.settingsData);
            this.RefreshSequenceDataToUI(Storage.sequenceData);
        }
        private void mainClientForm_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;
            formOpen = true;
            DataStructures.Timing.NetworkClockProvider.registerStaticMessageLogHandler(addMessageLogText);
            bool listenerCreated =
                DataStructures.Timing.NetworkClockProvider.startListener(DataStructures.Timing.NetworkClockEndpointInfo.HostTypes.Cicero_Client);
            if (!listenerCreated)
            {
                MessageBox.Show("Unable to start network clock listener. Is it possible that a separate Cicero instance is running on this computer?", "Unable to create clock listener.");
            }
            /* CiceroSplashForm splash = new CiceroSplashForm();
             splash.Show();*/
            CiceroSplashForm splash = new CiceroSplashForm();

            splash.ShowDialog();
        }