public SkyDriveFileInfoPanel()
 {
     this.InitializeComponent();
     base.DataContext = this;
     this.objectForShow = new ObjectFromSkyDrive();
     this.file = LocalizedStrings.GetLanguageInfoByKey("File");
     this.dataFile = App.AppName + " " + LocalizedStrings.GetLanguageInfoByKey("DataFile");
 }
 public void Update(ObjectFromSkyDrive menuItem)
 {
     this.ObjectTypeIconImagePath.Source = new BitmapImage(new Uri(menuItem.ObjectTypeIconImagePath, UriKind.RelativeOrAbsolute));
     this.ObjectName.Text = menuItem.Name;
     this.Size.Text = menuItem.Size;
     this.From.Text = menuItem.From;
     this.SharedWith.Text = menuItem.ShareWith;
     this.ModifiedDate.Text = menuItem.UpdateTimeString;
     this.Description.Text = menuItem.Description;
 }
 private string SetFileNameButtonContent(ObjectFromSkyDrive parent, string child)
 {
     string str = string.Empty;
     if (parent != null)
     {
         str = parent.Name + "/";
     }
     else
     {
         str = "/";
     }
     return (str + child);
 }