using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using WeifenLuo.WinFormsUI.Docking;
namespace IReaper{
public partial class iReaperDockContent : DockContent
{
public iReaperDockContent()
{
InitializeComponent();
Core.CoreData.PropertyChanged += new PropertyChangedEventHandler(CoreData_PropertyChanged);
this.DockPanel = Core.CoreData[CoreDataType.ActiveDockPanel] as DockPanel;
}
void CoreData_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == CoreDataType.ActiveDockPanel.ToString())
{
DockPanel panel = Core.CoreData[CoreDataType.ActiveDockPanel] as DockPanel;
//
if (this.DockPanel != panel)
{
this.DockPanel = panel;
}
}
}
}
}
|