void mapControl_MapLoaded(EpiDashboard.Mapping.StandaloneMapControl control, bool isTimeLapsePossible) { //btnAddLayer.Enabled = true; //btnOpen.Enabled = true; //btnSave.Enabled = true; //btnSaveImage.Enabled = true; //btnTimeLapse.Enabled = isTimeLapsePossible; //btnReference.Enabled = true; }
void mapControl_MapLoaded(EpiDashboard.Mapping.StandaloneMapControl mapForm, bool isTimeLapsePossible) { btnDataLayer.Enabled = true; btnOpen.Enabled = true; btnSave.Enabled = true; btnSaveAsImage.Enabled = true; btnTimeLapse.Enabled = isTimeLapsePossible; btnReference.Enabled = true; }
void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { mapControl = new EpiDashboard.Mapping.StandaloneMapControl(); mapControl.RecordSelected += new EpiDashboard.Mapping.RecordSelectedHandler(mapControl_RecordSelected); mapControl.DataSourceRequested += new EpiDashboard.Mapping.DataSourceRequestedHandler(mapControl_DataSourceRequested); mapControl.MapLoaded += new EpiDashboard.Mapping.MapLoadedHandler(mapControl_MapLoaded); host.Child = mapControl; this.Width++; this.Width--; }
public ChoroplethProperties(EpiDashboard.Mapping.StandaloneMapControl mapControl, ESRI.ArcGIS.Client.Map myMap) { InitializeComponent(); this.mapControl = mapControl; this.myMap = myMap; ////this.DashboardHelper = dashboardHelper; //if (DashboardHelper.IsUsingEpiProject) //{ // //txtProjectPath.Text = dashboardHelper.View.Project.FilePath; // if (System.IO.File.Exists(txtProjectPath.Text)) // { // cmbFormName.Items.Clear(); // Project project = new Project(txtProjectPath.Text); // foreach (View view in project.Views) // { // cmbFormName.Items.Add(view.Name); // } // } // //cmbFormName.Text = dashboardHelper.View.Name; //} //else //{ // //if (!string.IsNullOrEmpty(dashboardHelper.CustomQuery)) // //{ // // SqlQuery = DashboardHelper.CustomQuery; // //} //} //tblockRows.Text = dashboardHelper.DataSet.Tables[0].Rows.Count.ToString() + " unfiltered rows"; //tblockColumns.Text = dashboardHelper.DataSet.Tables[0].Columns.Count.ToString() + " columns"; //tblockCacheDateTime.Text = "Data last cached at " + dashboardHelper.LastCacheTime.ToShortDateString() + " " + dashboardHelper.LastCacheTime.ToShortTimeString(); //tblockCacheTimeElapsed.Text = "Took " + dashboardHelper.TimeToCache + " to locally cache data"; Epi.ApplicationIdentity appId = new Epi.ApplicationIdentity(typeof(Configuration).Assembly); tblockCurrentEpiVersion.Text = "Epi Info " + appId.Version; //lbxRelatedDataSources.Items.Clear(); //if (dashboardHelper.ConnectionsForRelate.Count > 0) //{ // // Related Data // foreach (RelatedConnection rConn in dashboardHelper.ConnectionsForRelate) // { // lbxRelatedDataSources.Items.Add(rConn.db.ConnectionString); // } //} }
public MapMainForm() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Configuration.GetNewInstance().Settings.Language); InitializeComponent(); host = new ElementHost(); host.Dock = DockStyle.Fill; this.toolStripContainer1.ContentPanel.Controls.Add(host); mapControl = new EpiDashboard.Mapping.StandaloneMapControl(); mapControl.DataSourceRequested += new EpiDashboard.Mapping.DataSourceRequestedHandler(mapControl_DataSourceRequested); mapControl.MouseCoordinatesChanged += new EpiDashboard.Mapping.MouseCoordinatesChangedHandler(mapControl_MouseCoordinatesChanged); mapControl.MapLoaded +=new EpiDashboard.Mapping.MapLoadedHandler(mapControl_MapLoaded); host.Child = mapControl; this.Width++; this.Width--; }
public MapMainForm() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Configuration.GetNewInstance().Settings.Language); InitializeComponent(); host = new ElementHost(); host.Dock = DockStyle.Fill; this.Controls.Add(host); mapControl = new EpiDashboard.Mapping.StandaloneMapControl(); mapControl.DataSourceRequested += new EpiDashboard.Mapping.DataSourceRequestedHandler(mapControl_DataSourceRequested); mapControl.MouseCoordinatesChanged += new EpiDashboard.Mapping.MouseCoordinatesChangedHandler(mapControl_MouseCoordinatesChanged); mapControl.MapLoaded += new EpiDashboard.Mapping.MapLoadedHandler(mapControl_MapLoaded); mapControl.ExpandRequested += new EventHandler(mapControl_ExpandRequested); mapControl.RestoreRequested += new EventHandler(mapControl_RestoreRequested); host.Child = mapControl; this.Width++; this.Width--; }
void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { mapControl = new EpiDashboard.Mapping.StandaloneMapControl(); mapControl.RecordSelected += new EpiDashboard.Mapping.RecordSelectedHandler(mapControl_RecordSelected); mapControl.DataSourceRequested += new EpiDashboard.Mapping.DataSourceRequestedHandler(mapControl_DataSourceRequested); mapControl.MapLoaded += new EpiDashboard.Mapping.MapLoadedHandler(mapControl_MapLoaded); host.Child = mapControl; this.Width++; this.Width--; }