private void ModifyUserEmail() { Action action = ModifyUserEmail; string orginValue = ConfigToModify.GetRayPortUserRemark(); ShowModifyTips(action, orginValue); string newValue = InputHelper.GetInput($"请输入新的{GetModifyActionDesc(ModifyUserEmail)}(不要包含字符'@')"); if (newValue != orginValue) { ConfigToModify.Email = newValue + RayPortUser.EmailSuffix; } }
protected override void UpdateOptionsMap() { int index = 1; optionsMap = new Dictionary <int, Tuple <string, Action> > { { index++, new Tuple <string, Action>($"保存退出", ModifyFinished) }, { index++, new Tuple <string, Action>($"直接退出", FinishedWithoutSave) }, { index++, new Tuple <string, Action>($"用户名: {ConfigToModify.GetRayPortUserRemark()}", ModifyUserEmail) }, { index++, new Tuple <string, Action>($"额外ID: {ConfigToModify.AlterId}", ModifyUserAlterID) }, { index++, new Tuple <string, Action>($"用户等级(Level): {ConfigToModify.Level}", ModifyUserLevel) }, { index++, new Tuple <string, Action>($"注册日期: ", ModifyUserRegistrationDate) }, }; }