//修改配置 private void barButtonItem10_ItemClick(object sender, ItemClickEventArgs e) { if (CurUser == "admin") { var vw = new ConfigView(); this.Visible = false; vw.ShowDialog(); this.Visible = true; } }
//更改配置 private void labelControl1_Click(object sender, EventArgs e) { var vw = new ConfigView(); this.Visible = false; vw.ShowDialog(); this.Visible = true; }