Пример #1
0
        private void btTagXLS_Click(object sender, EventArgs e)
        {
            if (listXLS.CheckedItems.Count == 0)
            {
                MessageBox.Show("Check 1 more files!");
                return;
            }

            if (textDataFile.Text == "")
            {
                MessageBox.Show("Browse Text All Data Table File!!");
                return;
            }

            LocalSource selectLocal = new LocalSource();

            selectLocal.SetLabelText("Select Convert XLS Work to Do");
            selectLocal.cmbSourceLocal.Items.Clear();
            selectLocal.cmbSourceLocal.Items.Add("Korean Tag to Index");
            selectLocal.cmbSourceLocal.Items.Add("Korean Tag to Japanese");
            selectLocal.cmbSourceLocal.SelectedIndex = 0;
            selectLocal.ShowDialog();

            if (TextAllDataTable.OpenTextAllData(textDataFile.Text, MH4Global.localSource))
            {
                ConvertTagXLS();
            }
            else
            {
                convertState = ConvertState.CONVERT_TAG_XLS;
                bReadyWork   = true;
            }
        }
Пример #2
0
        private void btConvertTagXML_Click(object sender, EventArgs e)
        {
            if (listXLS.CheckedItems.Count == 0)
            {
                MessageBox.Show("Check 1 more files!");
                return;
            }

            if (textDataFile.Text == "")
            {
                MessageBox.Show("Browse Text All Data Table File!!");
                return;
            }

            LocalSource selectLocal = new LocalSource();

            selectLocal.SetLabelText("Select Source Localize of XLS Files");
            selectLocal.cmbSourceLocal.Items.Clear();
            selectLocal.cmbSourceLocal.Items.Add("Korean");
            selectLocal.cmbSourceLocal.Items.Add("Japanese");
            selectLocal.cmbSourceLocal.SelectedIndex = 0;
            selectLocal.ShowDialog();

            if (MH4Global.localSource != LocalizeSource.LOCAL_KOREAN && MH4Global.localSource != LocalizeSource.LOCAL_JAPANESE)
            {
                return;
            }

            if (TextAllDataTable.OpenTextAllData(textDataFile.Text, MH4Global.localSource))
            {
                ConvertTagXML();
            }
            else
            {
                convertState = ConvertState.CONVERT_XML;
                bReadyWork   = true;
            }
        }