private UserControl InitReceiptRowOrganization(ref String TagControl, ref string Title, params object[] list) { UserControl usControl; if ((list[0] as MDataSet.ReceiptMasterRow) != null) { TagControl += (list[0] as MDataSet.ReceiptMasterRow).ID.ToString(); if (!FindOpenedTabs(TagControl)) { Title = "№" + (list[0] as MDataSet.ReceiptMasterRow).Number.ToString() + " " + (list[0] as MDataSet.ReceiptMasterRow).OrganizationRow.ShortName.ToString(); usControl = new ReceiptRowOrganization((list[0] as MDataSet.ReceiptMasterRow), (list[0] as MDataSet.ReceiptMasterRow).ID); (usControl as ReceiptRowOrganization).Tag = Title; (usControl as ReceiptRowOrganization).Dock = DockStyle.Fill; } else { return(null); } return(usControl); } else { return(null); } }
private UserControl InitReceiptRowOrganization(ref String TagControl, ref string Title, params object[] list) { UserControl usControl; if ((list[0] as MDataSet.ReceiptMasterRow) != null) { TagControl += (list[0] as MDataSet.ReceiptMasterRow).ID.ToString(); if (!FindOpenedTabs(TagControl)) { Title = "№" + (list[0] as MDataSet.ReceiptMasterRow).Number.ToString() + " " + (list[0] as MDataSet.ReceiptMasterRow).OrganizationRow.ShortName.ToString(); usControl = new ReceiptRowOrganization((list[0] as MDataSet.ReceiptMasterRow), (list[0] as MDataSet.ReceiptMasterRow).ID); (usControl as ReceiptRowOrganization).Tag = Title; (usControl as ReceiptRowOrganization).Dock = DockStyle.Fill; } else { return null; } return usControl; } else return null; }