コード例 #1
0
ファイル: FrmListener.cs プロジェクト: suriya73/MosaiqueRAT
 private void btnListen_Click(object sender, EventArgs e)
 {
     if (btnListen.Text == "Start listening")
     {
         ListenerState.listenPort  = Convert.ToInt32(txtPort.Text);
         ListenerState.startListen = true;
         _frmListenerController.listen(int.Parse(txtPort.Text), chkIPv6.Checked);
         btnListen.Text = "Stop listening";
     }
     else
     {
         ListenerState.startListen = false;
         _frmListenerController.stopListening();
         btnListen.Text = "Start listening";
     }
 }
コード例 #2
0
 private void btnListening(object sender, RoutedEventArgs e)
 {
     if (btnListen.Content.ToString() == "Start listening")
     {
         ListenerState.listenPort  = Convert.ToInt32(txtPort.Text);
         ListenerState.startListen = true;
         _frmListenerController.listen(int.Parse(txtPort.Text), chkIPv6.IsChecked.Value);
         btnListen.Content = "Stop listening";
     }
     else
     {
         ListenerState.startListen = false;
         _frmListenerController.stopListening();
         btnListen.Content = "Start listening";
     }
 }