public EntryWindow()
 {
     InitializeComponent();
     lbCurrentProfileName.Parent = PicStat;
     statRecvQueue = new List <ulong>(histCount + 1);
     statSentQueue = new List <ulong>(histCount + 1);
     daemon        = VPNDaemon.Empty();
 }
 private void bVpnSwitch_Click(object sender, EventArgs e)
 {
     if (daemon != null && !daemon.Running)
     {
         daemon = new VPNDaemon();
         daemon.OnUnexpectedExit += Reset;
         daemon.Start();
         lbCurrentProfileName.Hide();
         bVpnSwitch.Hide();
         StatTimer.Start();
         MenuItemManageProfile.Enabled = false;
         MenuItemChooseProfile.Enabled = false;
     }
 }