コード例 #1
0
        private void cbAppType_SelectionChangeCommitted(object sender, EventArgs e)
        {
            this.panelApplication.Controls.Clear();

            ComboBox        cb = sender as ComboBox;
            ApplicationMode ap = (ApplicationMode)cb.SelectedItem;

            m_options.applicationMode = ap;
            this.gpDescription.Text   = ap.ToString();
            switch (ap)
            {
            case ApplicationMode.File:
            {
                this.gpDescription.Text = ap.ToString();
                AppFile af = new AppFile(m_options);
                af.ClientSize = this.panelApplication.ClientSize;
                af.Anchor     = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom
                                                                    | System.Windows.Forms.AnchorStyles.Top
                                                                    | System.Windows.Forms.AnchorStyles.Left
                                                                    | System.Windows.Forms.AnchorStyles.Right);
                af.Action += new EventHandler(onAppAciton);
                this.panelApplication.Controls.Add(af);
            }
            break;

            case ApplicationMode.StdInput:
            {
                this.gpDescription.Text = ap.ToString();
                AppStdIput af = new AppStdIput(m_options);
                af.ClientSize = this.panelApplication.ClientSize;
                af.Anchor     = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom
                                                                    | System.Windows.Forms.AnchorStyles.Top
                                                                    | System.Windows.Forms.AnchorStyles.Left
                                                                    | System.Windows.Forms.AnchorStyles.Right);
                af.Action += new EventHandler(onAppAciton);
                this.panelApplication.Controls.Add(af);
            }
            break;
            }
            ;

            Action(this, null);
        }
コード例 #2
0
        /// <summary>
        /// Handles user intent to enter a mode where they can place an anchor to host or to exit this mode if
        /// already in it.
        /// </summary>
        public void OnEnterHostingModeClick()
        {
            if (m_CurrentMode == ApplicationMode.Hosting)
            {
                Debug.Log("Application is in mode " + m_CurrentMode.ToString());
                m_CurrentMode = ApplicationMode.Ready;
                _ResetStatus();
            }

            Debug.Log("Application go to Hosting mode");
            m_CurrentMode = ApplicationMode.Hosting;
            _SetPlatformActive();
            SetScreenPosition(false);
        }
コード例 #3
0
ファイル: Config.cs プロジェクト: Organus/LRS_SORT
        public static void SetDbConfigVals()
        {
            ConfigSetting applicationMode = new ConfigSetting("ApplicationMode", ApplicationMode.ToString());

            Sort.Business.Config.setValue(applicationMode);
        }
コード例 #4
0
 public static void SetDbConfigVals()
 {
     LRS.Business.Config.setValue(new ConfigSetting("ApplicationMode", ApplicationMode.ToString()));
 }