Exemplo n.º 1
0
 private void OnReload(ReloadEventArgs args)
 {
     BTDatabase.GBGet(); BTDatabase.PGet();
 }
Exemplo n.º 2
0
 private void OnReload(ReloadEventArgs reloadEventArgs)
 {
     EventManager.DisconnectClients();
     Global.Config = null;
 }
Exemplo n.º 3
0
        /// <summary>
        /// 程序集在添加到 MS 的 DefaultAppDomain (或者是用户指定的自定义 AppDomain)之后,再不进行卸载的情况下又重新加载。
        /// Handles MDL LOAD requests after the application has been loaded.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="eventArgs"></param>
        private void PowerCivilAddin1_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
        {
            MessageBox.Show(@"ProgramTest Reload");

            //TODO: add specific handling For this Event here
        }
Exemplo n.º 4
0
 private void OnReload(ReloadEventArgs args)
 {
     regions.Clear();
     Import(new EventArgs());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Called when the TShock reload command is issued
 /// </summary>
 /// <param name="args">event arguments passed by hook</param>
 private void OnReload(ReloadEventArgs args)
 {
     Util.Log("Reload triggered. Please note that Discord bot token changes require a restart to take effect.", Util.Severity.Info);
     Config.Parse();
     Util.Log("Reload complete.", Util.Severity.Info);
 }
Exemplo n.º 6
0
 private void BentleyTrain01_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
 }
Exemplo n.º 7
0
 private void PBReload(ReloadEventArgs args)
 {
     config = Config.Read(configPath);
 }
Exemplo n.º 8
0
 private void LoadDynamicControl(bool firstReload, object extra)
 {
     if (Reload != null && _key != null)
     {
         foreach (string idx in _key.Split('|'))
         {
             if (!string.IsNullOrEmpty(idx))
             {
                 ReloadEventArgs e = 
                     new ReloadEventArgs(
                         idx.IndexOf("<") == 0 ? idx.Substring(1) : idx, 
                         extra, 
                         firstReload,
                         idx.IndexOf("<") == 0);
                 Reload(this, e);
             }
         }
     }
     else if(Reload == null && !string.IsNullOrEmpty(_key))
     {
         foreach (string idx in _key.Split('|'))
         {
             if (!string.IsNullOrEmpty(idx))
             {
                 if (idx.IndexOf("<") == 0)
                 {
                     Controls.AddAt(0, Page.LoadControl(idx.Substring(1)));
                 }
                 else
                 {
                     Controls.Add(Page.LoadControl(idx));
                 }
             }
         }
     }
 }
Exemplo n.º 9
0
 private void OnReload(ReloadEventArgs Args) =>
 Overrides.Reload();
Exemplo n.º 10
0
 private void OnReload(ReloadEventArgs e)
 {
     onLoad();
 }
Exemplo n.º 11
0
 private void OnReload(ReloadEventArgs args)
 {
     Config = Config.ReadConfig();
 }
Exemplo n.º 12
0
 private void OnReload(ReloadEventArgs e)
 {
     Config = Config.Read(Config.ConfigPath);
     Database.LoadDatabase();
     e.Player.SendSuccessMessage("PvPModifier reloaded.");
 }
Exemplo n.º 13
0
 ///<summary>
 /// Handles MDL ONUNLOAD requests when the application Is being unloaded.
 /// </summary>
 /// <param name="eventArgs"></param>
 private void $safeprojectname$_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
     //TODO: add specific handling for this event here
 }
 private void OnReload(ReloadEventArgs reloadEventArgs)
 {
     Console.WriteLine("Reload TshockLogs_Explosives_Config.json");
     ExplosivesConfig = Explosives_Config.Read(ConfigFilePath);
     SetupExplosivesDictionary();
 }
Exemplo n.º 15
0
 /// <summary>
 /// Handles MDL LOAD requests after the application has been loaded.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void NetworkDesigner_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
     //TODO: add specific handling For this Event here
 }
Exemplo n.º 16
0
        void OnReload(ReloadEventArgs e)
        {
            string cpath = Path.Combine(TShock.SavePath, "CurrencyBank", "Config.json");

            Config = Config.Read(cpath);
        }
Exemplo n.º 17
0
 void OnReload(ReloadEventArgs args)
 {
     Utils.ReloadConfig();
     args.Player.SendSuccessMessage("NewDiscordBridge config reloaded.");
 }
Exemplo n.º 18
0
 private void OnReload(ReloadEventArgs args)
 {
     config = Config.loadConfig(configPath);
 }
Exemplo n.º 19
0
 public static void OnReloadEvent(ReloadEventArgs args)
 {
     Read();
 }
Exemplo n.º 20
0
 //Runs when /reload is used
 private static void ReloadWarp(ReloadEventArgs args)
 {
     DB.ReloadWarpplates();
 }
Exemplo n.º 21
0
 private void SetPWVarsCE_ReloadEvent(Bentley.MstnPlatformNET.AddIn sender, ReloadEventArgs eventArgs)
 {
 }
Exemplo n.º 22
0
 private void OnReload(ReloadEventArgs args)
 {
     config = Config.loadConfig(configPath);
     args.Player.SendSuccessMessage("[Statistics] Successfully reloaded config");
 }
Exemplo n.º 23
0
 /// <summary>Handles MDL LOAD requests after the application has been loaded.
 /// </summary>
 private void AddInMain_ReloadEvent(Bentley.MicroStation.AddIn sender, ReloadEventArgs eventArgs)
 {
     BoltControl.ShowForm(this);
 }
Exemplo n.º 24
0
 private void OnReload(ReloadEventArgs args)
 {
     config.ReadFile(path);
 }
Exemplo n.º 25
0
 private void PDIWT_MS_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
 }
Exemplo n.º 26
0
 private void $safeprojectname$_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
 }
Exemplo n.º 27
0
 /// <summary>
 /// Internal hook, fired whenever a player executes /reload.
 /// </summary>
 /// <param name="args">The <see cref="ReloadEventArgs"/> object.</param>
 private void OnReload(ReloadEventArgs args)
 {
     LoadConfig();
     Task.Run(() => USFDatabase.LoadPlayerData());
 }
Exemplo n.º 28
0
 private static void OnReload(ReloadEventArgs e)
 {
     Config = Configuration.Read(Configuration.FilePath);
     Config.Write(Configuration.FilePath);
     e.Player.SendSuccessMessage("已重新载入 Nanami 配置.");
 }
Exemplo n.º 29
0
 /// <summary>
 /// Handles MDL LOAD requests after the application has been loaded.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void AIT_ReloadEvent(BM.AddIn sender, ReloadEventArgs eventArgs)
 {
     RunAIT();
 }