//↓添加信息的按钮相应事件 private void add_but_Click(object sender, EventArgs e) { if (MainSystem.IsAdmin || MainSystem.IsExAdmin) { GetResult(this, "add"); } else { PM_AL.GetName(this, "ProductManager", "add"); PM_AL.ShowDialog(); } }
//↓主界面_添加信息按钮 private void add_but_Click(object sender, EventArgs e) { if (MainSystem.IsAdmin || MainSystem.IsExAdmin) { GetResult_CM(this, "add"); } else { CM_AL.GetName(this, "CustomerManager", "add"); CM_AL.ShowDialog(); } }
//↓主界面_添加更改或删除信息按钮 private void add_but_Click(object sender, EventArgs e) { if (MainSystem.IsAdmin || MainSystem.IsExAdmin) { GetResult_GM(this, "change"); } else { GM_AL.GetName(this, "GoodsManager", "change"); GM_AL.ShowDialog(); } }
//↓显示窗口 AllOfAll(统一管理) private void button6_Click(object sender, EventArgs e) { if (!MainSystem.IsExAdmin) { CS_AL.GetName(this, "ChooseSever", "Show"); CS_AL.ShowDialog(); // GetResult(this,"change"); } else { GetResult(this, "change"); } }