コード例 #1
0
        /// <summary>
        /// Init function of app
        /// </summary>
        private void InitFunction()
        {
            InitConfig();

            if (_translation == null)
            {
                _translation = new TranslationButton();
            }

            _translation.Active(_tranEnable);
        }
コード例 #2
0
 public virtual void AddButtons()
 {
     if (!BaseSettings.TranslationMode)
     {
         return;
     }
     SuspendLayout();
     m_TranslationButton = new TranslationButton {
         Left = 4
     };
     m_TranslationButton.Top    = ClientSize.Height - m_TranslationButton.Height - 4;
     m_TranslationButton.Parent = this;
     ResumeLayout();
 }
コード例 #3
0
 public override void AddButtons()
 {
     if (!BaseSettings.TranslationMode)
     {
         return;
     }
     SuspendLayout();
     m_TranslationButton        = new TranslationButton();
     m_TranslationButton.Left   = ClientSize.Width - m_TranslationButton.Width - 4;
     m_TranslationButton.Top    = ClientSize.Height - m_TranslationButton.Height - 30;
     m_TranslationButton.Parent = this;
     m_TranslationButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     m_TranslationButton.BringToFront();
     ResumeLayout();
 }