public ConnectApplication(ConnectWorkItem workItem) { InitializeComponent(); _workItem = workItem; DataContext = workItem; }
public ConnectInstances(ConnectWorkItem workItem) { _workItem = workItem; DataContext = _workItem; InitializeComponent(); // TODO: update button enabled }
public ConnectLogin(ConnectWorkItem workItem) { _workItem = workItem; _workItem.PropertyChanged += new PropertyChangedEventHandler(WorkItemPropertyChanged); DataContext = workItem; InitializeComponent(); UpdateLoginEnabled(); }
public ConnectForm(ConnectWorkItem workItem) { InitializeComponent(); _workItem = workItem; _workItem.PropertyChanged += new PropertyChangedEventHandler(WorkItemPropertyChanged); DataContext = workItem; SetContent(); }
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; }; }
public ConnectHost(ConnectWorkItem workItem) { DataContext = workItem; _workItem = workItem; InitializeComponent(); }