コード例 #1
0
ファイル: WaitDialog.cs プロジェクト: TSFO27/Pkcs11Admin
        private static void ShowInstance(Form owner)
        {
            lock (_lockObject)
            {
                if (_instance != null)
                {
                    throw new Exception("Dialog instance already exists");
                }

                _instance = new WaitDialog();
                _instance.Show(owner);
                _instance.Owner.Enabled = false;
            }
        }