private void OnStartProxy(object sender, RoutedEventArgs e) { if (LogToSQL) { Data = new PacketToLogging(SQLConnection); } StartProxy(); }