Esempio n. 1
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            disposed = true;
            GC.SuppressFinalize(this);

            foreach (Control c in allocatedcontrols)
            {
                c.Dispose();
            }

            myView.Dispose();
        }
Esempio n. 2
0
        void CharacterFilter_Logoff(object sender, Decal.Adapter.Wrappers.LogoffEventArgs e)
        {
            try
            {
                hudUpdateTimer.Stop();

                if (hudView != null)
                {
                    hudView.Dispose();
                    hudView = null;
                }

                if (hudListHead != null)
                {
                    hudListHead.Dispose();
                    hudListHead = null;
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Esempio n. 3
0
 /// <summary>
 /// Called when the plugin is shutting down
 /// </summary>
 public void Shutdown()
 {
     WriteLog($"Plugin.Shutdown");
     view.Visible = false;
     view.Dispose();
 }