コード例 #1
0
        public bool LaunchFolder(IWin32Window owner, string folderPath)
        {
            Validate.Begin().IsNotNull <IWin32Window>(owner, "owner").IsNotNull <string>(folderPath, "folderPath").Check().IsNotZero(owner.Handle, "owner.Handle").IsNotEmpty(folderPath, "folderPath").Check();
            Result result = delegate {
                ShellUtil.BrowseFolder2(owner, folderPath);
            }.Try();

            result.Observe();
            return(!result.IsError);
        }
コード例 #2
0
 private void OnOpenFolderLinkLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     ShellUtil.BrowseFolder2(this, this.crashLogDir);
 }