Exemplo n.º 1
0
        private async void buttonX1_Click(object sender, EventArgs e)
        {
            SeliAdderForm SeliAdderForm = new SeliAdderForm();

            SeliAdderForm.ShowDialog();
            Scileis.ScileislList = await Scileis.GetAll();

            ClassDataGridViewDo.DataGridEnterGridForFillScil(dataGridViewX1, Scileis.ScileislList);
        }
        private async void buttonX2_Click(object sender, EventArgs e)
        {
            this.Opacity = 0.5;

            SeliAdderForm SeliAdderForm1 = new SeliAdderForm();

            SeliAdderForm1.ShowDialog();
            Scileis.ScileislList = await Scileis.GetAll();

            ClassDataGridViewDo.DataGridAddVuleComBoxEx(comboBoxEx1, Scileis.ScileislList);

            this.Opacity = 1;
        }
Exemplo n.º 3
0
        private async void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                if (Convert.ToInt32(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value) > 0)
                {
                    SeliAdderForm SeliAdderForm = new SeliAdderForm(Scileis.ScileislList[ClassDataGridViewDo.RetunIndexByIdSech(Convert.ToInt32(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), Scileis.ScileislList)]);
                    SeliAdderForm.ShowDialog();
                    Scileis.ScileislList = await Scileis.GetAll();

                    ClassDataGridViewDo.DataGridEnterGridForFillScil(dataGridViewX1, Scileis.ScileislList);
                }
            }
            else
            {
            }
        }