| |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Drawing;
using System.Data;
using System.IO;
using System.Runtime.Remoting;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using ESRI.ArcGIS.E2API;
using RemoteEvents;
using EventListener;
namespace ShowDetection
{
public partial class ShowIncidentsTask : UserControl
{
private const string _coordFormat = "#,##0.0000";
private CustomTaskUI _taskUI = null;
RemoteEvents.RemoteObj remoteObj;
EventListener.EventListener listener;
public ShowIncidentsTask(CustomTaskUI taskUI)
{
try
{
_taskUI = taskUI;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine("ERROR >> " + ex.Message);
}
InitializeComponent();
}
private void ShowIncidentsTask_Load(object sender, EventArgs e)
{
// create the remote object and remotable listener
string configFile = @"C:\Projects\DFFPPortal\ArcTasks\ShowDetection\ShowIncidentsTask.config";
RemotingConfiguration.Configure(configFile, false);
// TASK FAILS HERE
remoteObj = new RemoteEvents.RemoteObj();
listener = new EventListener.EventListener();
}
} |