Beispiel #1
0
        private void createGraph()
        {
            UCBDZsbtopo sbtopo = new UCBDZsbtopo();

            sbtopo.Showdeep = showdeep;
            string p = pid;

            if (pid.StartsWith("jxt"))
            {
                p = "";
            }
            DataTable sbtable = sbtopo.GetSBtable(p);

            shapdic.Clear();
            if (msgbox == null)
            {
                msgbox = new WaitDialogForm("", "绘制图元,请稍候。。。");
            }
            msgbox.Show();
            graphControl1.BeginInitData();
            createGraph(sbtable, "root");
            graphControl1.EndInitData();
            msgbox.Hide();
            sbtopo.Dispose();
            sbtopo = null;
        }
Beispiel #2
0
 private void createGraph()
 {
     UCBDZsbtopo sbtopo = new UCBDZsbtopo();
     sbtopo.Showdeep = showdeep;
     string p = pid;
     if (pid.StartsWith("jxt")) p = "";
     DataTable sbtable = sbtopo.GetSBtable(p);
     shapdic.Clear();
     if (msgbox == null)
         msgbox = new WaitDialogForm("", "����ͼԪ�����Ժ򡣡���");
     msgbox.Show();
     graphControl1.BeginInitData();
     createGraph(sbtable, "root");
     graphControl1.EndInitData();
     msgbox.Hide();
     sbtopo.Dispose();
     sbtopo = null;
 }