Inheritance: MonoMac.AppKit.NSTableCellView
 private void UpdateViewLastModificationDate(TransmissionWidgetItem widget, DateTime date)
 {
     if (widget != null)
     {
         widget.labelDate.StringValue = string.Format("{0} {1}", date.ToShortDateString(), date.ToShortTimeString());
     }
 }
        private void UpdateWidgetStatus(TransmissionWidgetItem widget, Transmission t)
        {
            if (widget != null)
            {
                string pos  = t.Position != null && t.Position != t.Length ? string.Format("{0}/", CmisSync.Lib.Utils.FormatSize(t.Position.GetValueOrDefault())) : string.Empty;
                string size = t.Length != null?CmisSync.Lib.Utils.FormatSize(t.Length.GetValueOrDefault()) : string.Empty;

                string speed = !t.Done ? CmisSync.Lib.Utils.FormatBandwidth(t.BitsPerSecond.GetValueOrDefault()): string.Empty;
                widget.labelStatus.StringValue = string.Format("{0}{1}\t{2}", pos, size, speed);
            }
        }
 private void UpdateViewProgress(TransmissionWidgetItem widget, Transmission t)
 {
     if (widget != null)
     {
         widget.progress.Hidden      = t.Percent.GetValueOrDefault() == 100;
         widget.progress.DoubleValue = t.Percent.GetValueOrDefault();
         if (widget.progress.Hidden)
         {
             System.Drawing.SizeF size = widget.Frame.Size;
             size.Height = widget.labelName.Frame.Height + widget.labelStatus.Frame.Height;
             widget.SetFrameSize(size);
         }
         else
         {
             System.Drawing.SizeF size = widget.Frame.Size;
             size.Height = widget.labelName.Frame.Height + widget.progress.Frame.Height + widget.labelStatus.Frame.Height;
             widget.SetFrameSize(size);
         }
     }
 }
 private void UpdateWidgetStatus(TransmissionWidgetItem widget, Transmission t) {
     if (widget != null) {
         string pos = t.Position != null && t.Position != t.Length ? string.Format("{0}/", CmisSync.Lib.Utils.FormatSize(t.Position.GetValueOrDefault())) : string.Empty;
         string size = t.Length != null ? CmisSync.Lib.Utils.FormatSize(t.Length.GetValueOrDefault()) : string.Empty;
         string speed = !t.Done ? CmisSync.Lib.Utils.FormatBandwidth(t.BitsPerSecond.GetValueOrDefault()): string.Empty;
         widget.labelStatus.StringValue = string.Format("{0}{1}\t{2}", pos, size, speed);
     }
 }
 private void UpdateViewProgress(TransmissionWidgetItem widget, Transmission t) {
     if (widget != null) {
         widget.progress.Hidden = t.Percent.GetValueOrDefault() == 100;
         widget.progress.DoubleValue = t.Percent.GetValueOrDefault();
         if (widget.progress.Hidden) {
             System.Drawing.SizeF size = widget.Frame.Size;
             size.Height = widget.labelName.Frame.Height + widget.labelStatus.Frame.Height;
             widget.SetFrameSize(size);
         } else {
             System.Drawing.SizeF size = widget.Frame.Size;
             size.Height = widget.labelName.Frame.Height + widget.progress.Frame.Height + widget.labelStatus.Frame.Height;
             widget.SetFrameSize(size);
         }
     }
 }
 private void UpdateViewLastModificationDate(TransmissionWidgetItem widget, DateTime date) {
     if (widget != null) {
         widget.labelDate.StringValue = string.Format("{0} {1}", date.ToShortDateString(), date.ToShortTimeString());
     }
 }