예제 #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();
        }
예제 #2
0
 public DirectorySender(LinkClient client, LinkProfile profile, NetworkStream stream, string fullPath) : base(client, profile, stream)
 {
     Name     = Path.GetDirectoryName(fullPath);
     FullName = fullPath;
 }
예제 #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;
 }
예제 #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));
 }
예제 #5
0
 protected DirectoryObject(LinkClient client, LinkProfile profile, NetworkStream stream) : base(client, profile, stream)
 {
     // nothing
 }
예제 #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;
 }
예제 #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;
 }