Ejemplo n.º 1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            if (profile == null)
            {
                profile = App.CurrentProfile;
            }
            Debug.Assert(profile != null);
            Debug.Assert(profile.Hint == 0);
            App.TextBoxKeyDown += TextBox_KeyDown;
            DataContext         = profile;

            scrollViewer = listbox.FindChild <ScrollViewer>(string.Empty);
            Debug.Assert(scrollViewer != null);
            messageCollection              = profile.MessageCollection;
            messageCollection.ListChanged += BindingList_ListChanged;
            listbox.ItemsSource            = messageCollection;
            scrollViewer.ScrollToBottom();
        }
Ejemplo n.º 2
0
 public DirectorySender(LinkClient client, LinkProfile profile, NetworkStream stream, string fullPath) : base(client, profile, stream)
 {
     Name     = Path.GetDirectoryName(fullPath);
     FullName = fullPath;
 }
Ejemplo n.º 3
0
 public DirectoryReceiver(LinkClient client, LinkProfile profile, NetworkStream stream, string name) : base(client, profile, stream)
 {
     Name     = name ?? throw new ArgumentNullException(nameof(name));
     FullName = name;
 }
Ejemplo n.º 4
0
 public MessageEventArgs(LinkClient client, LinkProfile profile, Message message)
 {
     Client  = client ?? throw new ArgumentNullException(nameof(client));
     Profile = profile ?? throw new ArgumentNullException(nameof(profile));
     Message = message ?? throw new ArgumentNullException(nameof(message));
 }
Ejemplo n.º 5
0
 protected DirectoryObject(LinkClient client, LinkProfile profile, NetworkStream stream) : base(client, profile, stream)
 {
     // nothing
 }
Ejemplo n.º 6
0
 public FileSender(LinkClient client, LinkProfile profile, NetworkStream stream, string fullName, long length) : base(client, profile, stream, length)
 {
     Name     = Path.GetFileName(fullName);
     FullName = fullName;
 }
Ejemplo n.º 7
0
 public FileReceiver(LinkClient client, LinkProfile profile, NetworkStream stream, string name, long length) : base(client, profile, stream, length)
 {
     Name     = name ?? throw new ArgumentNullException(nameof(name));
     FullName = name;
 }