Esempio n. 1
0
        private void LoadBugAppListBox()
        {
            try
            {
                List <Applications.Application> myAppList = applications.GetAppList();

                myAppList.Insert(0,
                                 new Applications.Application()
                {
                    AppName = "<Select Application>"
                }
                                 );
                bugAppComboBox.DataSource    = myAppList;
                bugAppComboBox.DisplayMember = "AppName";
            }
            catch (SqlException sqlex)
            {
                //connection error...
                DisplayErrorMessage(sqlex.Message);
            }
        }