public void ConvertStringToEnum(string i_TabName) { switch (i_TabName) { case k_Posts: TabType = eTab.Posts; break; case k_AboutUser: TabType = eTab.AboutUser; break; case k_FriendsList: TabType = eTab.FriendsList; break; case k_UserPhotos: TabType = eTab.UserPhotos; break; case k_CreateAlbum: TabType = eTab.CreateAlbum; break; } }
public Tab() { TabType = eTab.None; }