コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            client_motion frm = new client_motion();

            frm.state = "close";
            this.Close();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            client_motion frm = new client_motion();

            if (txt_number_of_staying_hours.Text == string.Empty)
            {
                MessageBox.Show("يرجي ادخال عدد ساعات العمل", "فشل", MessageBoxButtons.OK);
            }
            number_of_staying_hours = Convert.ToDouble(txt_number_of_staying_hours.Text);

            frm.state = "data";

            this.Close();
        }
コード例 #3
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            client_motion frm = new client_motion();

            frm.txt_dely_minute.Text = "0";

            Cursor.Current = Cursors.Default;

            for (int i = 0; i < motions.get_types_of_motions().Rows.Count; i++)
            {
                frm.combo_cat.Items.Add(motions.get_types_of_motions().Rows[i][1]);
            }

            frm.txt_month.Text = dateTimePicker1.Value.Month.ToString();
            frm.txt_year.Text  = dateTimePicker1.Value.Year.ToString();
            frm.txt_day.Text   = dateTimePicker1.Value.Day.ToString();


            frm.data_all_clients.DataSource = motions.get_cleint_name_id_department_role();
            Cursor.Current = Cursors.Default;
            frm.ShowDialog();
        }