Esempio n. 1
0
        private void Initialize()
        {
            MaterialForm = new CFormListView();
            View = (IFormListView)MaterialForm;
            FormControl = View.FormControl;
            FormText = "SQLQuery";

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
        }
Esempio n. 2
0
        public PresenterLinie()
        {
            MaterialForm = new CFormListView();
            View = (IFormListView)MaterialForm;
            FormControl = View.FormControl;

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
            View.SetHeaders(new List<string>() { "Nazwa", "Typ" });
            View.RefreshClicked += View_RefreshClicked;
            View.ObjectClicked += View_ObjectClicked;

            workerRefreshGrid = new OverlayBackgroundWorker();
            workerRefreshGrid.DisplayControl = View.FormControl;
            workerRefreshGrid.DoWork += GetLines;
            workerRefreshGrid.RunWorkerCompleted += DisplayLines;
            workerRefreshGrid.RunWorkerAsync();
        }
Esempio n. 3
0
        public PresenterPrzyjazd(Query.Przystanek przystanek)
        {
            this.Przystanek = przystanek;

            MaterialForm = new CFormListView();
            View = (IFormListView)MaterialForm;
            FormControl = View.FormControl;

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
            View.SetHeaders(new List<string>() { "Dzień", "Godzina", "Minuta" });
            View.RefreshClicked += View_RefreshClicked;

            workerRefreshGrid = new OverlayBackgroundWorker();
            workerRefreshGrid.DisplayControl = View.FormControl;
            workerRefreshGrid.DoWork += GetLines;
            workerRefreshGrid.RunWorkerCompleted += DisplayLines;
            workerRefreshGrid.RunWorkerAsync();
        }
Esempio n. 4
0
        public PresenterPrzystanek(Query.WariantTrasy wariant)
        {
            this.Wariant = wariant;

            MaterialForm = new CFormListView();
            View = (IFormListView)MaterialForm;
            FormControl = View.FormControl;

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
            View.SetHeaders(new List<string>() { "Nazwa", "Ulica" });
            View.RefreshClicked += View_RefreshClicked;
            View.ObjectClicked += View_ObjectClicked;

            workerRefreshGrid = new OverlayBackgroundWorker();
            workerRefreshGrid.DisplayControl = View.FormControl;
            workerRefreshGrid.DoWork += GetLines;
            workerRefreshGrid.RunWorkerCompleted += DisplayLines;
            workerRefreshGrid.RunWorkerAsync();
        }