public OrderlyViewForm(DbEngine dbEngine, OrderlyClass orderlyInfo) { InitializeComponent(); _dbEngine = dbEngine; if (orderlyInfo == null) { _orderlyInfo = new OrderlyClass(); Text = "Добавление нового санитара"; } else { _orderlyInfo = orderlyInfo; Text = "Редактирование санитара"; textBoxOrderlyName.Text = _orderlyInfo.LastNameWithInitials; } }
public static int Compare(OrderlyClass orderlyInfo1, OrderlyClass orderlyInfo2) { return(string.Compare(orderlyInfo1.LastNameWithInitials, orderlyInfo2.LastNameWithInitials)); }
public OrderlyClass(OrderlyClass orderlyInfo) { Id = orderlyInfo.Id; LastNameWithInitials = orderlyInfo.LastNameWithInitials; }