コード例 #1
0
ファイル: RentForm.cs プロジェクト: shimakee/BVS
        private void remove_Click(object sender, EventArgs e)
        {
            if (Rentals.Contains(VideoSelected))
            {
                Rentals.Remove(VideoSelected);
            }

            rentalList.DataSource = Rentals;
            totalAmount.DataBindings.Clear();
            totalAmount.DataBindings.Add("Text", this, nameof(this.totalAmount));
        }