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(); }
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"); }
public static DeskWall GetInstance() { if (_instance == null) { _instance = new DeskWall(); } return((DeskWall)_instance); }
protected void OnLoad(DeskWall sender, PluginItem pl) { Init(); Controller = new StickyNotesController(); Controller.BelongModule = this; Application.Run(Controller); }
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>"); }
public static DeskWall GetInstance() { if (_instance == null) { _instance = new DeskWall(); } return (DeskWall)_instance; }