Пример #1
0
        void getNextClass()
        {
            bool rc = false;

            if (fgetList.Count > 0)  {
                string s = fgetList.Pop(); __status(s + "...");
                rc = fsodb.GetFrame(s, fsouth, fwest, fnorth, feast, fdoc);
            }

            if (!rc) {
                if (fdoc != null) {
                    int count = fdoc.GetCount();

                    if (count > 0)
                    {
                        string s = String.Format("Received {0:0} objects.", count);
                        message(s);

                        s = Path.GetFileName(fdoc.GetPath());
                        message("<" + s + "> created.");
                    }

                    fdoc.Close(); fdoc = null;
                }

                endProcess();
                status.Text = fmsg;
            }
        }
Пример #2
0
        void BtGetClick(object sender, EventArgs e)
        {
            if (sodb_Connected())

            if (GetSelectedClasses() > 0) {

                string dest="";
                int rc=dialDest(ref dest);

                if (rc >= 0) {

                    fdoc=null;

                    if (rc == 0)
                        fdoc = new sodbFeatureToMap(dest);
                    else
                        fdoc = new sodbFeatureToText(dest);

                    if (fdoc != null) {

                        fdoc.workDir(dmw.WorkDir());

               						beginProcess("Get fragment...");

                        fdoc.Extent(fsouth, fwest, fnorth, feast);

               						fsodb.beginGetFrame();
                        getNextClass();
                    }
                }
            }
        }