Beispiel #1
0
        private void bgWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                SHGlobal.CheckFiles(bgWorker);
                RetestRequired = false;
            }
            catch (Exception ex)
            {
                progressUpdateDelegate td = new progressUpdateDelegate(OutputError);
                this.Invoke(td, new object[] { ex.Message });

                //DialogResult result = MessageBox.Show(ex.Message + "\n\n이 버그를 수정한 뒤에 \"재시도\"를 누르시면 처음부터 다시 시작됩니다.", Application.ProductName, MessageBoxButtons.AbortRetryIgnore);

                //if (result == DialogResult.Retry)
                //{
                //    bgWorker.CancelAsync();
                //    RetestRequired = true;
                //}
                //else if (result == DialogResult.Abort)
                //{
                //    Environment.Exit(-1);
                //}
            }
            bgWorker.ReportProgress(100, Environment.NewLine + "초기화를 하고 있습니다.");
        }
Beispiel #2
0
        public void ReloadAllXmlFile()
        {
            if (_Forms.IsExistModifiedFiles())
            {
                if (MessageBox.Show("저장하지 않은 항목이 있습니다. 정말 모든 XML을 다시 읽겠습니까?", Application.ProductName, MessageBoxButtons.YesNo) != DialogResult.Yes)
                {
                    return;
                }
            }

            RefreshData();

            try
            {
                SHGlobal.CheckFiles(null);
            }
            catch (Exception ex)
            {
                Global.OutputWarning(ex.Message);
            }

            InitEditForms();

            Global.Output("모든 XML 다시 읽기 완료\n");
        }