1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using TempDbToUfida.OpenApi;
- using WangToTempDb;
- namespace YlInit
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void process_Click(object sender, EventArgs e)
- {
- Button b = (Button)sender;
- IProcess process = null;
- switch (b.Tag.ToString())
- {
- case "Inventory":
- process = new Inventory();
- break;
- case "Warehouse":
- process = new Warehouse();
- break;
- case "Vendor":
- process = new Vendor();
- break;
- case "Stock":
- process = new Stock();
- break;
- default:
- break;
- }
- try
- {
- process.Process();
- MessageBox.Show("初始化成功");
- b.Enabled = false;
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- }
- }
- }
|