Пример #1
0
        private void btnTransfer_Click(object sender, EventArgs e)
        {
            AreaTabFiller tabFileTransfer = new AreaTabFiller();
            string        assistFilePath  = tbxArtFile.Text.ToString();

            if (!File.Exists(assistFilePath))
            {
                MessageBox.Show("美术文件" + assistFilePath + "不存在");
                return;
            }
            try
            {
                tabFileTransfer.Init(this.rootPath, tbxMapName.Text.ToString(), assistFilePath);
                tabFileTransfer.Transfer();
                tabFileTransfer.Save();
                MessageBox.Show("恭喜!\r\n转换完毕", "成功", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception myex)
            {
                MessageBox.Show(myex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
 private void btnTransfer_Click(object sender, EventArgs e)
 {
     AreaTabFiller tabFileTransfer = new AreaTabFiller();
     string assistFilePath = tbxArtFile.Text.ToString();
     if (!File.Exists(assistFilePath))
     {
         MessageBox.Show("美术文件" + assistFilePath + "不存在");
         return;
     }
     try
     {
         tabFileTransfer.Init(this.rootPath, tbxMapName.Text.ToString(), assistFilePath);
         tabFileTransfer.Transfer();
         tabFileTransfer.Save();
         MessageBox.Show("恭喜!\r\n转换完毕", "成功", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception myex)
     {              
         MessageBox.Show(myex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     
 }