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