Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            //MessageBox.Show(wcfClient.DoWork("yp"));
            //wcfClient.Close();

            client =  new SessionWraperFromWCF(wcfClient);
            /*client = new LectorsSeminarsDataAccessLayer.
                SessionWraperFactory(false).OpenSessionAdapter();
            */
            RecreateSeminarsTree();
        }
Exemplo n.º 2
0
        public EditLectorDialog(SessionWraperFromWCF client, Lector lector)
        {
            InitializeComponent();
            this.client = client;
            this.lector = lector;

            if (lector!=null)
            {
                if (lector.Name!=null)
                    textBoxName.Text = lector.Name;
                if (lector.Birthday != null)
                    try
                    {
                        dateTimePickerBirthday.Value = DateTime.Parse(lector.Birthday);
                    }
                    catch (Exception e) { }
                if (lector.LectorPhotoName != null)
                    pictureBoxPhoto.Image = Image.FromFile(Lector.img + lector.LectorPhotoName);
            }
        }
Exemplo n.º 3
0
 public EditLectorDialog(SessionWraperFromWCF client)
     : this(client, null)
 {
 }
Exemplo n.º 4
0
 public Seminar(SessionWraperFromWCF sessionWraperFromWCF)
 {
     // TODO: Complete member initialization
     this.sessionWraperFromWCF = sessionWraperFromWCF;
 }