Esempio n. 1
0
File: Coder.cs Progetto: mind0n/hive
		public void OnPluginsLoadComplete(DeskWall sender, PluginItem plugin)
		{
			DeskWall mi = DeskWall.GetInstance();
			mi.OnKeyDown += new KeyEventHandler(HookManager_KeyDown);
			mi.OnKeyUp += new KeyEventHandler(HookManager_KeyUp);
			fcf = new CoderForm();
		}
Esempio n. 2
0
		static void Main()
		{
            Logger.Log("<<< Program Started >>>\n");
            MainForm MainWindow;
            m = DeskWall.GetInstance();
			m.ConfigFilePath = AppDomain.CurrentDomain.BaseDirectory;
			m.ConfigFilename = "Wall.config";
			m.Start();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainWindow = new MainForm();
            MainWindow.BelongModule = m;
            m.MainWindow = MainWindow;
            if (MainWindow != null)
            {
                MainWindow.Visible = false;
                MainWindow.ShowInTaskbar = false;
                try
                {
                    m.SetAutoRun();
                    ((MainForm)MainWindow).OnMainFormLoaded += m.Init;
                    //m.RegistWindow("MainWindow", MainWindow, m);
                    {
						XReader xr = m.ConfigReader;
                        MainWindow.BgImgDir = xr["Config"]["Style"]["$BackgroundDir"].Value;
                    }
                    Application.Run(MainWindow);
                }
                catch (Exception err)
                {
                    Exceptions.LogOnly(err);
                }
            }
            Logger.Log("<<< Program Ended >>>\n");
        }
Esempio n. 3
0
 public static DeskWall GetInstance()
 {
     if (_instance == null)
     {
         _instance = new DeskWall();
     }
     return((DeskWall)_instance);
 }
Esempio n. 4
0
		protected void OnLoad(DeskWall sender, PluginItem pl)
		{
			Init();
			Controller = new StickyNotesController();
			Controller.BelongModule = this;
			Application.Run(Controller);
		}
Esempio n. 5
0
		public void OnPluginsLoadComplete(DeskWall sender, PluginItem plugin)
		{
			RegistryReader rcu = new RegistryReader(Registry.CurrentUser);
			rcu = (RegistryReader)rcu.GetChildByPath(@"Software\Microsoft\Windows\CurrentVersion\Internet Settings", '\\');
			rcu.SetValue("ProxyOverride", "*.metlife*.com;<local>");
		}
Esempio n. 6
0
		public static DeskWall GetInstance()
		{
			if (_instance == null)
			{
				_instance = new DeskWall();
			}
			return (DeskWall)_instance;
		}