コード例 #1
0
ファイル: Coder.cs プロジェクト: 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();
		}
コード例 #2
0
ファイル: Program.cs プロジェクト: mind0n/hive
		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");
        }
コード例 #3
0
 public static DeskWall GetInstance()
 {
     if (_instance == null)
     {
         _instance = new DeskWall();
     }
     return((DeskWall)_instance);
 }
コード例 #4
0
ファイル: StickyNote.cs プロジェクト: mind0n/hive
		protected void OnLoad(DeskWall sender, PluginItem pl)
		{
			Init();
			Controller = new StickyNotesController();
			Controller.BelongModule = this;
			Application.Run(Controller);
		}
コード例 #5
0
ファイル: WallRegistry.cs プロジェクト: mind0n/hive
		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>");
		}
コード例 #6
0
ファイル: MainModule.cs プロジェクト: mind0n/hive
		public static DeskWall GetInstance()
		{
			if (_instance == null)
			{
				_instance = new DeskWall();
			}
			return (DeskWall)_instance;
		}