public FormListDocument(IWarehouseDocumentsService documentsService, IArticlesService articlesService) { _documentsService = documentsService; _articlesService = articlesService; InitializeComponent(); RefreshDataGridView(); }
public FormAddDocument(WarehouseDocumentViewModel document, IWarehouseDocumentsService documentsService, IArticlesService articlesService) : this() { _documentsService = documentsService; _articlesService = articlesService; _document = document; textBoxName.DataBindings.Add(nameof(textBoxName.Text), document, nameof(WarehouseDocumentViewModel.Name), false, DataSourceUpdateMode.OnPropertyChanged); textBoxClientNo.DataBindings.Add(nameof(textBoxClientNo.Text), document, nameof(WarehouseDocumentViewModel.ClientNo), false, DataSourceUpdateMode.OnPropertyChanged); dateTimePickerDate.DataBindings.Add(nameof(dateTimePickerDate.Value), document, nameof(WarehouseDocumentViewModel.Date), false, DataSourceUpdateMode.OnPropertyChanged); }