コード例 #1
0
            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="vm">The view model</param>
            public AcceptTransfer(IncomingTransferViewModel vm)
            {
                ViewModel = vm;

                //  Just to shut up the compiler
                CanExecuteChanged?.Invoke(this, EventArgs.Empty);
            }
コード例 #2
0
            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="vm">The view model</param>
            public RejectTransfer(IncomingTransferViewModel vm)
            {
                ViewModel = vm;

                //  Again... shut up
                CanExecuteChanged?.Invoke(this, EventArgs.Empty);
            }
コード例 #3
0
            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="parent">The parent view model</param>
            public ChooseFolder(IncomingTransferViewModel parent)
            {
                Parent = parent;

                //  Raise the event just to shut up the compiler
                CanExecuteChanged?.Invoke(this, EventArgs.Empty);
            }
コード例 #4
0
 public ConnectionWindow(TcpClient client)
 {
     //InitializeComponent();
     ViewModel = new IncomingTransferViewModel(this, client);
     //DataContext = ViewModel;
 }