public Switcher(MainWindow mainWindow)
        {
            InitializeComponent();
            _opacity = 0;
            new Thread(() =>
            {
                while(_opacity < 1)
                {
                    _opacity += 0.02;
                    changeOpacity(Rect1, _opacity);
                    changeOpacity(Rect2, _opacity);
                    changeOpacity(Rect3, _opacity);
                    changeOpacity(Rect4, _opacity);
                    Thread.Sleep(1);
                }
            }).Start();

            _main = mainWindow;
        }
 public Options(MainWindow mainWindow)
 {
     InitializeComponent();
     _main = mainWindow;
 }