Beispiel #1
0
 public static CanChi GetCanChi(ComboBox canCombobox, ComboBox chiCombobox)
 {
     return(new CanChi
     {
         Can = ThienCan.GetCan(canCombobox.SelectedIndex + 1),
         Chi = DiaChi.GetChi(chiCombobox.SelectedIndex + 1),
     });
 }
Beispiel #2
0
 private CanChi GetCanChi(int canIndex, int chiIndex)
 {
     return(new CanChi
     {
         Can = ThienCan.GetCan(canIndex + 1),
         Chi = DiaChi.GetChi(chiIndex + 1),
     });
 }