Esempio n. 1
0
        /// <summary>
        /// 載入雙視檔案,並開啟雙視編輯視窗。
        /// </summary>
        /// <param name="filename">點字檔名。</param>
        private void OpenBrailleFileInEditor(string filename)
        {
            m_BusyForm = new BusyForm
            {
                Message = "正在載入點字資料..."
            };
            m_BusyForm.Show();
            m_BusyForm.UseWaitCursor = true;
            this.Enabled             = false;

            DualEditForm frm = null;

            try
            {
                // 直接開啟雙視編輯視窗
                frm = new DualEditForm(filename);
            }
            finally
            {
                this.Enabled = true;
                m_BusyForm.Hide();
                m_BusyForm.Close();
            }

            this.ShowInTaskbar = false;
            try
            {
                frm.ShowDialog();
            }
            finally
            {
                this.ShowInTaskbar = true;
                this.Show();
                this.BringToFront();
                this.Activate();
            }
        }
Esempio n. 2
0
 public CellClickEvent(DualEditForm form)
 {
     m_Form = form;
 }