/// <summary> /// Init function of app /// </summary> private void InitFunction() { InitConfig(); if (_translation == null) { _translation = new TranslationButton(); } _translation.Active(_tranEnable); }
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(); }
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(); }