public static ExtFolderBrowserDialog ComputerBrowser()
		{
			ExtFolderBrowserDialog x = new ExtFolderBrowserDialog();
			// avoid MBRO comppiler warning when passing _rootFolderLocation as a ref:
			x.BecomeComputerBrowser();
			return x;
		}
Example #2
0
        public static ExtFolderBrowserDialog ComputerBrowser()
        {
            ExtFolderBrowserDialog x = new ExtFolderBrowserDialog();

            // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref:
            x.BecomeComputerBrowser();
            return(x);
        }
Example #3
0
        private void btnAddDirectory_Click(object sender, EventArgs e)
        {
            using (ExtFolderBrowserDialog xfbd = new ExtFolderBrowserDialog()) {
                xfbd.Description = "Please select the manga you'd like to exclude from future search results:";
                xfbd.ShowBothFilesAndFolders = true;
                xfbd.RootFolder = Environment.SpecialFolder.MyComputer;
                xfbd.SelectedPath = Environment.CurrentDirectory;

                if (xfbd.ShowDialog() == DialogResult.OK) {
                    lvIgnoredPaths.Items.Add(xfbd.SelectedPath);
                    SettingsChanged(stCurrent.SearchIgnoreChanged(GetIgnoredPaths()));
                }
            }
        }
Example #4
0
        private void btnAddDirectory_Click(object sender, EventArgs e)
        {
            using (ExtFolderBrowserDialog xfbd = new ExtFolderBrowserDialog()) {
                xfbd.Description             = "Please select the manga you'd like to exclude from future search results:";
                xfbd.ShowBothFilesAndFolders = true;
                xfbd.RootFolder   = Environment.SpecialFolder.MyComputer;
                xfbd.SelectedPath = Environment.CurrentDirectory;

                if (xfbd.ShowDialog() == DialogResult.OK)
                {
                    lvIgnoredPaths.Items.Add(xfbd.SelectedPath);
                    SettingsChanged(stCurrent.SearchIgnoreChanged(GetIgnoredPaths()));
                }
            }
        }
Example #5
0
        /// <summary>
        /// Lets the user select where the manga is located
        /// </summary>
        private void Btn_Loc_Click(object sender, EventArgs e)
        {
            //try to auto-magically grab folder\file path
            string sPath = Ext.FindPath(acTxBx_Artist.Text, acTxBx_Title.Text, acTxBx_Loc.Text) ?? (string)SQL.GetSetting(SQL.Setting.RootPath);

            using (ExtFolderBrowserDialog xfbd = new ExtFolderBrowserDialog()) {
                xfbd.Description = "Please select the path of your manga:";
                xfbd.ShowBothFilesAndFolders = true;
                xfbd.RootFolder = Environment.SpecialFolder.MyComputer;
                xfbd.SelectedPath = sPath;

                if (xfbd.ShowDialog() == DialogResult.OK) {
                    acTxBx_Loc.Text = xfbd.SelectedPath;
                    ThreadPool.QueueUserWorkItem(GetImage, acTxBx_Loc.Text);
                    bRead = false;
                    page = -1;

                    if (string.IsNullOrWhiteSpace(acTxBx_Artist.Text) && string.IsNullOrWhiteSpace(acTxBx_Title.Text))
                        SetTitle(Ext.GetNameSansExtension(xfbd.SelectedPath));
                }
            }
        }