Ejemplo n.º 1
0
        private void btnCreat_Click(object sender, EventArgs e)
        {
            CocktailInfo info = new CocktailInfo();

            info.btnSave.Click += new EventHandler(RefreshDGV);
            info.StartPosition  = FormStartPosition.Manual;
            info.Location       = new Point(this.Location.X + 30, this.Location.Y + 30);

            info.Show();
        }
Ejemplo n.º 2
0
        private void cockTailDGV_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            CocktailDTO cocktail = new CocktailDTO();
            string      name     = cockTailDGV.SelectedCells[0].Value.ToString();

            cocktail.name = name;
            cocktail      = cocktailDAO.SelectData(cocktail);

            CocktailInfo info = new CocktailInfo(cocktail);

            info.btnUpdate.Click += new EventHandler(RefreshDGV);
            info.StartPosition    = FormStartPosition.Manual;
            info.Location         = new Point(this.Location.X + 30, this.Location.Y + 30);

            info.Show();
        }