/** * \brief Sprache umschalten */ private void BtnLanguage_Click(object sender, EventArgs e) { this.Close(); CompBitButton btn = (CompBitButton)sender; if (btn.Name == "BtnDe") { this.m_parameter.Language = "De"; } if (btn.Name == "BtnEn") { this.m_parameter.Language = "En"; } if (btn.Name == "BtnFr") { this.m_parameter.Language = "Fr"; } if (btn.Name == "BtnSp") { this.m_parameter.Language = "Sp"; } if (btn.Name == "BtnRu") { this.m_parameter.Language = "Ru"; } this.m_language.SetLanguage(); this.m_formularManager.SetLanguage(); }
public void AddBitButtonCloseAll() { CompBitButton btn = new CompBitButton(); btn.Picture_0 = CompBitButtonStyle.btg_DeleteForm; btn.Click += new System.EventHandler(this.BtnCloseAll_Click); this.m_buttonList.Add(btn); this.GbxMenu.Controls.Add(btn); this.SetButtons(); }
public void AddBitButton(CompBitButtonStyle ButtonStyle, string Formularname) { CompBitButton btn = new CompBitButton(); btn.Picture_0 = ButtonStyle; btn.Formular = Formularname; btn.Click += new System.EventHandler(this.BtnShowFormular_Click); this.m_buttonList.Add(btn); this.GbxMenu.Controls.Add(btn); this.SetButtons(); }
public static string SymbolName(object sender) { string retval = ""; string btnType = sender.GetType().ToString(); if (btnType == "Helper.CompBitButton") { CompBitButton btnObj = (CompBitButton)sender; retval = btnObj.Symbol; } if (btnType == "Helper.InputBox") { CompInputBox btnObj = (CompInputBox)sender; retval = btnObj.Symbol; } return(retval); }
private void ButtonVisibleOnOff(object button, bool visible) { string obj_type = button.GetType().ToString(); if (obj_type == "System.Windows.Forms.Button") { Button btn = (Button)button; btn.Visible = visible; if (visible) { btn.Focus(); } } if (obj_type == "Helper.CompBitButton") { CompBitButton btn = (CompBitButton)button; btn.Visible = visible; if (visible) { btn.Focus(); } } }
private void KeyBoard_Click(object sender, EventArgs e) { CompBitButton btn = (CompBitButton)sender; this.SendKey(sender, btn.Caption); }
/** * \brief Formular fuer den Button anzeigen */ private void BtnShowFormular_Click(object sender, EventArgs e) { CompBitButton btn = (CompBitButton)sender; this.m_formularManager.FormularShow(btn.Formular); }