public DataTable GetSoftwareInfo()
        {
            _applications = new SoftwareService(_scope, _options);
            var      softwareNamesList = _applications.GetAllSoftware();
            var      dt = CreateExcelFile.ListToDataTable(softwareNamesList, "Software");
            DataView dv = dt.DefaultView;

            dv.Sort = "Name asc";
            return(dv.ToTable());
        }
Beispiel #2
0
 private void btnGetSoftware_Click(object sender, EventArgs e)
 {
     try
     {
         if (_sysConnector == null)
         {
             ShowConnectionErrorMessage();
         }
         else
         {
             this.Cursor                = Cursors.WaitCursor;
             _applications              = new SoftwareService(_sysConnector.Scope, _sysConnector.Options);
             listSoftware.DataSource    = new BindingList <SoftwareInfo>(_applications.GetAllSoftware());
             listSoftware.DisplayMember = "Name";
             this.Cursor                = Cursors.Default;
         }
     }
     catch (Exception ex)
     {
         var message = new MessageWindow("Error", ex);
         message.ShowDialog();
     }
 }