示例#1
0
        private void buttonX2_Click(object sender, EventArgs e)
        {
            if (!dataGridViewX1.Columns.Contains("id"))
            {
                dataGridViewX1.Columns.Add("Id", "id");
            }

            for (int i = 0; i < dataGridViewX1.Rows.Count; i++)
            {
                if (ClassConvert.Convint(dataGridViewX1.Rows[i].Cells["id"].Value) <= 0)
                {
                    string name = Convert.ToString(dataGridViewX1.Rows[i].Cells["الاسم"].Value);

                    SerchNameBynameRetu SerchNameBynameRetu = new SerchNameBynameRetu();

                    SerchNameBynameRetu.sech = name;
                    SerchNameBynameRetu.DoWorkOff();

                    if (SerchNameBynameRetu.Id > 0)
                    {
                        dataGridViewX1.Rows[i].Cells["id"].Value = SerchNameBynameRetu.Id;
                    }
                    else
                    {
                        SerchNameBynameRetu.Text = name;
                        if (SerchNameBynameRetu.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                        {
                            dataGridViewX1.Rows[i].Cells["id"].Value = SerchNameBynameRetu.Id;
                        }
                    }
                }
            }
        }
        private void buttonX2_Click(object sender, EventArgs e)
        {
            SerchNameBynameRetu SerchNameBynameRetu1 = new SerchNameBynameRetu();

            SerchNameBynameRetu1.sech = textBoxX1.Text;
            SerchNameBynameRetu1.ShowDialog();
            textBoxX1.Text = SerchNameBynameRetu1.sech;
        }
示例#3
0
        private async void buttonX1_Click(object sender, EventArgs e)
        {
            SerchNameBynameRetu SerchNameBynameRetu1 = new SerchNameBynameRetu();

            if (SerchNameBynameRetu1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Vite.Add(new Vitl(SerchNameBynameRetu1.Id));
            }

            ClassDataGridViewDo.DataGridEnterGridForGetdateByID(dataGridViewX1, Vite[Vite.Count - 1], await Team.GetByIdVil(Vite[Vite.Count - 1].id, true), Couress.GetByIdVil(Vite[Vite.Count - 1].id, true));
        }
示例#4
0
 private void comboBoxEx1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.F)
     {
         SerchNameBynameRetu SerchNameBynameRetu1 = new SerchNameBynameRetu();
         SerchNameBynameRetu1.sech = comboBoxEx1.Text;
         if (SerchNameBynameRetu1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             comboBoxEx1.Text = comboBoxEx1.AutoCompleteCustomSource[intList.IndexOf(SerchNameBynameRetu1.Id)];
         }
     }
 }
示例#5
0
        private void buttonX2_Click(object sender, EventArgs e)
        {
            SerchNameBynameRetu SerchNameBynameRetu1 = new SerchNameBynameRetu();

            SerchNameBynameRetu1.ShowDialog();
        }