public ChineseDict(ClassicSubForm p) { parent = p; InitializeComponent(); textBoxDictLocation.Text = GetDictLocation(); textBoxOverrideLocation1.Text = GetOverrideLocation1(); textBoxOverrideLocation2.Text = GetOverrideLocation2(); }
public Overlay(ClassicSubForm p) { parent = p; InitializeComponent(); this.ControlBox = false; this.Text = string.Empty; TopMost = true; FormBorderStyle = FormBorderStyle.None; // SetStyle(ControlStyles.SupportsTransparentBackColor, true); // BackColor = Color.Transparent; // this.ResizeRedraw = true; }
public Chinese(ClassicSubForm p) { parentsub = p; InitializeComponent(); radioText2.Enabled = parentsub.Text2Enabled; radioText3.Enabled = parentsub.Text3Enabled; radioText4.Enabled = parentsub.Text4Enabled; int sel = GetTextRadioSetting(); if (sel == 1) { radioText1.Checked = true; } else if (sel == 2 && radioText2.Enabled) { radioText2.Checked = true; } else if (sel == 3 && radioText3.Enabled) { radioText3.Checked = true; } else if (sel == 4 && radioText4.Enabled) { radioText4.Checked = true; } else { radioSelection.Checked = true; } int op = GetOperationRadioSetting(); if (op == 1) { radioPinyin.Checked = true; } else if (op == 2) { radioPinyinNumbers.Checked = true; } else { radioWordForWord.Checked = true; } }
public GoogleTranslate(ClassicSubForm csForm) { InitializeComponent(); radioText2.Enabled = csForm.Text2Enabled; radioText3.Enabled = csForm.Text3Enabled; radioText4.Enabled = csForm.Text4Enabled; int sel = GetTextRadioSetting(); if (sel == 1) { radioText1.Checked = true; } else if (sel == 2 && radioText2.Enabled) { radioText2.Checked = true; } else if (sel == 3 && radioText3.Enabled) { radioText3.Checked = true; } else if (sel == 4 && radioText4.Enabled) { radioText4.Checked = true; } else { radioSelection.Checked = true; } object[] languages = new object[] { "af", "sq", "ar", "be", "bg", "ca", "zh-CN", "zh-TW", "hr", "cs", "da", "nl", "en", "et", "tl", "fi", "fr", "gl", "de", "el", "ht", "iw", "hi", "hu", "is", "id", "ga", "it", "ja", "lv", "lt", "mk", "ms", "mt", "no", "fa", "pl", "pt", "ro", "ru", "sr", "sk", "sl", "es", "sw", "sv", "th", "tr", "uk", "vi", "cy", "yi" }; comboFrom.Items.AddRange(languages); comboTo.Items.AddRange(languages); comboFrom.SelectedIndex = GetComboFromSel(); comboTo.SelectedIndex = GetComboToSel(); textBoxAPIKey.Text = GetAPIKey(); }