public void InitializeManager() { Settings = ((App)Application.Current).Settings; Driver = new DriverConnector(); Driver.InitializeDevice(); InterfaceConfig = new NetworkInterfaceConfiguation(); //Encryption = new PlainTextEngine(); Encryption = new AesEngineBC(); Encryption.Initialize(); KeyExchange = new KeyExchangeEngine(); KeyExchange.InitializeKey(); HeartbeatTimer = new System.Timers.Timer(TimeBetweenHeartbeats); HeartbeatTimer.Elapsed += HeartbeatTimer_Elapsed; HeartbeatTimer.Start(); }
private void btnExec_Click(object sender, EventArgs e) { DriverConnector abc = new DriverConnector(); }