Example #1
0
        private void OnMenuEtc_OpenStudyFolder_Click(object sender, EventArgs e)
        {
            if (bStandByUIState == false)
            {
                return;
            }

            if (Config.bIsSetting == false)
            {
                MessageBox.Show(Properties.Resources.sNoReviewFolder);
                return;
            }

            Define.ExecuteFile(Config.sFolderPath);
        }
Example #2
0
        private void OnReviewButton_Click(object sender, EventArgs e)
        {
            int nCount = m_uiReviewList.SelectedItems.Count;

            if (nCount == 0)
            {
                MessageBox.Show(Properties.Resources.sReviewSelectFile);
                return;
            }
            else if (nCount >= 2)
            {
                MessageBox.Show(Properties.Resources.sReviewSelectMuchFile);
                return;
            }

            var file = m_uiReviewList.SelectedItem as File;

            if (file == null)
            {
                MessageBox.Show(Properties.Resources.sReviewSelectFile);
                return;
            }

            int nIndex = 0;

            foreach (var item in m_uiReviewList.Items)
            {
                if (item == m_uiReviewList.SelectedItem)
                {
                    break;
                }

                ++nIndex;
            }

            m_uiTextState.Text = Properties.Resources.sState_FileExecute;
            eTimerEvent.StateText.Start(1500, () => { m_uiTextState.Text = Properties.Resources.sState_Default; });

            m_bEventOpen = true;
            m_uiReviewList.SetItemCheckState(nIndex, CheckState.Checked);
            Define.ExecuteFile(file.sName_withFullPath);
        }