public ConnectApplication(ConnectWorkItem workItem)
        {
            InitializeComponent();

            _workItem   = workItem;
            DataContext = workItem;
        }
Ejemplo n.º 2
0
        public ConnectInstances(ConnectWorkItem workItem)
        {
            _workItem   = workItem;
            DataContext = _workItem;
            InitializeComponent();

            // TODO: update button enabled
        }
Ejemplo n.º 3
0
 public ConnectLogin(ConnectWorkItem workItem)
 {
     _workItem = workItem;
     _workItem.PropertyChanged += new PropertyChangedEventHandler(WorkItemPropertyChanged);
     DataContext = workItem;
     InitializeComponent();
     UpdateLoginEnabled();
 }
Ejemplo n.º 4
0
        public ConnectForm(ConnectWorkItem workItem)
        {
            InitializeComponent();

            _workItem = workItem;
            _workItem.PropertyChanged += new PropertyChangedEventHandler(WorkItemPropertyChanged);
            DataContext = workItem;
            SetContent();
        }
Ejemplo n.º 5
0
        private void StartConnection()
        {
            var connectItem = new ConnectWorkItem(RootContent);

                        #if DEBUG
            connectItem.HostName     = "localhost";
            connectItem.InstanceName = "Draft";
            connectItem.Status       = ConnectStatus.Login;
            connectItem.BeginLogin();
                        #endif

            var connectForm = new ConnectForm(connectItem);
            RootContent.Content   = connectForm;
            connectForm.Complete +=
                delegate
            {
                connectItem.Session.OnComplete += SessionComplete;
            };
        }
Ejemplo n.º 6
0
 public ConnectHost(ConnectWorkItem workItem)
 {
     DataContext = workItem;
     _workItem   = workItem;
     InitializeComponent();
 }