Beispiel #1
0
        private void PushUninit_Click(object sender, EventArgs e)
        {
            if (!MyDcamApi.uninit())
            {
                MyShowStatusNG("dcamapi_uninit()", MyDcamApi.m_lasterr);
                return;                         // Fail: dcamapi_uninit()
            }

            // Success: dcamapi_uninit()

            MyShowStatusOK("dcamapi_uninit()");
            MyFormStatus_Startup();             // change dialog FormStatus to Startup
        }
Beispiel #2
0
        // ---------------- DCAM-API related command handler ----------------

        private void PushInit_Click(object sender, EventArgs e)
        {
            // dcamapi_init() may takes for a few seconds
            Cursor.Current = Cursors.WaitCursor;

            if (!MyDcamApi.init())
            {
                MyShowStatusNG("dcamapi_init()", MyDcamApi.m_lasterr);
                Cursor.Current = Cursors.Default;
                return;                         // Fail: dcamapi_init()
            }

            // Success: dcamapi_init()

            MyShowStatusOK("dcamapi_init()");
            MyFormStatus_Initialized();
            Cursor.Current = Cursors.Default;
        }