Ejemplo n.º 1
0
        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();
        }
        public static void ShowControlPanel(object panelOwner)
        {
            IBTabItem trg = panelOwner as IBTabItem;

            if (trg == null)
            {
                return;
            }

            IBWindow ibw = new IBWindow();

            ibw.InputBindings.AddRange(Application.Current.MainWindow.InputBindings);
            ibw.SetIBTabItem(trg.CloneOrCopy());
            ibw.Show();
        }