コード例 #1
0
ファイル: Decrypt.xaml.cs プロジェクト: imjihun/EglobalStudy
        bool CheckHaveDirectory(IEnumerable <Object> selected_list)
        {
            var  enumerator    = selected_list.GetEnumerator();
            bool haveDirectory = true;

            for (int i = 0; haveDirectory = enumerator.MoveNext(); i++)
            {
                LinuxTreeViewItem ltvi = enumerator.Current as LinuxTreeViewItem;

                CofileUI.UserControls.Cofile.LinuxListViewItem llvi = enumerator.Current as CofileUI.UserControls.Cofile.LinuxListViewItem;
                if (llvi != null)
                {
                    ltvi = llvi.LinuxTVI as LinuxTreeViewItem;
                }

                if (ltvi == null)
                {
                    continue;
                }

                if (ltvi.IsDirectory)
                {
                    break;
                }
            }

            return(haveDirectory);
        }
コード例 #2
0
ファイル: Decrypt.xaml.cs プロジェクト: imjihun/EglobalStudy
        string GetFileListString(IEnumerable <Object> selected_list)
        {
            string str        = "";
            var    enumerator = selected_list.GetEnumerator();

            for (int i = 0; enumerator.MoveNext(); i++)
            {
                LinuxTreeViewItem ltvi = enumerator.Current as LinuxTreeViewItem;

                CofileUI.UserControls.Cofile.LinuxListViewItem llvi = enumerator.Current as CofileUI.UserControls.Cofile.LinuxListViewItem;
                if (llvi != null)
                {
                    ltvi = llvi.LinuxTVI as LinuxTreeViewItem;
                }

                if (ltvi == null)
                {
                    continue;
                }

                str += ltvi.Path + "\n";
            }
            return(str);
        }