本文整理汇总了C#中MxitTestApp.UserSession.getVariableObject方法的典型用法代码示例。如果您正苦于以下问题:C# UserSession.getVariableObject方法的具体用法?C# UserSession.getVariableObject怎么用?C# UserSession.getVariableObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MxitTestApp.UserSession
的用法示例。
在下文中一共展示了UserSession.getVariableObject方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: init
public override void init(UserSession us)
{
//at the moment leaving this variable in the session even if user returns to main menu. We should remove it then also.
if (us.getVariableObject(SearchTestamentHandler.SEARCH_TESTAMENT_VAR_NAME) != null)
{
us.deleteVariable(SearchTestamentHandler.SEARCH_TESTAMENT_VAR_NAME);
}
if (us.getVariableObject(SearchHandler.BOOK_SEARCH_VAR_NAME) != null)
{
us.deleteVariable(SearchHandler.BOOK_SEARCH_VAR_NAME);
}
}
示例2: addLinksToMessageFromList
public override void addLinksToMessageFromList(
UserSession us,
List<MenuOptionItem> list,
MessageToSend ms)
{
ms.AppendLine();
int count = (us.current_menu_page * MenuDefinition.PAGE_ITEM_COUNT) + 1;
int starting_index = us.current_menu_page * MenuDefinition.PAGE_ITEM_COUNT;
FriendRelationMenuOptionItem an_option;
FriendRelation fr;
List<long> recipient_list = null;
if (us.hasVariable(ChooseFriendHandler.RECIPIENT_LIST))
{
recipient_list = (List<long>)us.getVariableObject(ChooseFriendHandler.RECIPIENT_LIST);
}
for (int i = starting_index;
i < list.Count && i < starting_index + MenuDefinition.PAGE_ITEM_COUNT;
i++)
{
an_option = (FriendRelationMenuOptionItem)list.ElementAt(i);
fr = an_option.fr;
if (recipient_list == null || (recipient_list != null && !recipient_list.Contains(long.Parse(an_option.display_text))))
{
ms.Append(" " + UserNameManager.getInstance().getUserName(long.Parse(an_option.display_text)) + " ");
ms.Append(createMessageLink(MENU_LINK_NAME, "[+]", "ADD_" + an_option.display_text));
/*ms.Append(" ");
ms.Append(createMessageLink(MENU_LINK_NAME, "[-]", "REMOVE_" + an_option.display_text));*/
ms.Append("\r\n");
}
count++;
}
}
示例3: getCurrentSendList
public String getCurrentSendList(UserSession us)
{
String send_list = "";
if (us.hasVariable(ChooseFriendHandler.RECIPIENT_LIST))
{
List<long> recipient_list = (List<long>)us.getVariableObject(ChooseFriendHandler.RECIPIENT_LIST);
for (int i = 0; i < recipient_list.Count; i++)
{
send_list += (UserNameManager.getInstance().getUserName(recipient_list[i]));
if (recipient_list.Count > 1 && (i != recipient_list.Count - 1))
send_list+=", ";
}
}
return send_list;
}
示例4: handleMyProfileLinks
/*this method either returns the new screen id or the main or prev command string*/
protected InputHandlerResult handleMyProfileLinks(
UserSession user_session,
string input)
{
string curr_user_page = user_session.current_menu_loc;
String entry = input.ToUpper();
if (CHOOSE_FRIEND_ID.Equals(entry))
{
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
MenuIDConstants.SEND_VERSE_CHOOSE_FRIEND_ID); //the menu id is retreived from the session in this case.
}
else if (ENTER_MESSAGE_SUBJECT.Equals(entry))
{
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
MenuIDConstants.SEND_VERSE_ENTER_SUBJECT); //the menu id is retreived from the session in this case.
}
else if (ENTER_MESSAGE.Equals(entry))
{
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
MenuIDConstants.SEND_VERSE_ENTER_MESSAGE); //the menu id is retreived from the session in this case.
}
else if (SEND_MESSAGE.Equals(entry))
{
String message_text = "";
//String recip_id_s = "";
long recip_id = -1;
String start_verse = "";
String end_verse = "";
String subject = "";
if (user_session.hasVariable(VerseMessageSendOutputAdapter.MESSAGE_TEXT))
message_text = user_session.getVariable(VerseMessageSendOutputAdapter.MESSAGE_TEXT);
if (user_session.hasVariable(VerseMessageSendOutputAdapter.MESSAGE_SUBJECT))
subject = user_session.getVariable(VerseMessageSendOutputAdapter.MESSAGE_SUBJECT);
/*if (user_session.hasVariable(VerseMessageSendOutputAdapter.FRIEND_TO_SEND_ID))
recip_id= long.Parse(user_session.getVariable(VerseMessageSendOutputAdapter.FRIEND_TO_SEND_ID));
else
return new InputHandlerResult("There is a problem in sending the message. Please let us know about this problem by using the feedback option");
*/ //old style sing recipient.
//new multip recipient.
List<long> recipient_list;
if (user_session.hasVariable(ChooseFriendHandler.RECIPIENT_LIST))
recipient_list = (List<long>)user_session.getVariableObject(ChooseFriendHandler.RECIPIENT_LIST);
else
return new InputHandlerResult("There is a problem in sending the message. Please let us know about this problem by using the feedback option");
VerseSection vs = (VerseSection)user_session.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found in VerseMessageSendHandler.");
return new InputHandlerResult("There is a problem in sending the message. Please let us know about this problem by using the feedback option");
}
else
{
Verse start = vs.start_verse;
Verse end = vs.end_verse;
if (end == null)
{
end = BrowseBibleScreenOutputAdapter.getDefaultEndVerse(start);
}
start_verse = start.getVerseReference();
end_verse = end.getVerseReference();
}
user_session.verse_messaging_manager.createThreadAndAddPrivateMessage(
message_text,
recipient_list,
start_verse,
end_verse,
subject);
return new InputHandlerResult(
InputHandlerResult.DISPLAY_MESSAGE,
InputHandlerResult.DEFAULT_MENU_ID, //not used
"Your Message has been sent...");
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
示例5: getOutputScreenMessage
public override MessageToSend getOutputScreenMessage(
UserSession us,
MenuPage mp,
MessageToSend ms,
InputHandlerResult ihr)
{
ms.Append(MessageBuilder.Elements.CreateClearScreen());
if (!mp.GetType().FullName.Equals("MxitTestApp.VerseMenuPage"))//TODO: Should be constant
throw new Exception("Invalid menu page passed into getScreen method ");
VerseMenuPage omp = (VerseMenuPage)mp;
ms.Append(omp.title + "\r\n", TextMarkup.Bold);
ms.Append("\r\n");
ms.Append("\r\n");
if (ihr.error != null && ihr.action == InputHandlerResult.INVALID_MENU_ACTION)
{
ms.Append((string)ihr.error + "\r\n");
}
Boolean should_display_conf_message = displayMessage(us, ms, ihr);
if (should_display_conf_message)
{
return ms;
}
ms.Append(parseMessage(us, omp.message) + "\r\n");
/*else if (us.getVariable(FriendHandler.DELETED_FRIEND_NAME) != null)
{
friend_name = (String)us.removeVariable(FriendHandler.DELETED_FRIEND_NAME);
ms.Append("You have removed " + friend_name + " from you buddy list.");
ms.Append("\r\n");
ms.Append("\r\n");
}*/
if (us.friend_manager.getFriends().Count <= 0)
{
ms.Append("You dont have any buddies added, you need to first invite buddies in order to send Verses to them.");
ms.Append("\r\n");
ms.Append("\r\n");
}
else
{
Boolean recip_is_set = false;
//check if recipient is set already
if (us.hasVariable(ChooseFriendHandler.RECIPIENT_LIST) && ((List<long>)us.getVariableObject(ChooseFriendHandler.RECIPIENT_LIST)).Count > 0)
{
String friend_list = getCurrentSendList(us);
ms.Append("To: ");
ms.Append(friend_list);
ms.Append(" ");
ms.Append(createMessageLink(MENU_LINK_NAME, "[ edit ]", VerseMessageSendHandler.CHOOSE_FRIEND_ID));
recip_is_set = true;
}
else
{
ms.Append("To: ");
ms.Append(createMessageLink(MENU_LINK_NAME, "[ edit ]", VerseMessageSendHandler.CHOOSE_FRIEND_ID));
ms.Append(" *");
}
ms.Append("\r\n");
ms.Append("\r\n");
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found");
}
else
{
Verse start_verse = vs.start_verse;
Verse end_verse = vs.end_verse;
if (end_verse == null)
{
end_verse = BrowseBibleScreenOutputAdapter.getDefaultEndVerse(start_verse);
}
ms.Append("Verse: ");
ms.Append(BibleHelper.getVerseSectionReference(start_verse, end_verse), TextMarkup.Bold);
ms.Append("\r\n");
ms.Append("\r\n");
}
if (us.hasVariable(MESSAGE_SUBJECT))
{
String subject = us.getVariable(MESSAGE_SUBJECT);
ms.Append("Subject: ");
ms.Append(subject);
ms.Append(" ");
}
else
{
ms.Append("Subject: ");
}
ms.Append(createMessageLink(MENU_LINK_NAME, "[ edit ]", VerseMessageSendHandler.ENTER_MESSAGE_SUBJECT));
ms.Append("\r\n");
ms.Append("\r\n");
if (us.hasVariable(MESSAGE_TEXT))
//.........这里部分代码省略.........
示例6: handleFavouriteLinks
protected InputHandlerResult handleFavouriteLinks(
UserSession us,
string input)
{
if (ADD_TO_FAV.Equals(input.Trim().ToUpper()))
{
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
Verse start_verse = vs.start_verse;
if (start_verse == null)
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
Verse end_verse = vs.end_verse;
if (us.favourite_verses.isFavouriteListFull())
{
return new InputHandlerResult(
"Your favourite list is full. Please first delete an existing favourite verse"); //invalid choice
}
int output = us.recordFavouriteSelection(start_verse, end_verse);
if(output == FavouriteVerseManager.FAVOURITE_VERSE_ADDED_SUCCCESS)
{
//end verse should never be null
String verse_ref = BibleHelper.getVerseSectionReferenceWithoutTranslation(start_verse, end_verse);
return new InputHandlerResult(
InputHandlerResult.FAVOURITE_ADDED_ACTION,
us.current_menu_loc,
verse_ref + " has been added to your favourites"); //invalid choice
}else if(output == FavouriteVerseManager.FAVOURITE_ALREADY_ADDED)
{
return new InputHandlerResult(
"This is already a favourite. You can't add duplicate favourites."); //invalid choice
}
}
else if (SEND_TO_BUDDY.Equals(input.Trim().ToUpper()))
{
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
MenuIDConstants.SEND_VERSE_MESSAGE_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else if (TAG_VERSE.Equals(input.Trim().ToUpper()))
{
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
MenuIDConstants.TAG_VERSE_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else if (".".Equals(input.Trim().ToUpper()))
{
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found");
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
String verse_ref = BibleHelper.getVerseSectionReferenceWithoutTranslation(vs.start_verse, vs.end_verse);
return handleDirectVerseInput(us, verse_ref);
}
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
示例7: handleDirectVerseInput
protected InputHandlerResult handleDirectVerseInput(
UserSession us,
string input)
{
try
{
int verse_id = -1;
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found");
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
if (Int32.TryParse(input, out verse_id))
{
Verse curr_start_verse = vs.start_verse;
Verse end_verse = vs.end_verse;
Verse start_verse = curr_start_verse.chapter.getVerse(verse_id);
if (start_verse != null)
{
//end_verse = getDefaultEndVerse(start_verse);
end_verse = start_verse;
vs = new VerseSection(start_verse, end_verse);//we set end verse to distinguish browsing from direct input
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(start_verse, end_verse);
return new InputHandlerResult(InputHandlerResult.NEW_MENU_ACTION,
us.current_menu_loc,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
else
{
VerseSection vs1 = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs1 == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found");
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
String current_book = "";
String current_chapter = "";
input = input.Replace(".", ":");
if(vs1 != null && vs1.start_verse != null)
{
current_book = vs1.start_verse.book.name;
current_chapter = vs1.start_verse.chapter.chapter_id.ToString(); // TODO: check the taking of chapter from start verse and not end verse
}
VerseSection vsection = Verse_Handler.getVerseSection(us, input, current_book, current_chapter);
if (vsection != null)
{
us.setVariable("Browse.verse_section", vsection);
Verse start_verse = vsection.start_verse;
Verse end_verse = vsection.end_verse;
us.recordVerseSelection(start_verse, end_verse);
return new InputHandlerResult(
InputHandlerResult.NEW_MENU_ACTION,
us.current_menu_loc,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
}
catch (Exception e)
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
示例8: handleBrowseLinks
protected InputHandlerResult handleBrowseLinks(
UserSession us,
string input)
{
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Expected Browse.verse_section present, but not found");
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
Verse start_verse = vs.start_verse;
Verse end_verse = vs.end_verse;
if (DISPLAY_MORE.Equals(input.Trim().ToUpper()))
{
if (end_verse != null && end_verse.next_verse != null)
{
start_verse = end_verse.next_verse;
//end_verse = getDefaultEndVerse(start_verse);
vs = new VerseSection(start_verse, null);
us.setVariable("Browse.verse_section", vs);
return new InputHandlerResult(InputHandlerResult.NEW_MENU_ACTION,
us.current_menu_loc,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
else if (DISPLAY_NEXT_CHAPTER.Equals(input.Trim().ToUpper()))
{
if (start_verse != null &&
start_verse.chapter != null &&
start_verse.chapter.next_chapter != null)
{
start_verse = start_verse.chapter.next_chapter.getVerse(1);
//end_verse = getDefaultEndVerse(start_verse);
vs = new VerseSection(start_verse, null);
us.setVariable("Browse.verse_section", vs);
return new InputHandlerResult(InputHandlerResult.NEW_MENU_ACTION,
us.current_menu_loc,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
else if (DISPLAY_PREV_CHAPTER.Equals(input.Trim().ToUpper()))
{
if (start_verse != null &&
start_verse.chapter != null &&
start_verse.chapter.prev_chapter != null)
{
start_verse = start_verse.chapter.prev_chapter.getVerse(1);
//end_verse = getDefaultEndVerse(start_verse);
vs = new VerseSection(start_verse, null);
us.setVariable("Browse.verse_section", vs);
return new InputHandlerResult(InputHandlerResult.NEW_MENU_ACTION,
us.current_menu_loc,
InputHandlerResult.DEFAULT_PAGE_ID);
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
else
{
return new InputHandlerResult(
InputHandlerResult.UNDEFINED_MENU_ACTION,
InputHandlerResult.DEFAULT_MENU_ID,
InputHandlerResult.DEFAULT_PAGE_ID);
}
}
示例9: init
//.........这里部分代码省略.........
{
ReadOnlyCollection<FavouriteVerseRecord> favourite_list = us.favourite_verses.getFavouriteListForDisplay();
FavouriteVerseRecord fvr = favourite_list[fav_verse_index];
Verse start_verse = Verse_Handler.getStartingVerse(us.user_profile.getDefaultTranslationId(), fvr.start_verse);
Verse end_verse;
if (fvr.end_verse == null || fvr.start_verse.Equals(fvr.end_verse))
end_verse = start_verse;
else if ("NULL".Equals(fvr.end_verse))
end_verse = BrowseBibleScreenOutputAdapter.getDefaultEndVerse(start_verse);
else
end_verse = Verse_Handler.getStartingVerse(us.user_profile.getDefaultTranslationId(), fvr.end_verse);
VerseSection vs = new VerseSection(start_verse, end_verse);
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(vs.start_verse, vs.end_verse);
}
else{
String bookmark_verse = getBookmarkVerse(us);
if (bookmark_verse != null)
{
VerseSection vs = Verse_Handler.getVerseSection(us, bookmark_verse, null, null);
if (vs != null)
{
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(vs.start_verse, vs.end_verse);
}
}
else
{
String daily_verse = getDailyVerseSelected(us);
if (daily_verse != null)
{
VerseSection vs = Verse_Handler.getVerseSection(us, daily_verse, null, null);
if (vs != null)
{
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(vs.start_verse, vs.end_verse);
}
}
else
{
String topic_verse = getTopicVerse(us);
if (topic_verse != null)
{
VerseSection vs = Verse_Handler.getVerseSection(us, topic_verse, null, null);
if (vs != null)
{
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(vs.start_verse, vs.end_verse);
}
}
else
{
String search_verse = getSearchVerse(us);
if (search_verse != null)
{
int search_verse_index = Int32.Parse(search_verse) - 1;
SearchVerseRecord svr = us.search_results[search_verse_index];
Verse start_verse = Verse_Handler.getStartingVerse(us.user_profile.getDefaultTranslationId(), svr.start_verse);
VerseSection vs = new VerseSection(start_verse, start_verse);
if (vs != null)
{
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(start_verse, start_verse);
}
}
//verse was selected from direct select
else if (direct_select == false)
{
Verse start_verse = BibleContainer.getInstance().getVerse(
Int32.Parse(us.user_profile.getDefaultTranslationId()),
Int32.Parse(us.getVariable("Testament_Handler.testament_id")),
us.getVariable("BookOptionSet.book_id"),
Int32.Parse(us.getVariable("ChapterOptionSet.chapter_id")),
1);
VerseSection vs = new VerseSection(start_verse, null);
us.setVariable("Browse.verse_section", vs);
us.recordVerseSelection(start_verse, null);
}
//Verse was selected by browsing
else
{
VerseSection vs = (VerseSection)us.getVariableObject("Browse.verse_section");
if (vs == null)
{
Console.WriteLine("Warning...verse_section context var was not found");
throw new Exception("Expected Browse.verse_section var present but not found");
}
Verse start_verse = vs.start_verse;
Verse end_verse = vs.end_verse;
us.recordVerseSelection(start_verse, end_verse);
}
}
}
}
}
}
}
}
示例10: init
public override void init(UserSession us)
{
if (us.getVariableObject("Browse.verse_section") != null)
{
us.deleteVariable("Browse.verse_section");
}
}
示例11: init
public override void init(UserSession us)
{
Object curr_page = us.getVariableObject(TAGGED_VERSE_CURRENT_PAGE);
if (curr_page != null)
{
int curr_page_i = (int)curr_page;
us.removeVariable(TAGGED_VERSE_CURRENT_PAGE);
us.current_menu_page = curr_page_i;
}
}
示例12: appendCurrentSendList
public void appendCurrentSendList(
UserSession us,
MessageToSend ms)
{
if (us.hasVariable(ChooseFriendHandler.RECIPIENT_LIST))
{
List<long> recipient_list = (List<long>)us.getVariableObject(ChooseFriendHandler.RECIPIENT_LIST);
ms.AppendLine();
ms.Append("Recipients: ", TextMarkup.Bold);
if (recipient_list.Count > 0)
{
for (int i = 0; i < recipient_list.Count; i++)
{
ms.Append(UserNameManager.getInstance().getUserName(recipient_list[i]) + " ");
ms.Append(createMessageLink(MENU_LINK_NAME, "[-]", "REMOVE_" + recipient_list[i]));
if (recipient_list.Count > 1 && (i != recipient_list.Count - 1))
ms.Append(", ");
}
}
else
{
ms.Append("Empty");
}
ms.AppendLine();
}
else
{
ms.Append("Recipients: ", TextMarkup.Bold);
ms.Append("Empty");
ms.AppendLine();
}
}