Ejemplo n.º 1
0
        private void buttonX12_Click(object sender, EventArgs e)
        {
            CoresEditAdder CoresEditAdder = new CoresEditAdder();

            CoresEditAdder.idVite = idvite;
            if (CoresEditAdder.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                CouressList.Add(CoresEditAdder.CouressEdit);
                IntAdderCoress.Add(CouressList.Count - 1);
                needSeaving = true;
            }
            ClassDataGridViewDo.DataGridEnterGridToWorkCorser(dataGridViewX2, CouressList);
        }
Ejemplo n.º 2
0
        private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                CoresEditAdder Detalis1 = new CoresEditAdder();
                Detalis1.idVite      = NameOfCouress.id;
                this.Opacity         = 0.5;
                Detalis1.CouressEdit = CouressList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList)];
                if (Detalis1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    CouressList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList)] = Detalis1.CouressEdit;

                    if (ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value) > 0)
                    {
                        IntEditCoress.Add(ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList));
                    }
                }

                ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CouressList, VitlByIdList);
                this.Opacity = 1;
            }
        }
Ejemplo n.º 3
0
        private void buttonX2_Click(object sender, EventArgs e)
        {
            CoresEditAdder CoresEditAdder = new CoresEditAdder();

            CoresEditAdder.ToAddInCores = true;
            if (Type != 0)
            {
                CoresEditAdder.idVite = NameOfCouress.id;

                if (CoresEditAdder.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                {
                    CouressList.Add(CoresEditAdder.CouressEdit);
                    IntAdderCoress.Add(CouressList.Count - 1);

                    VitlByIdList.Clear();
                    foreach (Couress Couressv in CouressList)
                    {
                        VitlByIdList.Add(Vitl.VitlIdAndName(Couressv.Id_Information));
                    }

                    ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CoresEditAdder.CouressEdit, VitlByIdList[CouressList.IndexOf(CoresEditAdder.CouressEdit)]);
                }
            }
        }