private void btnSave_Click(object sender, EventArgs e) { DocumentSet ds = new DocumentSet(); if (string.IsNullOrEmpty(txtDocumentSetUID.Text)) { ds.IsVoid = 'N'; ds.Name = txtDocumentSetName.Text; ds.TemplateType = txtDocumentSetName.Text; ds.TemplateFolder = ""; ds.UID = 0; ds.Add(); } else { ds.IsVoid = 'N'; ds.TemplateType = txtDocumentSetName.Text; ds.UID = documentSet.UID; ds.Update(); } // Reload document set list // cbxDocumentSet.Items.Clear(); dsl.ListInComboBox(cbxDocumentSet); cbxDocumentSet.SelectedIndex = 0; SelectIndexChanged(); }
private void UCDocumentList_Load(object sender, EventArgs e) { DocumentSetList dsl = new DocumentSetList(); dsl.ListInComboBox(cbxDocumentSet); cbxDocumentSet.SelectedIndex = 0; SelectIndexChanged(); }
private void UIDocumentSet_Load(object sender, EventArgs e) { dsl = new DocumentSetList(); dsl.ListInComboBox(cbxDocumentSet); if (cbxDocumentSet.Items.Count > 0) { cbxDocumentSet.SelectedIndex = 0; SelectIndexChanged(); } }
private void UIDocumentSetDocumentLink_Load(object sender, EventArgs e) { PopulateDocumentCombo('N'); cbxLinkType.Items.Add(FCMConstant.DocumentLinkType.PROJECTPLAN); cbxLinkType.Items.Add(FCMConstant.DocumentLinkType.APPENDIX); removeDocumentToolStripMenuItem.Enabled = false; dsl = new DocumentSetList(); dsl.ListInComboBox(cbxDocumentSet); cbxDocumentSet.Text = cbxDocumentSet.Items[0].ToString(); }