Automatak.Simulator.DNP3.DefaultOutstationPlugin.OutstationForm.OutstationForm C# (CSharp) Method

OutstationForm() public method

public OutstationForm ( IOutstation outstation, EventedOutstationApplication application, MeasurementCache cache, ProxyCommandHandler proxy, String alias ) : System
outstation IOutstation
application Automatak.Simulator.DNP3.Commons.EventedOutstationApplication
cache Automatak.Simulator.DNP3.Commons.MeasurementCache
proxy Automatak.Simulator.DNP3.Commons.ProxyCommandHandler
alias String
return System
        public OutstationForm(IOutstation outstation, EventedOutstationApplication application, MeasurementCache cache, ProxyCommandHandler proxy, String alias)
        {
            InitializeComponent();

            this.outstation = outstation;
            this.application = application;
            this.cache = cache;
            this.proxy = proxy;

            this.loader = new ProxyLoader(outstation, cache);

            this.Text = String.Format("DNP3 Outstation ({0})", alias);
            this.comboBoxTypes.DataSource = System.Enum.GetValues(typeof(MeasType));

            this.commandHandlerControl1.Configure(proxy, loader);

            this.comboBoxColdRestartMode.DataSource = System.Enum.GetValues(typeof(RestartMode));

            this.application.ColdRestart += application_ColdRestart;
            this.application.TimeWrite += application_TimeWrite;

            this.CheckState();
        }