private void showOlapStoreButton_Click(object sender, EventArgs e) { var store = new OlapStore("admin"); var server = store.Servers["LOCAL/WDI"]; server.Connect("Admin", ""); TreeForm.Show(server); server.Disconnect(); }
public static void Show(IDictionary <string, Element> dimension, bool modalWindow = true) { TreeForm instance = new TreeForm(); instance.Text = dimension.ToString(); CopyTree(instance.treeView.Nodes, dimension); if (modalWindow) { instance.ShowDialog(); } else { instance.Show(); } }
public static void Show(OlapServer server) { TreeForm instance = new TreeForm(); instance.Text = server.ToString(); var serverNode = instance.treeView.Nodes.Add(server.Name); foreach (OlapCube cube in server.Cubes) { var cubeNode = serverNode.Nodes.Add(cube.Name); foreach (OlapDimension dimension in cube.Dimensions) { var dimensionNode = cubeNode.Nodes.Add(dimension.Name); foreach (OlapElement el in dimension.Elements) { var elementNode = dimensionNode.Nodes.Add(el.Name); } } } instance.Show(); }