public object Clone() { TwoPanelContainer container = new TwoPanelContainer { SettingsKey = "MainTab" }; container.SuspendLayout(); container.Panel1.SuspendLayout(); container.Panel2.SuspendLayout(); container.LeftPanel = (VirtualFilePanel) this.LeftPanel.Clone(); container.LeftPanel.SettingsKey = "LeftPanel"; container.InitializePanel(container.LeftPanel); container.Panel1.Controls.Add(container.LeftPanel); container.RightPanel = (VirtualFilePanel) this.RightPanel.Clone(); container.RightPanel.SettingsKey = "RightPanel"; container.InitializePanel(container.RightPanel); container.Panel2.Controls.Add(container.RightPanel); container.Orientation = this.Orientation; container.Panel2.ResumeLayout(false); container.Panel1.ResumeLayout(false); container.ResumeLayout(false); container.NewSplitterPercent = this.SplitterPercent; container.NewPanel1Collapsed = base.Panel1Collapsed; container.NewPanel2Collapsed = base.Panel2Collapsed; if (this.FLastCurrentPanel != null) { container.FLastCurrentPanel = (this.FLastCurrentPanel == this.LeftPanel) ? container.LeftPanel : container.RightPanel; } return container; }
public static TwoPanelContainer Create() { TwoPanelContainer container = new TwoPanelContainer { SettingsKey = "MainTab" }; container.SuspendLayout(); container.Panel1.SuspendLayout(); container.Panel2.SuspendLayout(); container.LeftPanel = new VirtualFilePanel(); container.LeftPanel.SettingsKey = "LeftPanel"; container.InitializePanel(container.LeftPanel); container.Panel1.Controls.Add(container.LeftPanel); container.RightPanel = new VirtualFilePanel(); container.RightPanel.SettingsKey = "RightPanel"; container.InitializePanel(container.RightPanel); container.Panel2.Controls.Add(container.RightPanel); container.Panel2.ResumeLayout(false); container.Panel1.ResumeLayout(false); container.ResumeLayout(false); return container; }
private string Write180_SinglePanel(TwoPanelContainer.SinglePanel v) { switch (v) { case TwoPanelContainer.SinglePanel.None: return "None"; case TwoPanelContainer.SinglePanel.Left: return "Left"; case TwoPanelContainer.SinglePanel.Right: return "Right"; } long num = (long) v; throw base.CreateInvalidEnumValueException(num.ToString(CultureInfo.InvariantCulture), "Nomad.TwoPanelContainer.SinglePanel"); }