Esempio n. 1
0
        private void numOfSyllable_Button_Click(object sender, EventArgs e)
        {
            word =
                textBox1.Text + comboBox1.Text +
                textBox2.Text + comboBox2.Text +
                textBox3.Text + comboBox3.Text +
                textBox4.Text + comboBox4.Text +
                textBox5.Text + comboBox5.Text +
                textBox6.Text + comboBox6.Text +
                textBox7.Text + comboBox7.Text +
                textBox8.Text + comboBox8.Text +
                textBox9.Text + comboBox9.Text +
                textBox10.Text + comboBox10.Text +
                textBox11.Text + comboBox11.Text +
                textBox12.Text + comboBox12.Text +
                textBox13.Text + comboBox13.Text +
                textBox14.Text + comboBox14.Text;
            milaAlgo m = new milaAlgo(word);

            NumOfSyl.Text = "" + m.MisparHavarot();
            if (m._havaraPtuha.Equals("") && !m._havaraSgura.Equals(""))
            {
                ClodeSyl.Text = "כן";
                openSyl.Text  = "לא";
            }
            else
            {
                ClodeSyl.Text = "לא";
                openSyl.Text  = "כן";
            }
            //MessageBox.Show(m.MisparHavarot() + " Ptucha: " + m._havaraPtuha + " Sgura: " + m._havaraSgura);
        }
Esempio n. 2
0
 private void okButton_Click(object sender, EventArgs e)
 {
     string word =
         textBox1.Text + comboBox1.Text +
         textBox2.Text + comboBox2.Text +
         textBox3.Text + comboBox3.Text +
         textBox4.Text + comboBox4.Text +
         textBox5.Text + comboBox5.Text +
         textBox6.Text + comboBox6.Text +
         textBox7.Text + comboBox7.Text +
         textBox8.Text + comboBox8.Text +
         textBox9.Text + comboBox9.Text +
         textBox10.Text + comboBox10.Text +
         textBox11.Text + comboBox11.Text +
         textBox12.Text + comboBox12.Text +
         textBox13.Text + comboBox13.Text +
         textBox14.Text + comboBox14.Text;
     milaAlgo m = new milaAlgo(word);
     //MessageBox.Show(m.MisparHavarot() + " Ptucha: " + m._havaraPtuha + " Sgura: " + m._havaraSgura);
 }
Esempio n. 3
0
        private void okButton_Click(object sender, EventArgs e)
        {
            byte[]       imageBT = null;
            FileStream   fstream = new FileStream(picpath, FileMode.Open, FileAccess.Read);
            BinaryReader br      = new BinaryReader(fstream);

            imageBT = br.ReadBytes((int)fstream.Length);

            try
            {
                milaAlgo m   = new milaAlgo(word);
                string   nos = "" + m.MisparHavarot();
                string   oc  = "";
                if (m._havaraPtuha.Equals("") && !m._havaraSgura.Equals(""))
                {
                    oc = "Open";
                }
                else
                {
                    oc = "Close";
                }
                db_connection k   = new db_connection();
                bool          ans = k.insert_word(word, nos, oc, comboBox15.Text, comboBox16.Text, comboBox17.Text, comboBox18.Text, comboBox19.Text, comboBox20.Text, im);

                if (ans)
                {
                    MessageBox.Show("Insert");
                }
                else
                {
                    MessageBox.Show("Not insert");
                }
            }
            catch { }
            DialogResult dialogResult = MessageBox.Show("להכניס מילה נוספת?", "הוספת מילה", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                NumOfSyl.ResetText();
                ClodeSyl.ResetText();
                openSyl.ResetText();
                pictureBox1.Image = null;
                comboBox1.ResetText(); textBox1.ResetText();
                comboBox2.ResetText(); textBox2.ResetText();
                comboBox3.ResetText(); textBox3.ResetText();
                comboBox4.ResetText(); textBox4.ResetText();
                comboBox5.ResetText(); textBox5.ResetText();
                comboBox6.ResetText(); textBox6.ResetText();
                comboBox7.ResetText(); textBox7.ResetText();
                comboBox8.ResetText(); textBox8.ResetText();
                comboBox9.ResetText(); textBox9.ResetText();
                comboBox10.ResetText(); textBox10.ResetText();
                comboBox11.ResetText(); textBox11.ResetText();
                comboBox12.ResetText(); textBox12.ResetText();
                comboBox13.ResetText(); textBox13.ResetText();
                comboBox14.ResetText(); textBox14.ResetText();
                comboBox15.ResetText();
                comboBox16.ResetText();
                comboBox17.ResetText();
                comboBox18.ResetText();
                comboBox19.ResetText();
                comboBox20.ResetText();
            }
            else if (dialogResult == DialogResult.No)
            {
                _back.Show();
                this.Dispose();
            }
        }