public ConnectApplication(ConnectWorkItem workItem)
        {
            InitializeComponent();

            _workItem   = workItem;
            DataContext = workItem;
        }
Exemple #2
0
        public ConnectInstances(ConnectWorkItem workItem)
        {
            _workItem   = workItem;
            DataContext = _workItem;
            InitializeComponent();

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

            _workItem = workItem;
            _workItem.PropertyChanged += new PropertyChangedEventHandler(WorkItemPropertyChanged);
            DataContext = workItem;
            SetContent();
        }
Exemple #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;
            };
        }
Exemple #6
0
 public ConnectHost(ConnectWorkItem workItem)
 {
     DataContext = workItem;
     _workItem   = workItem;
     InitializeComponent();
 }