Exemplo n.º 1
0
        public WindowHider(TrayMgr mgr)
        {
            traymgr = mgr;
            titles  = new List <Tuple <String, int> >();

            string[] lines = System.IO.File.ReadAllLines("windowhider.ini");
            foreach (string line in lines)
            {
                titles.Add(Tuple.Create(line, 0));
            }
        }
Exemplo n.º 2
0
        static void Main()
        {
            if (WindowFuncs.AlreadyOpen())
            {
                return;
            }

            WindowFuncs.HideWindow(hWnd);

            tray = new TrayMgr();
            var trayThread = new Thread(tray.StartTray);

            trayThread.Start();

            hider = new WindowHider(tray);
            var windowThread = new Thread(hider.BeginHiding);

            windowThread.Start();

            windowThread.Join();
            trayThread.Join();
        }