コード例 #1
0
ファイル: SearchControl.cs プロジェクト: DeadEuclid/Cases
        public SearchControl()
        {
            InitializeComponent();  
            SearchViewer = new DataViewer();

            processor = new DataGridProcessor(dataGridView1, tripModels, typeof(TripInfo));
            tripModels = new BindingList<TripSearch>();

        }
コード例 #2
0
        public ChoseForm(IEnumerable <object> set)
        {
            InitializeComponent();
            viewProcessor = new DataGridProcessor(dataGridView1);
            type          = set.GetType();
            var typeModel = type.GetGenericArguments()[0];
            var valueName = typeModel.GetTitle();

            this.Text = "Выбор " + valueName;

            viewProcessor.ShowData((IEnumerable <object>)set, typeModel);
        }
コード例 #3
0
ファイル: TiketsViewForm.cs プロジェクト: DeadEuclid/DB_Brige
 public TiketsViewForm()
 {
     InitializeComponent();
     viewProcessor = new DataGridProcessor(dataGridView1);
     viewProcessor.ShowData(rep.Tickets.ToList(), typeof(Ticket));
 }
コード例 #4
0
        public TableForm()//object не преобразуется в понятный тип так как может хранить что угодно нужен метод с генерик аргументом
        {
            InitializeComponent();

            viewProcessor = new DataGridProcessor(dataGridView1);
        }