コード例 #1
0
        private void OpenDetailView(AbstractTransport transport)
        {
            var detailForm = new DetailViewCarForm();

            detailForm.SetCorrectTransportType(transport);
            detailForm.Show();
            this.Hide();
        }
コード例 #2
0
        private void SearchBox_TextChanged(object sender, EventArgs e)
        {
            GridTransport.Rows.Clear();
            List <AbstractTransport> findedItems;

            if (searchBox.Text != "")
            {
                findedItems = this.listTransport.Where(x => x.CheckExist(searchBox.Text)).ToList();
            }
            else
            {
                findedItems = this.listTransport;
            }
            AbstractTransport.SetDataInGrid(this.GridTransport, findedItems);
        }
コード例 #3
0
 private void FillListView()
 {
     this.listTransport = DataBaseService.GetInstanse().GetAllTransports();
     AbstractTransport.SetDataInGrid(this.GridTransport, this.listTransport);
 }