예제 #1
0
        private ComboBox createProjectCombobox()
        {
            var combobox = new System.Windows.Forms.ComboBox()
            {
                Left = 91, Top = lastLineHeight, Width = 121, AutoCompleteMode = AutoCompleteMode.Append, AutoCompleteSource = AutoCompleteSource.ListItems
            };

            combobox.Items.AddRange(Handler.getAvailableProjects().Cast <string>().ToArray());
            combobox.SelectedIndex = Handler.getAvailableProjectIndex(ProjectChangeHandler.PROJECT_WORKTIMEBREAK);
            return(combobox);
        }