예제 #1
0
 private void DisposeThemes()
 {
     if (m_ThemeWindow != null)
     {
         m_ThemeWindow.Dispose();
         m_ThemeWindow = null;
     }
     if (m_ThemeRebar != null)
     {
         m_ThemeRebar.Dispose();
         m_ThemeRebar = null;
     }
     if (m_ThemeToolbar != null)
     {
         m_ThemeToolbar.Dispose();
         m_ThemeToolbar = null;
     }
     if (m_ThemeHeader != null)
     {
         m_ThemeHeader.Dispose();
         m_ThemeHeader = null;
     }
     if (m_ThemeScrollBar != null)
     {
         m_ThemeScrollBar.Dispose();
         m_ThemeScrollBar = null;
     }
     if (m_ThemeProgress != null)
     {
         m_ThemeProgress.Dispose();
         m_ThemeProgress = null;
     }
     if (m_ThemeExplorerBar != null)
     {
         m_ThemeExplorerBar.Dispose();
         m_ThemeExplorerBar = null;
     }
     if (m_ThemeButton != null)
     {
         m_ThemeButton.Dispose();
         m_ThemeButton = null;
     }
 }
예제 #2
0
 protected void RefreshThemes()
 {
     if (m_ThemeWindow != null)
     {
         m_ThemeWindow.Dispose();
         m_ThemeWindow = new ThemeWindow(this);
     }
     if (m_ThemeRebar != null)
     {
         m_ThemeRebar.Dispose();
         m_ThemeRebar = new ThemeRebar(this);
     }
     if (m_ThemeToolbar != null)
     {
         m_ThemeToolbar.Dispose();
         m_ThemeToolbar = new ThemeToolbar(this);
     }
     if (m_ThemeHeader != null)
     {
         m_ThemeHeader.Dispose();
         m_ThemeHeader = new ThemeHeader(this);
     }
     if (m_ThemeScrollBar != null)
     {
         m_ThemeScrollBar.Dispose();
         m_ThemeScrollBar = new ThemeScrollBar(this);
     }
     if (m_ThemeProgress != null)
     {
         m_ThemeProgress.Dispose();
         m_ThemeProgress = new ThemeProgress(this);
     }
     if (m_ThemeExplorerBar != null)
     {
         m_ThemeExplorerBar.Dispose();
         m_ThemeExplorerBar = new ThemeExplorerBar(this);
     }
     if (m_ThemeButton != null)
     {
         m_ThemeButton.Dispose();
         m_ThemeButton = new ThemeButton(this);
     }
 }
예제 #3
0
		protected override void WndProc(ref Message m)
		{
			if(m.Msg==NativeFunctions.WM_THEMECHANGED)
			{
				m_ThemeRebar=null;
			}
			base.WndProc(ref m);
		}
예제 #4
0
		protected override void OnHandleDestroyed(EventArgs e)
		{
			if(m_ThemeRebar!=null)
			{
				m_ThemeRebar.Dispose();
				m_ThemeRebar=null;
			}
			base.OnHandleDestroyed(e);
		}
예제 #5
0
		private void RefreshThemes()
		{
			if(m_ThemeWindow!=null)
			{
				m_ThemeWindow.Dispose();
				m_ThemeWindow=new ThemeWindow(this);
			}
			if(m_ThemeRebar!=null)
			{
				m_ThemeRebar.Dispose();
				m_ThemeRebar=new ThemeRebar(this);
			}
			if(m_ThemeToolbar!=null)
			{
				m_ThemeToolbar.Dispose();
				m_ThemeToolbar=new ThemeToolbar(this);
			}
			if(m_ThemeHeader!=null)
			{
				m_ThemeHeader.Dispose();
				m_ThemeHeader=new ThemeHeader(this);
			}
			if(m_ThemeScrollBar!=null)
			{
				m_ThemeScrollBar.Dispose();
				m_ThemeScrollBar=new ThemeScrollBar(this);
			}
		}
예제 #6
0
		private void DisposeThemes()
		{
			if(m_ThemeWindow!=null)
			{
				m_ThemeWindow.Dispose();
				m_ThemeWindow=null;
			}
			if(m_ThemeRebar!=null)
			{
				m_ThemeRebar.Dispose();
				m_ThemeRebar=null;
			}
			if(m_ThemeToolbar!=null)
			{
				m_ThemeToolbar.Dispose();
				m_ThemeToolbar=null;
			}
			if(m_ThemeHeader!=null)
			{
				m_ThemeHeader.Dispose();
				m_ThemeHeader=null;
			}
			if(m_ThemeScrollBar!=null)
			{
				m_ThemeScrollBar.Dispose();
				m_ThemeScrollBar=null;
			}
		}