using System;
using System.Windows.Forms;

namespace DMClientDemo
{
    public partial class DtViewer : Form
    {
        public DtViewer()
        {
            InitializeComponent();
        }

        private void DTViewer_Load(object sender, EventArgs e)
        {
            const string cmd = "Provider=msolap.3;Datasource=.;Initial Catalog=Analytics;";
            treeViewer.ConnectionString = cmd;
            treeViewer.MiningModelName = "DT";
            treeViewer.LoadViewerData(cmd);
        }
    }
}
