public _3DSurfaceForm(DataP3[] _data, string _dataType)
 {
     InitializeComponent();
     control = Controller.getInstance();
     data = _data;
     dataType = _dataType;
     Init();
 }
        public _3DSurfaceForm(DataP3[,] _data, string _dataType)
        {
            InitializeComponent();
            control = Controller.getInstance();

            data = new DataP3[_data.Length];
            int indexArr = 0;
            for (int i = 0; i < _data.GetLength(0); i++)
            {
                for (int j = 0; j < _data.GetLength(0); j++)
                {
                    data[indexArr] = _data[i, j];
                    indexArr++;
                }
            }

            dataType = _dataType;
            Init();
        }
 public MainForm()
 {
     InitializeComponent();
     control = Controller.getInstance();
     draw = Draw.getInstance(pictureBox);
 }