Exemplo n.º 1
0
        private void TestConnection()
        {
            OverlayBackgroundWorker worker = new OverlayBackgroundWorker();

            worker.DoWork             += TestConnectionString;
            worker.RunWorkerCompleted += TestConnectionComplete;
            worker.DisplayControl      = View.FormControl;
            worker.RunWorkerAsync();
        }
Exemplo n.º 2
0
        public PresenterChat()
        {
            MaterialForm = new CFormChat();
            View = (IFormChat)MaterialForm;
            FormControl = View.FormControl;
            QueryParser = new Model.QueryParser();

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
            View.ProcessMessage += View_ProcessMessage;

            workerProcessMessage = new OverlayBackgroundWorker();
            workerProcessMessage.DisplayControl = View.FormControl;
            workerProcessMessage.DoWork += ProcessQuery;
            workerProcessMessage.RunWorkerCompleted += DisplayQuery;
        }
Exemplo n.º 3
0
        public PresenterChat()
        {
            MaterialForm = new CFormChat();
            View         = (IFormChat)MaterialForm;
            FormControl  = View.FormControl;
            QueryParser  = new Model.QueryParser();

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed      += view_Closed;
            View.ProcessMessage  += View_ProcessMessage;

            workerProcessMessage = new OverlayBackgroundWorker();
            workerProcessMessage.DisplayControl      = View.FormControl;
            workerProcessMessage.DoWork             += ProcessQuery;
            workerProcessMessage.RunWorkerCompleted += DisplayQuery;
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
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();
        }
Exemplo n.º 6
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();
        }
Exemplo n.º 7
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();
        }
Exemplo n.º 8
0
        public PresenterChat()
        {
            MaterialForm = new CFormChat();
            View         = (IFormChat)MaterialForm;
            FormControl  = View.FormControl;
            QueryParser  = new Query.QueryParser();
            this.QueryParser.UpdateAIMLKnowledge();
            responseHistory = new List <string>();
            responseHistory.Add("");
            responseHistoryIndex = 0;

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed      += view_Closed;
            View.ProcessMessage  += View_ProcessMessage;
            View.KeyUpPressed    += View_KeyUpPressed;
            View.KeyDownPressed  += View_KeyDownPressed;

            workerProcessMessage = new OverlayBackgroundWorker();
            workerProcessMessage.DisplayControl      = View.FormControl;
            workerProcessMessage.DoWork             += ProcessQuery;
            workerProcessMessage.RunWorkerCompleted += DisplayQuery;
        }
Exemplo n.º 9
0
        public PresenterChat()
        {
            MaterialForm = new CFormChat();
            View = (IFormChat)MaterialForm;
            FormControl = View.FormControl;
            QueryParser = new Query.QueryParser();
            this.QueryParser.UpdateAIMLKnowledge();
            responseHistory = new List<string>();
            responseHistory.Add("");
            responseHistoryIndex = 0;

            View.PropertyChanged += view_PropertyChanged;
            View.ViewClosed += view_Closed;
            View.ProcessMessage += View_ProcessMessage;
            View.KeyUpPressed += View_KeyUpPressed;
            View.KeyDownPressed += View_KeyDownPressed;

            workerProcessMessage = new OverlayBackgroundWorker();
            workerProcessMessage.DisplayControl = View.FormControl;
            workerProcessMessage.DoWork += ProcessQuery;
            workerProcessMessage.RunWorkerCompleted += DisplayQuery;
        }
Exemplo n.º 10
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();
        }
Exemplo n.º 11
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();
        }
Exemplo n.º 12
0
 private void TestConnection()
 {
     OverlayBackgroundWorker worker = new OverlayBackgroundWorker();
     worker.DoWork += TestConnectionString;
     worker.RunWorkerCompleted += TestConnectionComplete;
     worker.DisplayControl = View.FormControl;
     worker.RunWorkerAsync();
 }