示例#1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gvCustomerData.SelectedRows.Count == 0)
            {
                "Please Select Details Your Want To Edit.".ShowError();
                return;
            }
            int id       = gvCustomerData.SelectedRows[0].Cells[gvcId.Name].GetString().ToInt();
            var custData = CustomerImplementation.FindById(id);

            /* var custData = new Customer {
             *   Id = 12,
             *   JoiningDate = DateTime.Now,
             *   CustomerName = "abc company",
             *   ContactPerson = "Sagar",
             *   ContactNumber = "9700 5800 12",
             *   Address = "amber talkist",
             *   Email = "*****@*****.**",
             *   OutstadningBalance = 2000.75,
             *   Remarks = "Here Some Remarks"
             * };*/

            frmCustomer_New form = new frmCustomer_New(custData);

            form.ShowDialog();

            FillGrid();
        }
示例#2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmCustomer_New form = new frmCustomer_New();

            form.ShowDialog();

            FillGrid();
        }