public OptionsForm(ref Options options, ref LoopThread loopThread, MainForm mainForm) { InitializeComponent(); _options = options; _loopThread = loopThread; _mainForm = mainForm; OptionsFormVisibleChanged(null, null); }
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); }