예제 #1
0
        private async void buttonX2_Click(object sender, EventArgs e)
        {
            AdderNameForTeam AdderNameForTeam1 = new AdderNameForTeam();

            AdderNameForTeam1.NameTeam = NameTeam;
            if (AdderNameForTeam1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                await Sqldatabasethrding.SqlSaveVitl(AdderNameForTeam1.Team.adder());

                UpdateTheNewAdderOrEdit();
            }
        }
예제 #2
0
        private async void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                AdderNameForTeam EditTame = new AdderNameForTeam();


                this.Opacity      = 0.5;
                EditTame.NameTeam = NameTeam;
                EditTame.Team     = TeamList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), TeamList)];
                if (EditTame.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    await Sqldatabasethrding.SqlSaveVitl(EditTame.Team.updata());


                    UpdateTheNewAdderOrEdit();
                }


                this.Opacity = 1;
            }
        }