Ejemplo n.º 1
0
        public OptionsForm(ref Options options, ref LoopThread loopThread, MainForm mainForm)
        {
            InitializeComponent();

            _options = options;
            _loopThread = loopThread;
            _mainForm = mainForm;
            OptionsFormVisibleChanged(null, null);
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            _trayIcon.Visible = false;
            _trayIcon.MouseClick += TrayIconMouseClick;
            _trayIcon.Icon = Icon;
            _trayIcon.Text = Text;

            _options = Options.LoadFromFile(this);
            _options.PrintDebug = checkBoxDebug.Checked;
            _loopThread = new LoopThread(ref _options, this);
            _listener = new Listener(ref _options, this);

            _optionsForm = new OptionsForm(ref _options, ref _loopThread, this);
        }
Ejemplo n.º 3
0
 public Listener(ref Options options, MainForm mainForm)
 {
     _options = options;
     _mainForm = mainForm;
 }
Ejemplo n.º 4
0
 public LoopThread(ref Options options, MainForm mainForm)
 {
     _options = options;
     _mainForm = mainForm;
 }