public FileView(IDiscElement element)
        {
            InitializeComponent();

            if (element is MyFile)
            {
                MyFile file = element as MyFile;
                this.file           = file;
                filename.Text       = file.Name;
                filedate.Text       = file.GetCreationDate().ToString();
                filesize.Text       = file.Size.ToString();
                filetype.Text       = @"<FILE>";
                filetype.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#E06C75"));
            }
            else if (element is MyDirectory)
            {
                MyDirectory directory = element as MyDirectory;
                this.file           = directory;
                filename.Text       = directory.Name;
                filedate.Text       = directory.GetCreationDate().ToString();
                filesize.Text       = "--";
                filetype.Text       = @"<DIR>";
                filetype.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFD19A66"));
            }
        }