コード例 #1
0
 public void LoadIcons(ExplorerBrowser shellView, bool isLibrary)
 {
     tbLibrary.Text = @"C:\Windows\System32\imageres.dll";
     ShellView      = shellView;
     IsLibrary      = isLibrary;
     ShowDialog();
 }
コード例 #2
0
ファイル: MoreColumns.cs プロジェクト: gouming/BetterExplorer
        public void PopulateAvailableColumns(Collumns[] AvailableCols, ExplorerBrowser ShellView, System.Windows.Point Location)
        {
            BrowserControl = ShellView;
            for (int i = 1; i < AvailableCols.Length; i++)
            {
                if (AvailableCols[i].Name == null)
                {
                    MessageBox.Show("The More Columns dialog cannot be shown right now.", "More Columns", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                ListViewItem lvi = new ListViewItem(AvailableCols[i].Name);
                lvi.Tag = AvailableCols[i].pkey;
                foreach (Collumns collumn in ShellView.AvailableVisibleColumns)
                {
                    if (collumn.pkey.fmtid == AvailableCols[i].pkey.fmtid && collumn.pkey.pid == AvailableCols[i].pkey.pid)
                    {
                        lvi.Checked = true;
                    }
                }

                lvColumns.Items.Add(lvi);
            }
            Opacity = 0;
            Show();
            this.Location = new Point((int)Location.X, (int)Location.Y);
            //this.lvColumns.Sort(); //'this didn't do anything... lol.
            this.lvColumns.Sorting = SortOrder.Ascending;
            Opacity = 255;
        }
コード例 #3
0
 internal ExplorerBrowserNavigationLog(ExplorerBrowser parent)
 {
     // Hook navigation events from the parent to distinguish between
     // navigation log induced navigation, and other navigations.
     this.parent = parent ?? throw new ArgumentException(LocalizedMessages.NavigationLogNullParent, nameof(parent));
     this.parent.NavigationComplete += new EventHandler <NavigationCompleteEventArgs>(OnNavigationComplete);
     this.parent.NavigationFailed   += new EventHandler <NavigationFailedEventArgs>(OnNavigationFailed);
 }
コード例 #4
0
ファイル: usr_sayfa.cs プロジェクト: mustafauzun0/tabbrowser
        void Klasor(string yol)
        {
            this.Controls.Clear();
            (this.Parent as Control).Text = "Dosya Gezgini";
            ExplorerBrowser ee = new ExplorerBrowser();

            ee.Dock = DockStyle.Fill;
            ee.Navigate(Microsoft.WindowsAPICodePack.Shell.ShellObject.FromParsingName(yol));
            this.Controls.Add(ee);
        }
コード例 #5
0
        private static Form MakeTestForm(out ExplorerBrowser eb)
        {
            var frm = new Form {
                Size = new System.Drawing.Size(300, 300)
            };

            frm.Controls.Add(eb = new ExplorerBrowser {
                Name = "eb", Dock = DockStyle.Fill
            });
            return(frm);
        }
コード例 #6
0
        internal ExplorerBrowserNavigationLog(ExplorerBrowser parent)
        {
            if (parent == null)
            {
                throw new ArgumentException(LocalizedMessages.NavigationLogNullParent, "parent");
            }

            // Hook navigation events from the parent to distinguish between
            // navigation log induced navigation, and other navigations.
            this.parent = parent;
            this.parent.NavigationComplete += OnNavigationComplete;
            this.parent.NavigationFailed   += OnNavigationFailed;
        }
コード例 #7
0
        internal ExplorerBrowserNavigationLog(ExplorerBrowser parent)
        {
            if (parent == null)
            {
                throw new ArgumentException("parent can not be null!");
            }

            //
            Locations = new List <ShellObject>();

            // Hook navigation events from the parent to distinguish between
            // navigation log induced navigation, and other navigations.
            this.parent = parent;
            this.parent.NavigationComplete += new ExplorerBrowserNavigationCompleteEventHandler(OnNavigationComplete);
            this.parent.NavigationFailed   += new ExplorerBrowserNavigationFailedEventHandler(OnNavigationFailed);
        }
コード例 #8
0
 private void LoadPath(ExplorerBrowser eb, string path)
 {
     try {
         if (System.IO.Directory.Exists(path))
         {
             eb.Navigate(ShellFileSystemFolder.FromFolderPath(path));
         }
         else
         {
             //スルー
         }
     } catch (COMException) {
         MessageBox.Show(AppObject.GetMsg(AppObject.Msg.ERR_INVALID_PATH),
                         AppObject.GetMsg(AppObject.Msg.TITLE_ERROR), MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #9
0
        private void UpwardNavigation(ExplorerBrowser eb)
        {
            string path = eb.NavigationLog.CurrentLocation.ParsingName;

            if (System.IO.Directory.Exists(path))
            {
                var parent = System.IO.Directory.GetParent(path);
                if (parent != null)
                {
                    eb.Navigate(ShellObject.FromParsingName(parent.FullName));
                }
            }
            else
            {
                eb.NavigateLogLocation(NavigationLogDirection.Backward);
            }
        }
コード例 #10
0
 internal ExplorerBrowserViewEvents(ExplorerBrowser parent)
 {
     this.parent = parent;
 }
 private void InitializeComponent()
 {
     this.kpnlBackground     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.explorerBrowser1   = new Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser();
     this.kryptonLabel1      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonTextBox1    = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kryptonComboBox1   = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     this.kryptonBreadCrumb1 = new ComponentFactory.Krypton.Toolkit.KryptonBreadCrumb();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlBackground)).BeginInit();
     this.kpnlBackground.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonComboBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonBreadCrumb1)).BeginInit();
     this.SuspendLayout();
     //
     // kpnlBackground
     //
     this.kpnlBackground.Controls.Add(this.kryptonBreadCrumb1);
     this.kpnlBackground.Controls.Add(this.kryptonComboBox1);
     this.kpnlBackground.Controls.Add(this.kryptonTextBox1);
     this.kpnlBackground.Controls.Add(this.kryptonLabel1);
     this.kpnlBackground.Controls.Add(this.explorerBrowser1);
     this.kpnlBackground.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kpnlBackground.Location = new System.Drawing.Point(0, 0);
     this.kpnlBackground.Name     = "kpnlBackground";
     this.kpnlBackground.Size     = new System.Drawing.Size(813, 477);
     this.kpnlBackground.TabIndex = 0;
     //
     // explorerBrowser1
     //
     this.explorerBrowser1.Location        = new System.Drawing.Point(12, 37);
     this.explorerBrowser1.Name            = "explorerBrowser1";
     this.explorerBrowser1.PropertyBagName = "Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser";
     this.explorerBrowser1.Size            = new System.Drawing.Size(789, 378);
     this.explorerBrowser1.TabIndex        = 0;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location = new System.Drawing.Point(12, 422);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(88, 26);
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel1.TabIndex    = 1;
     this.kryptonLabel1.Values.Text = "File Name:";
     //
     // kryptonTextBox1
     //
     this.kryptonTextBox1.Location = new System.Drawing.Point(107, 422);
     this.kryptonTextBox1.Name     = "kryptonTextBox1";
     this.kryptonTextBox1.Size     = new System.Drawing.Size(388, 29);
     this.kryptonTextBox1.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonTextBox1.TabIndex = 2;
     this.kryptonTextBox1.Text     = "kryptonTextBox1";
     //
     // kryptonComboBox1
     //
     this.kryptonComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.kryptonComboBox1.DropDownWidth = 300;
     this.kryptonComboBox1.Location      = new System.Drawing.Point(501, 424);
     this.kryptonComboBox1.Name          = "kryptonComboBox1";
     this.kryptonComboBox1.Size          = new System.Drawing.Size(300, 27);
     this.kryptonComboBox1.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonComboBox1.TabIndex = 3;
     //
     // kryptonBreadCrumb1
     //
     this.kryptonBreadCrumb1.AutoSize = false;
     this.kryptonBreadCrumb1.Location = new System.Drawing.Point(12, 3);
     this.kryptonBreadCrumb1.Name     = "kryptonBreadCrumb1";
     //
     //
     //
     this.kryptonBreadCrumb1.RootItem.ShortText = "Root";
     this.kryptonBreadCrumb1.Size     = new System.Drawing.Size(789, 28);
     this.kryptonBreadCrumb1.TabIndex = 4;
     //
     // KryptonSaveFileDialog
     //
     this.ClientSize = new System.Drawing.Size(813, 477);
     this.Controls.Add(this.kpnlBackground);
     this.Name = "KryptonSaveFileDialog";
     ((System.ComponentModel.ISupportInitialize)(this.kpnlBackground)).EndInit();
     this.kpnlBackground.ResumeLayout(false);
     this.kpnlBackground.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonComboBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonBreadCrumb1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #12
0
 internal ExplorerBrowserNavigationOptions(ExplorerBrowser eb)
 {
     this.eb        = eb;
     PaneVisibility = new ExplorerBrowserPaneVisibility();
 }
コード例 #13
0
 internal ExplorerBrowserContentOptions(ExplorerBrowser eb) => this.eb = eb;
コード例 #14
0
 public ExplorerBrowserContentOptions(ExplorerBrowser eb)
 {
     this.eb = eb;
 }
コード例 #15
0
 public ExplorerBrowserViewEvents(ExplorerBrowser parent)
 {
     this.parent = parent;
 }
コード例 #16
0
 internal ExplorerBrowserNavigationOptions( ExplorerBrowser eb )
 {
     this.eb = eb;
     PaneVisibility = new ExplorerBrowserPaneVisibility( );
 }
コード例 #17
0
 private void LoadPath(ExplorerBrowser eb, ShellObject so)
 {
     eb.Navigate(so);
 }