Example #1
0
        private void Button8_Click(object sender, EventArgs e)
        {
            int find = DepartamentList.FindDep(textBox6.Text);

            if (find == 1)
            {
                MessageBox.Show("Данный сотрудник работает в организации");
            }
            else
            {
                MessageBox.Show("Данный сотрудник не работает в организации");
            }
        }
Example #2
0
        private void Button5_Click(object sender, EventArgs e)
        {
            dep p;

            p = DepartamentList.Start;
            while (comboBox3.GetItemText(comboBox3.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1)
            {
                p = p.next;
            }
            MessageBox.Show(p.info.INFO());
            string FIO = comboBox3.GetItemText(comboBox3.SelectedItem);

            textBox5.Text = Convert.ToString(DepartamentList.GetNum(FIO));
        }
Example #3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Worker newWorker = new Worker();

            newWorker.addWorker(textBox1.Text, textBox2.Text, textBox3.Text);
            for (int i = 0; i < 12; i++)
            {
                newWorker.CashMounth[i] = 0;
            }
            DepartamentList.insertWorker(newWorker);
            comboBox1.Items.Add(newWorker.FirstName1 + " " + newWorker.Name1 + " " + newWorker.FatherName1);
            comboBox3.Items.Add(newWorker.FirstName1 + " " + newWorker.Name1 + " " + newWorker.FatherName1);
            MessageBox.Show("Сотрудник добавлен.");
        }
Example #4
0
 private void Button6_Click(object sender, EventArgs e)
 {
     richTextBox1.Text = DepartamentList.GetDepINFO();
 }
Example #5
0
 private void Button7_Click(object sender, EventArgs e)
 {
     MessageBox.Show(DepartamentList.GetDepMed());
 }