Exemplo n.º 1
0
 private void Load(object sender, RoutedEventArgs e)
 {
     // >> Listener >>
     _frmListenerController    = new FrmListenerController();
     ListenerState.startListen = false;
     if (ListenerState.autoListen == true)
     {
         ListenerState.startListen = true;
         _frmListenerController.listen(ListenerState.listenPort, ListenerState.IPv6Support);
     }
     // >> UserControls >>
     _settings = new Settings(_frmListenerController);
     _builder  = new Builder();
 }
Exemplo n.º 2
0
 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";
     }
 }
Exemplo n.º 3
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";
     }
 }
Exemplo n.º 4
0
        public FrmMain()
        {
            instance = this;

            // >> LISTENER >>
            _frmListenerController    = new FrmListenerController();
            ListenerState.startListen = false;
            if (ListenerState.autoListen == true)
            {
                ListenerState.startListen = true;
                _frmListenerController.listen(ListenerState.listenPort, ListenerState.IPv6Support);
            }
            // << LISTENER <<
            InitializeComponent();
            _frmMainController       = new FrmMainController();
            ClientMosaic.DvgUpdater += dgvUpdater;
        }
Exemplo n.º 5
0
        private void Load(object sender, RoutedEventArgs e)
        {
            // >> Listener >>
            _frmListenerController    = new FrmListenerController();
            ListenerState.startListen = false;
            if (ListenerState.autoListen == true)
            {
                ListenerState.startListen = true;
                _frmListenerController.listen(ListenerState.listenPort, ListenerState.IPv6Support);
                //pipeIcon.Kind = MaterialDesignThemes.Wpf.PackIconKind.LightbulbOn;
            }
            // >> UserControls >>
            _settings = new Settings(_frmListenerController);
            _builder  = new Builder();

            if (ListenerState.ShowTermsAndConditions)
            {
                ShowTermsAndConditions();
            }
        }