示例#1
0
 internal void RegisterTimersGroup(PlayerLayoutView layoutControl)
 {
     if (!flowLayoutPanel1.Controls.Contains(layoutControl))
     {
         layoutControl.WidgetManager = widgetManager;
         flowLayoutPanel1.Controls.Add(layoutControl);
         ApplyTimerGroupsOrdering();
         widgetManager.ResetMouseEvents();
     }
 }
 public void Initialize()
 {
     try
     {
         layoutControl = new PlayerLayoutView(this);
         if (!Hidden)
         {
             this.timersFeature.RegisterTimersGroup(layoutControl);
         }
         wurmApi.LogsMonitor.Subscribe(CharacterName, LogType.AllLogs, OnNewLogEvents);
         character = wurmApi.Characters.Get(CharacterName);
         character.LogInOrCurrentServerPotentiallyChanged += CharacterOnLogInOrCurrentServerPotentiallyChanged;
     }
     catch (Exception)
     {
         if (layoutControl != null)
         {
             layoutControl.SetInitializationError();
         }
         throw;
     }
     PerformAsyncInits();
 }
示例#3
0
 internal void UnregisterTimersGroup(PlayerLayoutView layoutControl)
 {
     flowLayoutPanel1.Controls.Remove(layoutControl);
     ApplyTimerGroupsOrdering();
     widgetManager.ResetMouseEvents();
 }
示例#4
0
 internal void UnregisterTimersGroup(PlayerLayoutView layoutControl)
 {
     timersForm.UnregisterTimersGroup(layoutControl);
 }