예제 #1
0
 internal void RegisterTimersGroup(PlayerLayoutView layoutControl)
 {
     if (!flowLayoutPanel1.Controls.Contains(layoutControl))
     {
         layoutControl.WidgetManager = widgetManager;
         flowLayoutPanel1.Controls.Add(layoutControl);
         ApplyTimerGroupsOrdering();
         widgetManager.ResetMouseEvents();
     }
 }
예제 #2
0
 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);
 }