Exemplo n.º 1
0
 private void FillReferentialListOfVersions(int projectId, VersionObjectCounter versionToSel)
 {
     cbVersions.DataSource   = null;
     using var conn          = new DatabaseConnection();
     cbVersions.DataSource   = conn.Query <VersionObjectCounter>(VersionObjectCounter.SQLSelect, new { ProjectId = projectId }).OrderByDescending(x => x.FullVersion).ToList();
     cbVersions.SelectedItem = versionToSel;
 }
Exemplo n.º 2
0
 public void Initialize(int projectId, Base client, VersionObjectCounter version)
 {
     baseClient = client;
     FillReferentialListOfVersions(projectId, version);
     lblClientName.Text = client.ToString();
     FillTypeObject();
     EnableButtons();
 }