Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="currentBackEventArgs"></param>
 private void OnReportBack(BackEventArgs currentBackEventArgs)
 {
     if (ReportBack != null)
     {
         ReportBack(this, currentBackEventArgs);
     }
 }
Пример #2
0
    public void populateAndRender(List <ObjectData> list, DateTime upperbound, DateTime lowerbound, bool activate_temp, List <POICoordinatesObject> poilist, bool camera)
    {
        this.upperbound    = upperbound;
        this.lowerbound    = lowerbound;
        this.activate_temp = activate_temp;

        if (camera)
        {
            int r = list.Count - 9;
            list.RemoveRange(9, r);
        }
        parseToPictureData(list, poilist);
        Debug.Log("COunt" + list.Count);


        if (pictureDataList.Count != 0)
        {
            var eventArgs = new UpdatePicturesEventArgs(pictureDataList);
            // Dispatch the 'Result changed' event

            OnUpdatePictures(this, eventArgs);
        }
        else
        {
            Debug.Log("No Results found");
            var eventArgs = new BackEventArgs();
            OnEDialog(this, eventArgs);
        }
    }
Пример #3
0
        //Functions to call once an Event occurs

        private void HandleBack(object sender, BackEventArgs e)
        {
            IMainMenuModel mainMenuModel = transform.GetComponent <MainMenuController>().GETMainMenuModel();

            model.ChangeVisibility(false);
            mainMenuModel.ChangeVisibility(true);
        }
Пример #4
0
        private void HandleError(object sender, BackEventArgs e)
        {
            view.setErrorDialogVisibility(false);
            IMainMenuController mainMenuController = GetComponent <MainMenuController>();

            mainMenuController.GETMainMenuView().SetMainMenuVisibility(true);
        }
Пример #5
0
        private void SearchDebug(object sender, BackEventArgs e)
        {
            IResultPanelModel   resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();
            IMainMenuController menuController   = GetComponent <MainMenuController>();

            menuController.GETMainMenuModel().ChangeVisibility(false);
            view.setVisibility(false);
            resultPanelModel.renderDebugPicture();
            resultPanelModel.ChangeResultVisibility(true);
        }
Пример #6
0
        private void ShowDialog(object sender, BackEventArgs e)
        {
            view.setAllResultMenuVisibility(false);
            IQueryMenuController controller = gameObject.GetComponent <QueryMenuController>();

            controller.getview().setVisibility(true);
            controller.getview().error();
            controller.getview().setErrorDialogVisibility(true);
            Debug.Log("Error Window showing");
        }
Пример #7
0
        private void HandleSearchSelect(object sender, BackEventArgs e)
        {
            IResultPanelModel resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();

            model.ChangeVisibility(false);
            //resultPanelModel.renderPicture();
            resultPanelModel.ChangeResultVisibility(true);
            IResultPanelView resultPanelView = transform.GetComponent <ResultPanelController>().GETResultPanelView();
            Vector3          newpos          = new Vector3(Camera.main.transform.position.x, Camera.main.transform.position.y, Camera.main.transform.position.z + 1.3f);

            resultPanelView.setResultPosition(newpos);
        }
Пример #8
0
        private void BackEventHandler(object sender, BackEventArgs e)
        {
            if (UseSSRSParams())
            {
                return;
            }
            ReportStore store = GetStore();

            try
            {
                //Keep track of depth
                string script = @"document.getElementById('DrillThroughParams').value = 'parent';";
                if (e.ParentReport.IsDrillthroughReport)
                {
                    Report       rep = new Report(Util.ResolveReference(e.ParentReport.DisplayName, ReportPath), store);
                    DrillThrough dt  = new DrillThrough();
                    dt.ReportPath = Util.ResolveReference(e.ParentReport.DisplayName, ReportPath);
                    if (e.ParentReport.GetType() == typeof(ServerReport))
                    {
                        dt.ParamValues = Util.GetRuntimeParameters(e.ParentReport.GetParameters());
                    }
                    else
                    {
                        dt.ParamValues = ((LocalReport)e.ParentReport).OriginalParametersToDrillthrough;
                    }

                    //Store params for client
                    script = @"document.getElementById('DrillThroughParams').value = '" + JsonConvert.SerializeObject(dt) + "';";
                }
                ScriptManager.RegisterStartupScript(this, this.GetType(), "open", script, true);
            }
            catch (Exception ex)
            {
                string err = ex.Message;

                if (ex.InnerException != null)
                {
                    err = ex.InnerException.Message;
                }

                SetErrorText(err);
            }
        }
