Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            clientUiConfiguration = LoadClientUiConfiguration();
            httpClientProvider    = new HttpClientProvider(clientUiConfiguration.ServerAddress, clientUiConfiguration.TimeoutMs, clientUiConfiguration.UserLogin, clientUiConfiguration.UserPassword);

            DataGridDisciplines.LoadTable(typeof(DisciplineBasedProxy));
            DataGridGroups.LoadTable(typeof(GroupBasedProxy));
            DataGridStudents.LoadTable(typeof(StudentBasedProxy));
            DataGridUsers.LoadTable(typeof(UserBasedProxy));
        }
Exemplo n.º 2
0
        public GroupWindow(GroupExtendedProxy group, bool isReadOnly)
        {
            InitializeComponent();

            ExtendedProxy = group?.GetExtendedClone() ?? new GroupExtendedProxy();
            IsReadOnly    = isReadOnly;

            DataGridStudents.LoadTable(typeof(StudentBasedProxy));
            DataGridDisciplines.LoadTable(typeof(DisciplineBasedProxy));

            SetGroupFields();
            SetReadOnly();
        }