コード例 #1
0
ファイル: UserControl_EnterId.cs プロジェクト: zomi0/MoyuTool
        private void textBox_goods_Validated(object sender, EventArgs e)
        {
            if (textBox_goods.TextLength != 0 && steps > 0)
            {
                steps -= 1;

                if (steps == 0)
                {
                    EmoneyShopForm eshop = (EmoneyShopForm)ParentForm;
                    eshop.NextStep();
                }
            }
        }
コード例 #2
0
        private void button_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                //shop文件路径
                string shopini = folderBrowserDialog1.SelectedPath + "\\ini\\newshop.ini";

                if (!File.Exists(shopini))
                {
                    MessageBox.Show("文件不存在。");
                    return;
                }

                EmoneyShopForm eshop = (EmoneyShopForm)ParentForm;

                //生成客户端配置
                eshop.CreateNewShopFile(shopini);

                eshop.NextStep();
            }
        }