Пример #9
0
        private void SearchClicked(object sender, BackEventArgs e)
        {
            Debug.Log(myLocation);

            if (!alreadyfetched)
            {
                var query = CineastUnityInterface.Runtime.Vitrivr.UnityInterface.CineastApi.Utils.QueryBuilder
                            .BuildSpatialSimilarityQuery(myLocation.getLat(), myLocation.getLon());
                QueryCineastAndProcess(query, false);
                alreadyfetched = true;
            }
            else
            {
                setFetchedActiveList();
            }
            IResultPanelModel   resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();
            IMainMenuController menuController   = GetComponent <MainMenuController>();

            IResultPanelView resultPanelView = transform.GetComponent <ResultPanelController>().GETResultPanelView();
            Vector3          newpos          = new Vector3(Camera.main.transform.position.x, Camera.main.transform.position.y, Camera.main.transform.position.z);

            resultPanelView.setResultPosition(newpos);

            menuController.GETMainMenuModel().ChangeVisibility(false);
            view.setVisibility(false);
            resultPanelModel.ChangeResultVisibility(true);

            IMapController mapController = GetComponent <MapController>();

            mapController.GETMapView().setGameObjectVisibility(false);

            IMapMenuController mapMenuController = GetComponent <MapMenuController>();

            mapMenuController.GETMapMenuView().MenuVisibility(false);

            ITemporalController temporalController = GetComponent <TemporalController>();

            temporalController.GETItTemporalView().MenuVisibility(false);
        }
Пример #10
0
    public void populateFetchedList(DateTime upperbound, DateTime lowerbound, bool activate_temp,
                                    List <POICoordinatesObject> poilist)
    {
        this.upperbound    = upperbound;
        this.lowerbound    = lowerbound;
        this.activate_temp = activate_temp;
        List <int> finalkeys = parseActivePictureData(poilist);

        if (finalkeys.Count != 0)
        {
            Debug.Log("Parsed the keys ");
            var eventArgs = new UpdatePicturesEventArgs(finalkeys);
            // Dispatch the 'Result changed' event

            OnUpdatePictures(this, eventArgs);
        }
        else
        {
            Debug.Log("No Results found");
            var eventArgs = new BackEventArgs();
            OnEDialog(this, eventArgs);
        }
    }
 protected void RptVwr_Back(object sender, BackEventArgs e)
 {
     Session["ATypeCd"] = "ALL";
 }
Пример #12
0
    public void backClick()
    {
        var EventArgs = new BackEventArgs();

        OnErrorBack(this, EventArgs);
    }
Пример #13
0
 /// <summary>
 /// Handles back button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void reportViewer1_Back(object sender, BackEventArgs e)
 {
     _localReport = (LocalReport)e.ParentReport;
     OnReportBack(e);
 }
Пример #14
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="currentBackEventArgs"></param>
 private void OnReportBack(BackEventArgs currentBackEventArgs)
 {
     if (ReportBack != null)
     {
         ReportBack(this, currentBackEventArgs);
     }
 }
Пример #15
0
    public void searchClick()
    {
        var EventArgs = new BackEventArgs();

        OnSearch(this, EventArgs);
    }
Пример #16
0
 /// <summary>
 /// Handles back button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void reportViewer1_Back(object sender, BackEventArgs e)
 {
     _localReport = (LocalReport)e.ParentReport;
     OnReportBack(e);
 }
Пример #17
0
        private void OnSearchLogic()
        {
            var eventArgs = new BackEventArgs();

            OnSearch(this, eventArgs);
        }
Пример #18
0
        private void HandleSearch(object sender, BackEventArgs e)
        {
            IQueryMenuController iqQueryMenuController = GetComponent <QueryMenuController>();

            iqQueryMenuController.setAndSearchTemporal(model.UpperBound, model.LowerBound, true);
        }
Пример #19
0
 /// <summary>
 /// Event handler for when the back button is clicked inside the reportviewer control
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void wlbReportView1_ReportBack(object sender, BackEventArgs e)
 {
     //SynchTreeViewReportList();
 }
Пример #20
0
 protected void ReportViewer1_Back(object sender, BackEventArgs e)
 {
 }
Пример #21
0
        private void ShowAgain()
        {
            var eventArgs = new BackEventArgs();

            OnShow(this, eventArgs);
        }
Пример #22
0
 protected void ReportViewer1_Back(object sender, BackEventArgs e)
 {
     this.div_1.Attributes.Add("style", "display:true");
 }
 protected void Rpt_PatientStatistics_Back(object sender, BackEventArgs e)
 {
     Session["ATypeCd"] = "ALL";
 }
Пример #24
0
 /// <summary>
 /// Event handler for when the back button is clicked inside the reportviewer control
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void wlbReportView1_ReportBack(object sender, BackEventArgs e)
 {
     //SynchTreeViewReportList();
 }
Пример #25
0
 private void reportViewer_Back(object sender, BackEventArgs e)
 {
     toolStripReportParam.Visible = true;
 }