예제 #1
0
        public void AddPolygon(PointF[] oPoint, Color oColor)
        {
            GetLimit(oPoint);

            if (dtPolygon == null)
            {
                dtPolygon = new DataTable();
                dtPolygon.Columns.Add("Point", typeof(PointF[]));
                dtPolygon.Columns.Add("Color", typeof(Color));
            }


            DataTableClass.DtAddRow(dtPolygon, oPoint, oColor);
        }
예제 #2
0
        public void AddLine(PointF[] oPoint, Color oColor, string Name)
        {
            GetLimit(oPoint);

            if (dtLine == null)
            {
                dtLine = new DataTable();
                dtLine.Columns.Add("Point", typeof(PointF[]));
                dtLine.Columns.Add("Color", typeof(Color));
                dtLine.Columns.Add("Name", typeof(string));
            }


            DataTableClass.DtAddRow(dtLine, oPoint, oColor, Name);
        }
예제 #3
0
        public void AddEllipse(PointF[] oPoint, Color oColor, int oWight, int oHigh)
        {
            GetLimit(oPoint);

            if (dtEllipse == null)
            {
                dtEllipse = new DataTable();
                dtEllipse.Columns.Add("Point", typeof(PointF[]));
                dtEllipse.Columns.Add("Color", typeof(Color));
                dtEllipse.Columns.Add("Wight", typeof(int));
                dtEllipse.Columns.Add("High", typeof(int));
            }


            DataTableClass.DtAddRow(dtEllipse, oPoint, oColor, oWight, oHigh);
        }
예제 #4
0
        public void AddText(PointF oPoint, string oText, Color oColor, int oSize, float oAngle)
        {
            GetLimit(oPoint);

            if (dtText == null)
            {
                dtText = new DataTable();
                dtText.Columns.Add("Point", typeof(PointF));
                dtText.Columns.Add("Text");
                dtText.Columns.Add("Color", typeof(Color));
                dtText.Columns.Add("Size", typeof(int));
                dtText.Columns.Add("Angle", typeof(int));
            }


            DataTableClass.DtAddRow(dtText, oPoint, oText, oColor, oSize, oAngle);
        }