コード例 #1
0
ファイル: Country.cs プロジェクト: scroll17/practic-ci-sharp
        public Сountry(Сountry country)
        {
            this.name       = country.name;
            this.president  = country.president;
            this.population = country.population;
            this.square     = country.square;

            UpdateSummaryStaticFields();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: scroll17/practic-ci-sharp
 private ListViewItem GetListViewItemFormFlight(Сountry country)
 {
     return(new ListViewItem(new string[] {
         country.Name,
         country.President,
         country.Population.ToString(),
         country.Square.ToString(),
         country.Density.ToString()
     }));
 }