Exemple #1
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 #2
0
 private void Button_Click(object sender, System.Windows.RoutedEventArgs args)
 {
     BindingUtility.UpdateTextBoxBindingSources(this);
     _workItem.BeginLogin();
 }