public SelectOpenProcessForm()
        {
            InitializeComponent();

            List <Window> openWindows = WindowAccessor.GetOpenWindows();

            foreach (Window window in openWindows)
            {
                openProcesses.Items.Add(window);
            }
        }
Пример #2
0
        private void testButton_Click(object sender, EventArgs e)
        {
            Profile selectedProfile = (Profile)profilesComboBox.Items[profilesComboBox.SelectedIndex];

            WindowAccessor.OpenPrograms(selectedProfile.Windows);
        }