| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | using InABox.Wpf;using System;using System.Windows;namespace InABox.DynamicGrid{    /// <summary>    ///     Interaction logic for DocumentConfirm.xaml    /// </summary>    public partial class DocumentConfirm : ThemableWindow    {        public DocumentConfirm()        {            InitializeComponent();        }        public string FileName { get; set; }        public DateTime LocalTimeStamp { get; set; }        public DateTime RemoteTimeStamp { get; set; }        public int LocalSize { get; set; }        public int RemoteSize { get; set; }        public DocumentAction Result { get; set; }        private void Window_Loaded(object sender, RoutedEventArgs e)        {            Header.Content = string.Format("A file named [{0}] already exists on the server!", FileName);            NewTimeStamp.Content = string.Format("{0:dd MMM yy HH:mm:ss}", LocalTimeStamp);            OldTimeStamp.Content = string.Format("{0:dd MMM yy HH:mm:ss}", RemoteTimeStamp);            OldSize.Content = string.Format("{0:n0}", RemoteSize);            NewSize.Content = string.Format("{0:n0}", LocalSize);            Result = DocumentAction.MakeCopy;        }        private void ReplaceButton_Click(object sender, RoutedEventArgs e)        {            Result = DocumentAction.Replace;            DialogResult = true;            Close();        }        private void ExistingButton_Click(object sender, RoutedEventArgs e)        {            Result = DocumentAction.UseExisting;            DialogResult = true;            Close();        }        private void MakeCopyButton_Click(object sender, RoutedEventArgs e)        {            Result = DocumentAction.MakeCopy;            DialogResult = true;            Close();        }        private void CancelButton_Click(object sender, RoutedEventArgs e)        {            DialogResult = false;            Close();        }    }}
 |