/// <summary> /// Creates a new ApplicationListForm object. /// </summary> /// <param name="controller">Reference to MDSController object</param> public ApplicationListForm(MDSController controller) { _controller = controller; _applicationList = new List <ApplicationListItem>(); _emptyList = new List <ApplicationListItem>(); InitializeComponent(); }
/// <summary> /// Constructor. /// </summary> /// <param name="controller">Reference to MDSController object</param> /// <param name="applicationName">Name of the application</param> public EditApplicationWebServicesForm(MDSController controller, string applicationName) { InitializeComponent(); _controller = controller; txtAppName.Text = applicationName; _webServicesList = new BindingList <WebServiceListItem>(); }
/// <summary> /// Creates a new ApplicationListForm object. /// </summary> /// <param name="controller">Reference to MDSController object</param> public ApplicationListForm(MDSController controller) { _controller = controller; _applicationList = new List<ApplicationListItem>(); _emptyList = new List<ApplicationListItem>(); InitializeComponent(); }
/// <summary> /// Constructor. /// </summary> /// <param name="controller">Reference to MDSController object</param> /// <param name="applicationName">Name of the application</param> public EditApplicationWebServicesForm(MDSController controller, string applicationName) { InitializeComponent(); _controller = controller; txtAppName.Text = applicationName; _webServicesList = new BindingList<WebServiceListItem>(); }
public AppRegister(string applicationName, string serverIP, int serverPort) { _applicationName = applicationName; _controller = new MDSController(serverIP, serverPort); _controller.Connect(); }
/// <summary> /// Constructor. /// </summary> public MDSServer() { _settings = MDSSettings.Instance; _serverGraph = new MDSServerGraph(); _clientApplicationList = new MDSClientApplicationList(); _mdsManager = new MDSController("MDSController"); _storageManager = StorageManagerFactory.CreateStorageManager(); _routingTable = new RoutingTable(); _communicationLayer = new CommunicationLayer(); _organizationLayer = new OrganizationLayer(_communicationLayer, _storageManager, _routingTable, _serverGraph, _clientApplicationList, _mdsManager); _mdsManager.OrganizationLayer = _organizationLayer; }
/// <summary> /// Creates a new ServerGraphForm. /// </summary> /// <param name="controller">Reference to MDSController object</param> public ServerGraphForm(MDSController controller) { _controller = controller; _servers = new List <MDSServer>(); _linePen = new Pen(Brushes.Black, 1.0f); _guideLinePen = new Pen(Color.LightGray, 1.0f); _labelSelectingPen = new Pen(Color.Black, 1.0f) { DashStyle = DashStyle.DashDot }; _thisServerBackColor = Color.Crimson; _serverBackColor = Color.DodgerBlue; InitializeComponent(); }
private void btnConnect_Click(object sender, EventArgs e) { try { var port = Convert.ToInt32(txtPort.Text); MDSController = new MDSController(txtIPAddress.Text, port); _settings.SetStringValue("LastConnectedIPAddress", txtIPAddress.Text); _settings.SetIntegerValue("LastConnectedTCPPort", port); Close(); } catch { MDSGuiHelper.ShowErrorMessage("Please check IP address and TCP Port. TCP port must be numeric."); } }
/// <summary> /// Default empty constructor. /// </summary> public MainForm(MDSController controller) { InitializeComponent(); _controller = controller; _controller.ControlMessageReceived += Controller_ControlMessageReceived; }
/// <summary> /// Creates a new ServerGraphForm. /// </summary> /// <param name="controller">Reference to MDSController object</param> public ServerGraphForm(MDSController controller) { _controller = controller; _servers = new List<MDSServer>(); _linePen = new Pen(Brushes.Black, 1.0f); _guideLinePen = new Pen(Color.LightGray, 1.0f); _labelSelectingPen = new Pen(Color.Black, 1.0f) { DashStyle = DashStyle.DashDot }; _thisServerBackColor = Color.Crimson; _serverBackColor = Color.DodgerBlue; InitializeComponent(); }