示例#1
0
        public Manager()
        {
            Env          = new Common.Utils.Env();
            HostConfig   = new Host();
            ClientConfig = new Client();
            if (Env.OperatingSystem == Utils.Env.OS.Mac)
            {
                ConfigPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            }
            else
            {
                ConfigPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
            }

            ConfigPath += Path.DirectorySeparatorChar + "teamscreen" + Path.DirectorySeparatorChar;

            loadConfig();
        }
示例#2
0
 private Manager()
 {
     FileManager = new Driver.Windows.FileManager();
     Env         = new Common.Utils.Env();
     if (Env.OperatingSystem == Common.Utils.Env.OS.Mac)
     {
         Mouse    = new Driver.Mac.Mouse();
         Keyboard = new Driver.Mac.Keyboard();
         Display  = new Driver.Mac.Display();
     }
     else if (Env.OperatingSystem == Common.Utils.Env.OS.Windows)
     {
         Mouse    = new Driver.Windows.Mouse();
         Keyboard = new Driver.Windows.Keyboard();
         Display  = new Driver.Windows.Display();
     }
     else
     {
     }
 }