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(); }
internal void UnregisterTimersGroup(PlayerLayoutView layoutControl) { flowLayoutPanel1.Controls.Remove(layoutControl); ApplyTimerGroupsOrdering(); widgetManager.ResetMouseEvents(); }
internal void UnregisterTimersGroup(PlayerLayoutView layoutControl) { timersForm.UnregisterTimersGroup(layoutControl); }