public SalesForce(TREE_TYPE tree) { this.treeType = tree; this.emailRecordList = new List <string>(); setEmailMeta(tree); loadEmailSettings(); }
public static string GetTreeTypeStatus(TREE_TYPE treeType) { string output = ""; switch (treeType) { case TREE_TYPE.EMAIL_ACTIVE: output = "Active"; break; case TREE_TYPE.EMAIL_INACTIVE: output = "Past"; break; } return(output); }
private void SetOngoingRootNode() { this.m_Quest_Info_List_TreeView.InitTreeData(); string textFromInterface = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1200"); string textFromInterface2 = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1201"); string textFromInterface3 = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1636"); TREE_TYPE tREE_TYPE = new TREE_TYPE(); TREE_TYPE tREE_TYPE2 = new TREE_TYPE(); TREE_TYPE tREE_TYPE3 = new TREE_TYPE(); tREE_TYPE.bType = 0; tREE_TYPE2.bType = 0; tREE_TYPE3.bType = 0; this.m_OngoingNode = this.m_Quest_Info_List_TreeView.InsertChildRoot(NrTSingleton<CTextParser>.Instance.GetTextColor("1107") + textFromInterface, tREE_TYPE, true); this.m_AcceptableNode = this.m_Quest_Info_List_TreeView.InsertChildRoot(NrTSingleton<CTextParser>.Instance.GetTextColor("1107") + textFromInterface2, tREE_TYPE2, true); this.m_DayQuestNode = this.m_Quest_Info_List_TreeView.InsertChildRoot(NrTSingleton<CTextParser>.Instance.GetTextColor("1107") + textFromInterface3, tREE_TYPE3, true); this.m_Quest_Info_List_TreeView.RepositionItems(); }
private void BtnClickQuestList(IUIObject obj) { TreeView treeView = (TreeView)obj; int index = treeView.SelectedItem.GetIndex(); UIListItemContainer selectedItem = treeView.SelectedItem; TreeView.TreeNode treeNode = (TreeView.TreeNode)selectedItem.Data; TREE_TYPE tREE_TYPE = treeNode.ObjectData as TREE_TYPE; if (tREE_TYPE.bType == 0) { treeView.ExpandNode(treeNode, index); } else if (tREE_TYPE.bType == 1) { if (this.m_eMode == QUESTLIST_TAB_MODE.Total) { this.m_CurQuestGroup = (CQuestGroup)tREE_TYPE.bData; } else if (this.m_eMode == QUESTLIST_TAB_MODE.OnGoing) { this.m_CurQuest = (CQuest)tREE_TYPE.bData; this.m_CurQuestGroup = NrTSingleton<NkQuestManager>.Instance.GetQuestGroupByQuestUnique(this.m_CurQuest.GetQuestUnique()); this.m_QuestListInfo = (base.SetChildForm(G_ID.QUESTLISTINFO_DLG) as QuestListInfo_DLG); this.m_QuestListInfo.SetQuestInfo((CQuest)tREE_TYPE.bData); this.m_QuestListInfo.Show(); if (this.m_DramaInfo != null) { this.m_DramaInfo.Close(); } } treeView.ExpandNode(treeNode, index); } else if (tREE_TYPE.bType == 2 && this.m_eMode == QUESTLIST_TAB_MODE.Total) { this.m_CurQuest = (CQuest)tREE_TYPE.bData; this.m_CurQuestGroup = NrTSingleton<NkQuestManager>.Instance.GetQuestGroupByQuestUnique(this.m_CurQuest.GetQuestUnique()); this.m_QuestListInfo = (base.SetChildForm(G_ID.QUESTLISTINFO_DLG) as QuestListInfo_DLG); this.m_QuestListInfo.SetQuestInfo((CQuest)tREE_TYPE.bData); this.m_QuestListInfo.Show(); if (this.m_DramaInfo != null) { this.m_DramaInfo.Close(); } } }
private void setEmailMeta(TREE_TYPE tree) { switch (tree) { case TREE_TYPE.PERSON_SEARCH: this.elementOne = ".actionLink"; this.elementTwo = "span"; break; case TREE_TYPE.PERSON_EDIT: this.elementOne = "div"; this.elementTwo = "span"; break; default: break; } }
private void setEmailMeta(TREE_TYPE tree) { switch (tree) { case TREE_TYPE.EMAIL_ACTIVE: this.elementOne = "div"; this.elementTwo = "span"; this.itemStatus = "Active"; this.fieldNameOne = "80925.EMAIL_ADDRESS"; break; case TREE_TYPE.EMAIL_INACTIVE: this.elementOne = "div"; this.elementTwo = "span"; this.itemStatus = "Past"; this.fieldNameOne = "80925.EMAIL_ADDRESS"; break; default: break; } }
public string GetNewEndpoint(string idNumber, TREE_TYPE tree) { string output = ""; switch (tree) { case TREE_TYPE.EMAIL_ACTIVE: output = String.Concat(ENDPOINT_BASE, EMAIL_ENDPOINT_TEMPLATE.Replace("#IDNUMBER#", idNumber) ); break; case TREE_TYPE.EMAIL_INACTIVE: output = String.Concat(ENDPOINT_BASE, EMAIL_ENDPOINT_TEMPLATE.Replace("#IDNUMBER#", idNumber) ); break; default: break; } return(output); }
public Advanced(TREE_TYPE tree) { loadEmailSettings(); setEmailMeta(tree); }
public void SetTotal() { string str = string.Empty; this.m_Quest_Info_completeTreeview.ClearList(true); string textFromInterface = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("666"); Dictionary<short, QUEST_CHAPTER> hashQuestChapter = NrTSingleton<NkQuestManager>.Instance.GetHashQuestChapter(); this.m_ChapterTree.Clear(); if (hashQuestChapter != null) { foreach (QUEST_CHAPTER current in hashQuestChapter.Values) { if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_SUB || this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_DAY) { bool flag = false; foreach (CQuestGroup current2 in this.m_QuesGroupList) { if (current.i16QuestChapterUnique == current2.GetChapterUnique() && this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)current2.GetQuestType()) { flag = true; break; } } if (!flag) { continue; } } TREE_TYPE tREE_TYPE = new TREE_TYPE(); tREE_TYPE.bType = 0; tREE_TYPE.bData = current; string textFromInterface2 = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("667"); string textFromQuest_Title = NrTSingleton<NrTextMgr>.Instance.GetTextFromQuest_Title(current.strChapterTextKey); string text = current.i16QuestChapterUnique.ToString() + textFromInterface2 + ". " + textFromQuest_Title; text = this.m_str1206 + text; TreeView.TreeNode value = this.m_Quest_Info_completeTreeview.InsertChildRoot(text, tREE_TYPE, true); this.m_ChapterTree.Add(current.i16QuestChapterUnique, value); } } this.m_PageTree.Clear(); foreach (CQuestGroup current3 in this.m_QuesGroupList) { if (this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)current3.GetQuestType() || this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_TOTAL) { if (NrTSingleton<NkQuestManager>.Instance.QuestGroupClearCheck(current3.GetGroupUnique()) == QUEST_CONST.E_QUEST_GROUP_STATE.E_QUEST_GROUP_STATE_NONE) { this.m_str1205 = NrTSingleton<CTextParser>.Instance.GetTextColor("1205"); } else { this.m_str1205 = NrTSingleton<CTextParser>.Instance.GetTextColor("1102"); } TREE_TYPE tREE_TYPE2 = new TREE_TYPE(); tREE_TYPE2.bType = 1; tREE_TYPE2.bData = current3; str = string.Concat(new string[] { this.m_str1205, current3.GetPage(), textFromInterface, ". ", current3.GetGroupTitle() }); if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_SUB) { str = this.m_str1205 + NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1454") + ". " + current3.GetGroupTitle(); } else if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_DAY) { str = this.m_str1205 + current3.GetGroupTitle(); } if (this.m_ChapterTree.ContainsKey(current3.GetChapterUnique())) { TreeView.TreeNode treeNode = this.m_ChapterTree[current3.GetChapterUnique()]; if (treeNode != null) { TreeView.TreeNode treeNode2 = treeNode.AddChild(1, str, tREE_TYPE2); this.m_PageTree.Add(current3.GetGroupUnique(), treeNode2); foreach (QUEST_SORTID current4 in current3.GetGroupInfo().m_QuestList) { CQuest questByQuestUnique = NrTSingleton<NkQuestManager>.Instance.GetQuestByQuestUnique(current4.m_strQuestUnique); if (questByQuestUnique != null) { TREE_TYPE tREE_TYPE3 = new TREE_TYPE(); tREE_TYPE3.bType = 2; tREE_TYPE3.bData = questByQuestUnique; string str2 = string.Empty; if (NrTSingleton<NkQuestManager>.Instance.GetQuestState(current4.m_strQuestUnique) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_NONE) { str2 = NrTSingleton<UIDataManager>.Instance.GetString(this.m_str1202, "- ", questByQuestUnique.GetQuestTitle()); } else { str2 = NrTSingleton<UIDataManager>.Instance.GetString(this.m_str1102, "- ", questByQuestUnique.GetQuestTitle()); } treeNode2.AddChild(2, str2, tREE_TYPE3); } } } } } } this.m_Quest_Info_completeTreeview.RepositionItems(); this.SetProgress(); }
public void SetOnGoing() { this.SetOngoingRootNode(); List<QuestList_DLG.GRADE_TEMP> list = new List<QuestList_DLG.GRADE_TEMP>(); List<QuestList_DLG.GRADE_TEMP> list2 = new List<QuestList_DLG.GRADE_TEMP>(); USER_CURRENT_QUEST_INFO[] userCurrentQuestInfo = NrTSingleton<NkQuestManager>.Instance.GetUserCurrentQuestInfo(); for (byte b = 0; b < 10; b += 1) { if (userCurrentQuestInfo[(int)b].strQuestUnique != null) { string strQuestUnique = userCurrentQuestInfo[(int)b].strQuestUnique; if (strQuestUnique != string.Empty) { CQuest questByQuestUnique = NrTSingleton<NkQuestManager>.Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { CQuestGroup questGroupByQuestUnique = NrTSingleton<NkQuestManager>.Instance.GetQuestGroupByQuestUnique(strQuestUnique); if (questGroupByQuestUnique != null) { QuestList_DLG.GRADE_TEMP gRADE_TEMP = new QuestList_DLG.GRADE_TEMP(); gRADE_TEMP.kQuest = questByQuestUnique; gRADE_TEMP.i32Grade = userCurrentQuestInfo[(int)b].i32Grade; if (this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)questGroupByQuestUnique.GetQuestType()) { list.Add(gRADE_TEMP); } else { list2.Add(gRADE_TEMP); } } } } } } list.Sort(new Comparison<QuestList_DLG.GRADE_TEMP>(QuestList_DLG.AscendingQuest)); list2.Sort(new Comparison<QuestList_DLG.GRADE_TEMP>(QuestList_DLG.AscendingQuest)); foreach (QuestList_DLG.GRADE_TEMP current in list) { TREE_TYPE tREE_TYPE = new TREE_TYPE(); tREE_TYPE.bType = 1; tREE_TYPE.bData = current.kQuest; this.m_OngoingNode.AddChild(1, this.m_str1202 + current.kQuest.GetQuestTitle(), this.m_str1202 + current.kQuest.GetQuestCommon().i16RequireLevel[current.i32Grade].ToString(), this.m_str1202 + current.kQuest.GetQuestNpcName(), tREE_TYPE, "Bat_I_Minimap1"); } foreach (QuestList_DLG.GRADE_TEMP current2 in list2) { TREE_TYPE tREE_TYPE2 = new TREE_TYPE(); tREE_TYPE2.bType = 1; tREE_TYPE2.bData = current2.kQuest; this.m_OngoingNode.AddChild(1, this.m_str1202 + current2.kQuest.GetQuestTitle(), this.m_str1202 + current2.kQuest.GetQuestCommon().i16RequireLevel[current2.i32Grade].ToString(), this.m_str1202 + current2.kQuest.GetQuestNpcName(), tREE_TYPE2); } list.Clear(); list2.Clear(); foreach (CQuest current3 in this.m_QuestList) { if (NrTSingleton<NkQuestManager>.Instance.GetQuestState(current3.GetQuestUnique()) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { CQuestGroup questGroupByQuestUnique2 = NrTSingleton<NkQuestManager>.Instance.GetQuestGroupByQuestUnique(current3.GetQuestUnique()); if (questGroupByQuestUnique2 != null) { if (questGroupByQuestUnique2.GetQuestType() != 100) { QuestList_DLG.GRADE_TEMP gRADE_TEMP2 = new QuestList_DLG.GRADE_TEMP(); gRADE_TEMP2.kQuest = current3; USER_QUEST_COMPLETE_INFO completeQuestInfo = NrTSingleton<NkQuestManager>.Instance.GetCompleteQuestInfo(questGroupByQuestUnique2.GetGroupUnique()); if (completeQuestInfo != null) { gRADE_TEMP2.i32Grade = (int)completeQuestInfo.bCurrentGrade; } else { gRADE_TEMP2.i32Grade = 1; } if (this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)questGroupByQuestUnique2.GetQuestType()) { list.Add(gRADE_TEMP2); } else { list2.Add(gRADE_TEMP2); } } } } } list.Sort(new Comparison<QuestList_DLG.GRADE_TEMP>(QuestList_DLG.AscendingQuest)); list2.Sort(new Comparison<QuestList_DLG.GRADE_TEMP>(QuestList_DLG.AscendingQuest)); foreach (QuestList_DLG.GRADE_TEMP current4 in list) { TREE_TYPE tREE_TYPE3 = new TREE_TYPE(); tREE_TYPE3.bType = 1; tREE_TYPE3.bData = current4.kQuest; this.m_AcceptableNode.AddChild(1, this.m_str1202 + current4.kQuest.GetQuestTitle(), this.m_str1202 + current4.kQuest.GetQuestCommon().i16RequireLevel[current4.i32Grade - 1].ToString(), this.m_str1202 + current4.kQuest.GetQuestNpcName(), tREE_TYPE3, "Bat_I_Minimap1"); } foreach (QuestList_DLG.GRADE_TEMP current5 in list2) { TREE_TYPE tREE_TYPE4 = new TREE_TYPE(); tREE_TYPE4.bType = 1; tREE_TYPE4.bData = current5.kQuest; this.m_AcceptableNode.AddChild(1, this.m_str1202 + current5.kQuest.GetQuestTitle(), this.m_str1202 + current5.kQuest.GetQuestCommon().i16RequireLevel[current5.i32Grade - 1].ToString(), this.m_str1202 + current5.kQuest.GetQuestNpcName(), tREE_TYPE4); } foreach (CQuest current6 in this.m_QuestList) { if (NrTSingleton<NkQuestManager>.Instance.GetQuestState(current6.GetQuestUnique()) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { CQuestGroup questGroupByQuestUnique3 = NrTSingleton<NkQuestManager>.Instance.GetQuestGroupByQuestUnique(current6.GetQuestUnique()); if (questGroupByQuestUnique3 != null) { if (questGroupByQuestUnique3.GetQuestType() == 100) { QuestList_DLG.GRADE_TEMP gRADE_TEMP3 = new QuestList_DLG.GRADE_TEMP(); gRADE_TEMP3.kQuest = current6; USER_QUEST_COMPLETE_INFO completeQuestInfo2 = NrTSingleton<NkQuestManager>.Instance.GetCompleteQuestInfo(questGroupByQuestUnique3.GetGroupUnique()); if (completeQuestInfo2 != null) { gRADE_TEMP3.i32Grade = (int)completeQuestInfo2.bCurrentGrade; } else { gRADE_TEMP3.i32Grade = 1; } TREE_TYPE tREE_TYPE5 = new TREE_TYPE(); tREE_TYPE5.bType = 1; tREE_TYPE5.bData = current6; this.m_DayQuestNode.AddChild(1, this.m_str1202 + current6.GetQuestTitle(), this.m_str1202 + current6.GetQuestCommon().i16RequireLevel[gRADE_TEMP3.i32Grade].ToString(), this.m_str1202 + current6.GetQuestNpcName(), tREE_TYPE5); } } } } this.m_Quest_Info_List_TreeView.RepositionItems(); }