public void ShowMainWindow() { if (form_mainWindow == null || form_mainWindow.IsDisposed) { form_mainWindow = new GUI.Form_main(); form_mainWindow.Gestures = m_gestures; form_mainWindow.Engine = m_engine; form_mainWindow.SetListView(); form_mainWindow.FormClosed += this.form_mainWindow_FormClosed; form_mainWindow.Translate(); } form_mainWindow.Show(); form_mainWindow.ShowMainForm(); }
public void Translate() { tSMI_show.Text = Translation.GetText("ST_tSMI_show"); tSMI_about.Text = Translation.GetText("MW_tSB_about"); // same name as in main window tSMI_autobehave_on.Text = Translation.GetText("ST_tSMI_autobehave_on"); tSMI_autobehave_off.Text = Translation.GetText("ST_tSMI_autobehave_off"); tSMI_enable.Text = Translation.GetText("ST_tSMI_enable"); tSMI_disable.Text = Translation.GetText("ST_tSMI_disable"); tSMI_exit.Text = Translation.GetText("MW_sMI_exit"); // same name as in main window ST_tT_autobehave.Translate(); ST_tT_disabled.Translate(); ST_tT_learning.Translate(); m_engine.Translate(); Form_about.Instance.Translate(); if (form_update != null && !form_update.IsDisposed) { form_update.Translate(); } if (form_mainWindow != null && !form_mainWindow.IsDisposed) { form_mainWindow.Translate(); } }