Esempio n. 1
0
        private void ibuttonTemplate_Click(object sender, EventArgs e)
        {
            this.Hide();
            var frm = new formWordTemplateEdit(newData);

            frm.ShowDialog();

            this.Show();
        }
Esempio n. 2
0
        private void iconDefineTemplate_Click(object sender, EventArgs e)
        {
            this.Hide();
            var project = Program.GData.dataProject.getProject(originalData.ProjectID);
            var frm     = new formWordTemplateEdit(project);

            //var projvar = originalData;
            //modelOrganization applicant = Program.GData.dataOrganization.getOrganizations.First(c => c.ID == projvar.ApplicantOrganization);
            //var partners = Program.GData.dataProject.getProjectVariationOrganizations.Where(c => c.ProjectVariation == projvar.ID);
            //modelOrganization partner = Program.GData.dataOrganization.getOrganizations.First(c => c.ID == partners.ElementAt(0).Organization);
            //var agency = Program.GData.dataLOV.getNationalAgencies.First(c => c.ID == projvar.NationalAgency);

            //var frm = new formWordTemplateEdit(newData, applicant, partner, agency);

            frm.ShowDialog();

            this.Show();
        }