Beispiel #1
0
        public Task4()
        {
            InitializeComponent();
            comboBox2.SelectedItem = "Англійська";

            th.set_lang(0);
        }
Beispiel #2
0
        void Data()
        {
            k = Convert.ToInt32(textBox1.Text);
            dataGridView1.Rows.Clear();
            List <char> list11 = new List <char>();
            List <char> list22 = new List <char>();

            th.set_lang(land_list.SelectedIndex);
            list11.AddRange(th.Latter_mas);
            list22.AddRange(th.Latter_mas);
            for (int i = 0; i < list11.Count; ++i)
            {
                dataGridView1.Rows.Add();
                dataGridView1.Rows[i].Cells[0].Value = list11[i];
                list1.Add(list11[i]);
                if (list11.Count > k)
                {
                    dataGridView1.Rows[i].Cells[1].Value = list22[k];
                    list2.Add(list22[k]);
                    k++;
                }
                else
                {
                    k = k - list11.Count;
                    dataGridView1.Rows[i].Cells[1].Value = list22[k];
                    list2.Add(list22[k]);
                    k++;
                }
            }
        }
Beispiel #3
0
        public Task3()
        {
            InitializeComponent();

            th = new TextHandler();
            th.set_lang(0);
        }
Beispiel #4
0
 private void lang_list_SelectedIndexChanged(object sender, EventArgs e)
 {
     th.set_lang(lang_list1.SelectedIndex);
 }