Example #1
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            newRow = true;

            Item item = manager.AddNewTimesheet();

            if (bindingSource1.Count == 0)
            {
                bindingSource1.Add(item);
            }
            else
            {
                bindingSource1.Insert(0, item);
            }
        }