コード例 #1
0
        private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            for (int rr = 0; rr < (j + 1) / 2; rr++)
            {
                string str2 = golobal_value.AC[rr, 0].ToString();
                if (golobal_value.AC[rr, 0] == 0)
                {
                    continue;
                }
                else
                {
                    string L   = Con[rr, 0].ToString() + Con[rr, 1].ToString();
                    double Dis = golobal_value.AC[rr, 0];
                    var    db  = new AccessDb();
                    db.InsertLine(L, Dis);
                }
            }

            for (int rr = 0; rr < c; rr++)
            {
                double p  = RecNum[rr];
                double x  = golobal_value.AP[rr, 0];
                double y  = golobal_value.AP[rr, 1];
                var    db = new AccessDb();
                db.InsertPoint(p, x, y);
            }
            for (int rr = 0; rr < (ang + 1) / 3; rr++)
            {
                string str1 = ConAng[rr, 0].ToString() + ConAng[rr, 1].ToString() + ConAng[rr, 2].ToString();
                string Ang  = "∠" + str1;
                double d    = golobal_value.AAng[rr, 0];
                double m    = golobal_value.AAng[rr, 1];
                double s    = golobal_value.AAng[rr, 2];
                var    db   = new AccessDb();
                db.InsertAng(Ang, d, m, s);
            }
        }