Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            // 自らのロックファイルを削除する
            Utility.deleteLockFile(Properties.Settings.Default.NgPath, Properties.Settings.Default.lockFileName);

            //他のPCで処理中の場合、続行不可
            if (Utility.existsLockFile(Properties.Settings.Default.NgPath))
            {
                MessageBox.Show("他のPCで処理中です。しばらくおまちください。", "確認", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            //LOCKファイル作成
            Utility.makeLockFile(Properties.Settings.Default.NgPath, Properties.Settings.Default.lockFileName);

            Hide();
            frmNgRecovery frmNg = new frmNgRecovery();

            frmNg.ShowDialog();

            // ロックファイルを削除する
            Utility.deleteLockFile(Properties.Settings.Default.NgPath, Properties.Settings.Default.lockFileName);

            // NG件数更新 : 2017/11/18
            dCountShow();

            Show();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmNgRecovery frm = new frmNgRecovery();

            frm.ShowDialog();
            this.Show();
        }
Example #3
0
        private void button6_Click(object sender, EventArgs e)
        {
            if (System.IO.Directory.GetFiles(Properties.Settings.Default.ngPath, "*.tif").Count() == global.flgOff)
            {
                MessageBox.Show("NG画像はありません", "", MessageBoxButtons.OK);
                return;
            }

            // NG画像確認画面
            this.Hide();
            frmNgRecovery frm = new frmNgRecovery();

            frm.ShowDialog();
            this.Show();
        }