示例#1
0
        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();
        }
示例#2
0
        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();
            }
        }
示例#3
0
        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();
        }