private static void LoadingDefaultQuickAcess(object?sender, RegistryEventArgs <string> args) { args.AddAll(new Dictionary <string, string> { ["Desktop"] = "$Desktop", ["Pictures"] = "$Pictrues", ["Videos"] = "$Videos", ["Music"] = "$Music", ["Documents"] = "$Documents" }); }
private static void LoadingDefaultVariables(object?sender, RegistryEventArgs <object> args) { // We do not use AppDataPaths because of its limit args.AddAll(new Dictionary <string, object> { ["$Desktop"] = Environment.SpecialFolder.Desktop.Get(), ["$Pictures"] = Environment.SpecialFolder.MyPictures.Get(), ["$Videos"] = Environment.SpecialFolder.MyVideos.Get(), ["$Music"] = Environment.SpecialFolder.MyMusic.Get(), ["$Documents"] = Environment.SpecialFolder.MyDocuments.Get() }); // TODO: Add Downloads }
public abstract void OnItemsAndBlocksRegistry(RegistryEventArgs args);
protected void OnValueChanged(RegistryEventArgs e) { ValueChanged?.Invoke(this, e); }
protected void OnSubkeyChanged(RegistryEventArgs e) { SubkeyChanged?.Invoke(this, e); }
public override void OnItemsAndBlocksRegistry(RegistryEventArgs args) { MyBlock = new SumBlock(); args.Register(MyBlock); }