private void btnChooseAktivity_Click(object sender, RoutedEventArgs e)
        {
            ActivityRegister activityRegister = new ActivityRegister(true, DepartmentID);

            if (activityRegister.ShowDialog() == true)
            {
                if (SelectedActivities.Contains(activityRegister.Activity))
                {
                    MessageBox.Show("Du kan inte välja samma produkt flera gånger");
                }
                else
                {
                    SelectedActivities.Add(activityRegister.Activity);
                    CreateColumn(activityRegister.Activity);
                }
            }
        }
Esempio n. 2
0
        private void btnAktivitetshantering_Click(object sender, RoutedEventArgs e)
        {
            ActivityRegister activityRegister = new ActivityRegister();

            activityRegister.ShowDialog();
        }