/// <summary> /// 删除用户信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Image_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { try { // 在此处添加事件处理程序实现。 string username = ((Image)sender).Tag.ToString(); string AllUsers = CommonMethod.frombase(IniConfig.IniReadValue("AllUsers", "AllUsers").ToString()); if (AllUsers.Contains(username)) { AllUsers = AllUsers.Replace("#" + username, ""); IniConfig.IniWriteValue("AllUsers", "AllUsers", CommonMethod.tobase(AllUsers)); IniConfig.ClearSection(username); } ReadAllUsers(); } catch (Exception ex) { MethodLb.CreateLog(this.GetType().FullName, "Image_MouseDown", ex.ToString(), sender, e); } finally { } }