Esempio n. 1
0
        private void CheckUnisProcess()
        {
            string sMsg;

            Process[] processesV3;
            Process[] processesV4;

            processesV3 = Process.GetProcessesByName(m_sUNISV3ProcessName);
            processesV4 = Process.GetProcessesByName(m_sUNISV4ProcessName);
            if (processesV3.Length != 0 || processesV4.Length != 0)
            {
                m_bCheckUnisSystem = true;
            }
            else
            {
                sMsg = "プロセス" + m_sUNISV3ProcessName + processesV3 + "," + m_sUNISV4ProcessName + processesV4 + "起動していません。";
                MessageBox.Show(sMsg);
                m_bCheckUnisSystem = false;
                ExitControl();
                m_Wnd.ExitMainWindow();
            }
        }
Esempio n. 2
0
        public C100SendMailControl()
        {
            string sMsg;

            InitializeComponent();
            m_Wnd           = (umail.MainWindow)Application.Current.MainWindow;
            m_libCmn        = m_Wnd.GetClassLibCommon();
            m_libUsbProtect = new LibUsbProtect();
            int ret = m_libUsbProtect.ProtectMail();

            if (ret != Constants.USBPROTECTNO)
            {
                sMsg = "プロテクトが確認できません。";
                MessageBox.Show(sMsg);
                m_Wnd.ExitMainWindow();
                return;
            }
            InitControl();
        }