示例#1
0
        /// <summary>
        /// Uses EH API to get metadata from gallery URL
        /// </summary>
        private void msLoadUrl_Click(object sender, EventArgs e)
        {
            string sMangaURL = null;

            if (mangaID != -1) {
                sMangaURL = SQL.GetMangaDetail(mangaID, SQL.Manga.GalleryURL);
            }

            using (GetUrl fmGet = new GetUrl(sMangaURL)) {
                fmGet.StartPosition = FormStartPosition.CenterParent;
                fmGet.Location = Location;
                fmGet.ShowDialog();

                if (fmGet.DialogResult == DialogResult.OK)
                    LoadEH(fmGet.Url);
            }
        }
示例#2
0
        /// <summary>
        /// Uses EH API to get metadata from gallery URL
        /// </summary>
        private void MnTS_LoadUrl_Click(object sender, EventArgs e)
        {
            GetUrl fmGet = new GetUrl();
              fmGet.StartPosition = FormStartPosition.Manual;
              fmGet.Location = this.Location;
              fmGet.ShowDialog();

              if (fmGet.DialogResult == DialogResult.OK) {
            LoadEH(fmGet.Url);
              }
              fmGet.Dispose();
        }