public Form12AttachDocuments(CreateDocsCallback callback, DocType type) { InitializeComponent(); this.docsType = type; ConfigureGrid(docsType); ConfigureCheckBoxes(type); // costCB.SelectedIndexChanged -= costCB_SelectedIndexChanged; //costCB.Items.AddRange(new string[] { "бесплатно", "платно" }); costCB.SelectedIndex = 0; //costCB.SelectedIndexChanged += costCB_SelectedIndexChanged; documents = new List <Document>(); this.callback = callback; }
public Form12AttachDocuments(int?fidJournal, List <Document> attachDocs, DocType type, int cost, CreateDocsCallback callback) : this(callback, type) { documents = attachDocs; //Вызывается из формы редактирования, передает ранее созданные документы //Запишем id той записи в журнале, которую редактируем editID = fidJournal; SetCost(cost); FillDocsGrid(attachDocs); //SetColorFastCell(docsType); }