private void setPage3() { SuspendLayout(); pg3 = new Page3(themeColor, LANG, DPI, stsObj.generateMOBI); pg3.IsOpen = true; pg3.SetBounds(4, 3, pg3.Width, pg3.Height); pg3.Parent = this; pageSliderPage3.Controls.Add(pg3); pg3.newbook_button.Click += newbook_button_Click; ResumeLayout(false); }
private void resetPages() { pg2.Dispose(); pg2 = null; // Need to set it back to null! pg3.Dispose(); pg3 = null; cqIDX = 0; bookAndAuthor.Clear(); TOC.Clear(); extraLinesInBeginning = false; extraLinesNotEmpty = false; titleLineNumbers.Clear(); pictureHTMLs.Clear(); TXTPath = null; CoverPath = null; CoverPathSlim = null; covers[0].Dispose(); covers[1].Dispose(); origCover = null; coverChanged = true; DocName = null; Intro = null; chapterNumber = 1; parchmentNeeded = false; embedFontPaths.Clear(); ALLTITLETEXT.Clear(); ALLBODYTEXT = new HashSet<Char>(); IndexT = new List<UInt16>(); IndexB = new List<UInt16>(); titleFontPath = null; bodyFontPath = null; glyphTypefaceT = null; glyphTypefaceB = null; URIT = null; URIB = null; wordcount = 0; wordcountnr = 0; noNeedEmbed = false; mimetype = null; container = null; css.Clear(); opf.Clear(); ncx.Clear(); coverHtml.Clear(); picHtmlList.Clear(); txtHtmlList.Clear(); zipPath = null; processedIntro = null; stopWatch = null; DONE = false; }