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

            _options = options;
            _loopThread = loopThread;
            _mainForm = mainForm;
            OptionsFormVisibleChanged(null, null);
        }
Esempio 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);
        }
Esempio n. 3
0
 public Listener(ref Options options, MainForm mainForm)
 {
     _options = options;
     _mainForm = mainForm;
 }
Esempio n. 4
0
 public LoopThread(ref Options options, MainForm mainForm)
 {
     _options = options;
     _mainForm = mainForm;
 }