Esempio n. 1
0
        public FormNewEvent()
        {
            InitializeComponent();
            PanelDrawer.Colorize(this);
            //fyller listorna med dommare och hoppare
            NewEventPresenter.FillListViewWithDivers(radioButtonMale, radioButtonFemale, listViewDivers);
            NewEventPresenter.FillListViewWithJudges(listViewJudge);


            listViewDivers.ItemDrag  += listViewDivers_ItemDrag;
            listViewDivers.DragEnter += listViewDivers_DragEnter;
            listViewDivers.DragDrop  += listViewDivers_DragDrop;
            listViewDivers.AllowDrop  = true;


            //hämtar autocomplete listorna från databasen
            Database.GetAutoCompleteListsFromDatabase(_diveNo, _diveName);
            Database.GetAutoCompleteListsFromDatabase(_diveNoReadOnly, _diveNameReadOnly);
        }
Esempio n. 2
0
 private void listViewDivers_ColumnClick(object sender, ColumnClickEventArgs e)
 {
     NewEventPresenter.FillListViewWithDivers(radioButtonMale, radioButtonFemale, listViewDivers, e.Column);
 }
Esempio n. 3
0
 private void RemoveDiverToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Database.RemoveDiver(Int32.Parse(selectedItem.SubItems[4].Text));
     NewEventPresenter.FillListViewWithDivers(radioButtonMale, radioButtonFemale, listViewDivers);
 }
Esempio n. 4
0
 //uppdaterar listViewDivers när användaren väljer mellan Male och Female
 private void radioButtonMale_CheckedChanged(object sender, EventArgs e)
 {
     NewEventPresenter.FillListViewWithDivers(radioButtonMale, radioButtonFemale, listViewDivers);
 }