コード例 #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Departments dep    = Organisation.findWorker(comboBox4.GetItemText(comboBox4.SelectedItem));
            Worker      worker = dep.getWorker();

            richTextBox1.Text = worker.INFO();
        }
コード例 #2
0
        private void Button6_Click(object sender, EventArgs e)
        {
            Departments dep    = Organisation.findWorker(comboBox4.GetItemText(comboBox4.SelectedItem));
            Worker      worker = dep.getWorker();

            MessageBox.Show("Зарплата сотрудника за год равна: " + worker.plusCash());
        }
コード例 #3
0
        private void Button5_Click(object sender, EventArgs e)
        {
            Departments dep    = Organisation.findWorker(comboBox4.GetItemText(comboBox4.SelectedItem));
            Worker      worker = dep.getWorker();

            MessageBox.Show("Зарплата сотрудника за данный месяц равна: " + worker.requestCash(Convert.ToInt32(comboBox5.GetItemText(comboBox5.SelectedItem))));
        }
コード例 #4
0
        private void Button4_Click(object sender, EventArgs e)
        {
            Departments dep    = Organisation.findWorker(comboBox4.GetItemText(comboBox4.SelectedItem));
            Worker      worker = dep.getWorker();

            worker.Cash(Convert.ToInt32(comboBox5.GetItemText(comboBox5.SelectedItem)), Convert.ToInt32(textBox7.Text));
            MessageBox.Show("Зарплата за указанный месяц добавлена");
        }