//-------------------------------

        //-------------------------------
        public string print(int n)
        {
            //parameter 0: print title and daten
            //parameter 1: only print daten
            string str = null;

            if (n != 0 && n != 1)
            {
                //MessageBox.Show("Function parameter error.");
            }
            else
            {
                str = _name + " "
                      + _type.ToString() + "    "
                      + _coor[0].ToString() + " " + _coor[1].ToString() + " "
                      + _daround[0, 0].ToString() + " " + _daround[0, 1].ToString() + " " + _daround[1, 0].ToString() + " " + _daround[1, 1].ToString() + "\r\n";
                if (n == 0)
                {
                    str = "Name" + "    " + "Type" + "  " + "X-Coordinate" + "  " + "Y-Coordinate" + "  "
                          + "D_00" + "   " + "D_01" + "   " + "D_10" + "   " + "D_11" + "   " + "\r\n" + str;
                }
                else
                {
                    str = null + str;
                }
            }
            return(str);
        }