private void loadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Shop.Load();
     ClientBindingSource.ResetBindings(false);
     ForSaleBindingSource.ResetBindings(false);
     Shop.IsDirty = false;
 }
        private void button1_Click_1(object sender, EventArgs e)
        {
            int n = Shop.Warehouse.Count;

            Shop.DateCheck();
            if (Shop.Warehouse.Count > n)
            {
                ForSaleBindingSource.ResetBindings(false);
                ClientBindingSource.ResetBindings(false);
            }
        }
 private void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         string item = (string)ForSaleGrid.SelectedRows[0].Cells[0].Value;
         Shop.WarehouseDelete(item);
         ForSaleBindingSource.ResetBindings(false);
     }
     catch
     {
         MessageBox.Show("Список пуст!");
     }
 }