コード例 #1
0
        public MainFrame()
        {
            InitializeComponent();

            cocktailDAO = new CocktailDAO();

            InitDateGridView();
        }
コード例 #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            CocktailDAO cocktailDAO = new CocktailDAO();
            CocktailDTO cocktail    = SetDTO();

            bool isSuccess = cocktailDAO.UpdateData(cocktail);

            if (isSuccess)
            {
                this.Dispose();
            }
        }