public RunePage(RunePage runePage) { RunePageName = ""; Mark1 = runePage.Mark1; Mark2 = runePage.Mark2; Mark3 = runePage.Mark3; Mark4 = runePage.Mark4; Mark5 = runePage.Mark5; Mark6 = runePage.Mark6; Mark7 = runePage.Mark7; Mark8 = runePage.Mark8; Mark9 = runePage.Mark9; Seal1 = runePage.Seal1; Seal2 = runePage.Seal2; Seal3 = runePage.Seal3; Seal4 = runePage.Seal4; Seal5 = runePage.Seal5; Seal6 = runePage.Seal6; Seal7 = runePage.Seal7; Seal8 = runePage.Seal8; Seal9 = runePage.Seal9; Glyph1 = runePage.Glyph1; Glyph2 = runePage.Glyph2; Glyph3 = runePage.Glyph3; Glyph4 = runePage.Glyph4; Glyph5 = runePage.Glyph5; Glyph6 = runePage.Glyph6; Glyph7 = runePage.Glyph7; Glyph8 = runePage.Glyph8; Glyph9 = runePage.Glyph9; Quint1 = runePage.Quint1; Quint2 = runePage.Quint2; Quint3 = runePage.Quint3; }
public void addRunePage(RunePage newRunePage) { RunePage.Items.Add(newRunePage.RunePageName); RunePageName.Items.Add(newRunePage.RunePageName); checkRunePagesCount(false); }
public void populateRunePage(RunePage runePage) { mCurrentRunePage = runePage; Mark1.SelectedItem = runePage.Mark1; Mark2.SelectedItem = runePage.Mark2; Mark3.SelectedItem = runePage.Mark3; Mark4.SelectedItem = runePage.Mark4; Mark5.SelectedItem = runePage.Mark5; Mark6.SelectedItem = runePage.Mark6; Mark7.SelectedItem = runePage.Mark7; Mark8.SelectedItem = runePage.Mark8; Mark9.SelectedItem = runePage.Mark9; Seal1.SelectedItem = runePage.Seal1; Seal2.SelectedItem = runePage.Seal2; Seal3.SelectedItem = runePage.Seal3; Seal4.SelectedItem = runePage.Seal4; Seal5.SelectedItem = runePage.Seal5; Seal6.SelectedItem = runePage.Seal6; Seal7.SelectedItem = runePage.Seal7; Seal8.SelectedItem = runePage.Seal8; Seal9.SelectedItem = runePage.Seal9; Glyph1.SelectedItem = runePage.Glyph1; Glyph2.SelectedItem = runePage.Glyph2; Glyph3.SelectedItem = runePage.Glyph3; Glyph4.SelectedItem = runePage.Glyph4; Glyph5.SelectedItem = runePage.Glyph5; Glyph6.SelectedItem = runePage.Glyph6; Glyph7.SelectedItem = runePage.Glyph7; Glyph8.SelectedItem = runePage.Glyph8; Glyph9.SelectedItem = runePage.Glyph9; Quint1.SelectedItem = runePage.Quint1; Quint2.SelectedItem = runePage.Quint2; Quint3.SelectedItem = runePage.Quint3; }
public void updateRunePageName(RunePage d, string newName) { var runePage = mRunePages.First(x => x["name"].ToString() == d.RunePageName); runePage["name"] = newName; d.RunePageName = newName; }
public void removeRunePage(RunePage d) { mRunePages.First(x => x["name"].ToString() == d.RunePageName).Remove(); }
public void addRunePage(RunePage d) { var runePage = new JObject(); runePage["name"] = d.RunePageName; runePage["mark1"] = mMarks.Where(i => i == d.Mark1).Select(i => i.ID).First(); runePage["mark2"] = mMarks.Where(i => i == d.Mark2).Select(i => i.ID).First(); runePage["mark3"] = mMarks.Where(i => i == d.Mark3).Select(i => i.ID).First(); runePage["mark4"] = mMarks.Where(i => i == d.Mark4).Select(i => i.ID).First(); runePage["mark5"] = mMarks.Where(i => i == d.Mark5).Select(i => i.ID).First(); runePage["mark6"] = mMarks.Where(i => i == d.Mark6).Select(i => i.ID).First(); runePage["mark7"] = mMarks.Where(i => i == d.Mark7).Select(i => i.ID).First(); runePage["mark8"] = mMarks.Where(i => i == d.Mark8).Select(i => i.ID).First(); runePage["mark9"] = mMarks.Where(i => i == d.Mark9).Select(i => i.ID).First(); runePage["seal1"] = mSeals.Where(i => i == d.Seal1).Select(i => i.ID).First(); runePage["seal2"] = mSeals.Where(i => i == d.Seal2).Select(i => i.ID).First(); runePage["seal3"] = mSeals.Where(i => i == d.Seal3).Select(i => i.ID).First(); runePage["seal4"] = mSeals.Where(i => i == d.Seal4).Select(i => i.ID).First(); runePage["seal5"] = mSeals.Where(i => i == d.Seal5).Select(i => i.ID).First(); runePage["seal6"] = mSeals.Where(i => i == d.Seal6).Select(i => i.ID).First(); runePage["seal7"] = mSeals.Where(i => i == d.Seal7).Select(i => i.ID).First(); runePage["seal8"] = mSeals.Where(i => i == d.Seal8).Select(i => i.ID).First(); runePage["seal9"] = mSeals.Where(i => i == d.Seal9).Select(i => i.ID).First(); runePage["glyph1"] = mGlyphs.Where(i => i == d.Glyph1).Select(i => i.ID).First(); runePage["glyph2"] = mGlyphs.Where(i => i == d.Glyph2).Select(i => i.ID).First(); runePage["glyph3"] = mGlyphs.Where(i => i == d.Glyph3).Select(i => i.ID).First(); runePage["glyph4"] = mGlyphs.Where(i => i == d.Glyph4).Select(i => i.ID).First(); runePage["glyph5"] = mGlyphs.Where(i => i == d.Glyph5).Select(i => i.ID).First(); runePage["glyph6"] = mGlyphs.Where(i => i == d.Glyph6).Select(i => i.ID).First(); runePage["glyph7"] = mGlyphs.Where(i => i == d.Glyph7).Select(i => i.ID).First(); runePage["glyph8"] = mGlyphs.Where(i => i == d.Glyph8).Select(i => i.ID).First(); runePage["glyph9"] = mGlyphs.Where(i => i == d.Glyph9).Select(i => i.ID).First(); runePage["quint1"] = mQuints.Where(i => i == d.Quint1).Select(i => i.ID).First(); runePage["quint2"] = mQuints.Where(i => i == d.Quint2).Select(i => i.ID).First(); runePage["quint3"] = mQuints.Where(i => i == d.Quint3).Select(i => i.ID).First(); mRunePages.Add(runePage); }