Exemplo n.º 1
0
        protected override void ShowDetail(int index)
        {
            Form form = new Form();

            TrainStopTimeSearchControl control = new TrainStopTimeSearchControl();
            Train train = pager.Lists[index] as Train;
            if (train != null)
            {
                form.Text = "����"+train.Cc+"ͣվ��Ϣ";
                control.SetConditions("station_train_code like '%" + train.Cc + "%'");
            }
            control.Dock = DockStyle.Fill;
            form.Controls.Add(control);
            form.Show();
        }
Exemplo n.º 2
0
        protected override void ShowDetail(int index)
        {
            Form form = new Form();

            TrainStopTimeSearchControl control = new TrainStopTimeSearchControl();
            Train train = pager.Lists[index] as Train;

            if (train != null)
            {
                form.Text = "车次" + train.Cc + "停站信息";
                control.SetConditions("station_train_code like '%" + train.Cc + "%'");
            }
            control.Dock = DockStyle.Fill;
            form.Controls.Add(control);
            form.Show();
        }