Ejemplo n.º 1
0
 public ProjectRowChangeEvent(ProjectRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
 private void UpdateProjects()
 {
     ProjectsGrid.Items.Clear();
     RGRCollection.Clear();
     foreach (var rgr in InitProjectTable())
     {
         var laba = (RGR)rgr;
         RGRCollection.Add(laba);
         var val = new ProjectRow(laba.ID.ToString(), laba.Theme, laba.Description,
             laba.Events.Count > 0 ? laba.Events[laba.Events.Count - 1].DeadLine.ToLongDateString() : String.Empty);
         ProjectsGrid.Items.Add(val);
     }
 }
Ejemplo n.º 3
0
 public DonationRow AddDonationRow(UserRow parentUserRowByFK_Donation_User, string BankAccount, decimal Money, System.DateTime DonationDate, ProjectRow parentProjectRowByFK_Donation_Project) {
     DonationRow rowDonationRow = ((DonationRow)(this.NewRow()));
     rowDonationRow.ItemArray = new object[] {
             null,
             parentUserRowByFK_Donation_User[0],
             BankAccount,
             Money,
             DonationDate,
             parentProjectRowByFK_Donation_Project[0]};
     this.Rows.Add(rowDonationRow);
     return rowDonationRow;
 }
Ejemplo n.º 4
0
        private void UpdateProjects()
        {
//            _projectsUpdating = true;
            ProjectsGrid.Items.Clear();
            _labsCollection.Clear();
            foreach (var lw in GetProjects())
            {
                var laba = (LabWorks)lw;
                _labsCollection.Add(laba);
                var val = new ProjectRow(laba.ID.ToString(), laba.Theme, laba.Description,
                    laba.Events.Count > 0 ? laba.Events[laba.Events.Count - 1].DeadLine.ToLongDateString() : String.Empty);
                ProjectsGrid.Items.Add(val);
            }
//            _projectsUpdating = false;
        }
Ejemplo n.º 5
0
 public ProjectRowChangeEvent(ProjectRow row, System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
Ejemplo n.º 6
0
 public UserRelationShipRow AddUserRelationShipRow(UserRow parentUserRowByFK_UserRelationShip_User, UserRow parentUserRowByFK_UserRelationShip_User1, ProjectRow parentProjectRowByFK_UserRelationShip_Project) {
     UserRelationShipRow rowUserRelationShipRow = ((UserRelationShipRow)(this.NewRow()));
     rowUserRelationShipRow.ItemArray = new object[] {
             parentUserRowByFK_UserRelationShip_User[0],
             parentUserRowByFK_UserRelationShip_User1[0],
             parentProjectRowByFK_UserRelationShip_Project[0]};
     this.Rows.Add(rowUserRelationShipRow);
     return rowUserRelationShipRow;
 }
Ejemplo n.º 7
0
 public DistributionRow AddDistributionRow(UserRow parentUserRowByFK_Distribution_User, UserRow parentUserRowByFK_Distribution_User1, byte DistributionType, string Purpose, ProjectRow parentProjectRowByFK_Distribution_Project, System.DateTime DistributionDate, decimal Money, byte FeedbackStatus) {
     DistributionRow rowDistributionRow = ((DistributionRow)(this.NewRow()));
     rowDistributionRow.ItemArray = new object[] {
             null,
             parentUserRowByFK_Distribution_User[0],
             parentUserRowByFK_Distribution_User1[0],
             DistributionType,
             Purpose,
             parentProjectRowByFK_Distribution_Project[0],
             DistributionDate,
             Money,
             FeedbackStatus};
     this.Rows.Add(rowDistributionRow);
     return rowDistributionRow;
 }
Ejemplo n.º 8
0
 public void RemoveProjectRow(ProjectRow row) {
     this.Rows.Remove(row);
 }
Ejemplo n.º 9
0
 public void AddProjectRow(ProjectRow row) {
     this.Rows.Add(row);
 }