static string GetSplitContainerState(SplitContainer splitContainer) { Hashtable table = new Hashtable(); table["ratio"] = GuiUtil.GetSplitterState(splitContainer).ToString(); table["orientation"] = splitContainer.Orientation == Orientation.Vertical ? "v" : "h"; return splitContainer.GetType().ToString() + ":" + StringUtil.BuildParameterString(table); }
static string GetSplitContainerState(SplitContainer splitContainer) { return splitContainer.GetType().ToString() + ":" + GuiUtil.GetSplitterState(splitContainer).ToString(); }