private void FillAgendaItemByAgendaDate(AgendaDates objOrigin) { TextFlyout = string.Empty; SelectedsAgendaItemByAgendaDate.Clear(); AgendaItems.Where(x => x.Time.ToString("MM/yyyy").Equals(objOrigin.FormatedDate)).ToList().ForEach(f => { SelectedsAgendaItemByAgendaDate.Add(f); TextFlyout += (!string.IsNullOrEmpty(TextFlyout)) ? Environment.NewLine : string.Empty; TextFlyout += $"{f.Time.ToString("dd/MM/yyyy")} - {f.Title}"; }); }
private ObservableCollection <AgendaDates> ListAgendaDates() { var itens = AgendaItems.Select(x => x.Time.ToString("MM/yyyy")); var lista = new ObservableCollection <AgendaDates>(); itens.Distinct().ToList().ForEach(x => { var ai = new AgendaDates() { FormatedDate = x, Quantity = itens.Count(c => c.Equals(x)) }; lista.Add(ai); }); return(lista); }
public void AddAgendaItem(AgendaItem agendaItem, User currUser) { if (agendaItem == null) { throw new CantBeNullException(); } else if (currUser != Owner && !currUser.Admin) { throw new InvalidAccessException(); } else { AgendaItems.Add(agendaItem); } }
public Meeting(string title, User user, DateTime startTime, DateTime endTime, string description, List <Person> attendances, List <CreatMeetingAgendaBuilder> agendaItems) { Title = title; Owner = user; StartTime = startTime; Description = description; //Attendances.Add(new Attendance(this, user, false, false, true)); /*foreach (Person attendance in attendances) * { * Attendances.Add(new Attendance(this, attendance, false, false, false)); * }*/ foreach (CreatMeetingAgendaBuilder agendaItem in agendaItems) { AgendaItems.Add(new AgendaItem(agendaItem.Agendapoint, agendaItem.Submeetings, user, this)); } }
/*public SoundFile BeginRecordSound() * { * throw new System.NotImplementedException(); * } * * public SoundFile StopRecordSound() * { * throw new System.NotImplementedException(); * }*/ public void RemoveAgendaItem(AgendaItem agendaItem, User currUser) { if (agendaItem == null) { throw new CantBeNullException(); } else if (currUser != Owner && !currUser.Admin) { throw new InvalidAccessException(); } else if (!AgendaItems.Contains(agendaItem)) { throw new DoNotContainElementException(); } else { AgendaItems.Remove(agendaItem); } }
public CommitteePage() { this.InitializeComponent(); try { AgendaItems currentTopic = mySharedData.MyCommittee.AgendaItems1[0]; currentTopicBlock.Text = currentTopic.Description; } catch (Exception) { currentTopicBlock.Text = "Warning: no info loaded!"; // throw; } string temp = PointOfOrder.GetInfo(); List <Button> list = new List <Button>(); button0.Content = (new TextBlock().Text = PointOfOrder.GetInfo()); button1.Content = PointOfInformation.GetInfo(); button2.Content = PointOfInquiry.GetInfo(); button3.Content = DiplomaticCourtesy.GetInfo(); button4.Content = LimitsOfDebateMotion.GetInfo(); button5.Content = SupsensionoftheMeetingMotion.GetInfo(); button6.Content = ReorderAgendaItems.GetInfo(); button7.Content = ClosureofDebateOnTopic.GetInfo(); button8.Content = ClosureofDebateOnDraftResolution.GetInfo(); button9.Content = UnModeratedCaucusMotion.GetInfo(); button10.Content = ModeratedCaucusMotion.GetInfo(); button11.Content = AdjournmentofMeeting.GetInfo(); button12.Content = SubmissionofProposal.GetInfo(); button13.Content = ConsiderationofDraftResolution.GetInfo(); button14.Content = ConsiderationofUnfriendlyAmendment.GetInfo(); button14.Content = ConsiderationofFriendlyAmendment.GetInfo(); button15.Content = AddanAgendaTopic.GetInfo(); button16.Content = "Go Back"; button17.Content = "Vote on Motions"; button18.Content = "View Available Amendments"; button19.Content = "View Available Resolutions"; }