private static void LoadLayouts(string @FileName) { IBWindow.AllWindowClose(); IBTabItem.ClearAllIBTabItemList(); using (StreamReader sr = new StreamReader(FileName)) { while (!sr.EndOfStream) { string line = sr.ReadLine(); switch (line) { case "// MainWindow": LoadMainWindow(sr); break; case "// Window": LoadWindow(sr); break; default: break; } } } IBPanel.ResetLayout(); }
protected override void MaskRect_MouseLeave(object sender, MouseEventArgs e) { //base.MaskRect_MouseLeave(sender, e); if (isMouseDown) { if (!isDummyItem) { DragDrop.DoDragDrop(this, this, DragDropEffects.Move); } IBPanel.ResetLayout(); } isMouseDown = false; }