public formWordTemplateEdit()
        {
            InitializeComponent();
            actualProject = null;

            MMvars  = new modelMailMargeVariables();
            varItem = MMvars.usedVariables;

            panelInsert.Visible = false;
            panelUpdate.Visible = true;
            ibuttonPrev.Visible = false;
            ibuttonNext.Visible = false;
            //DisableButtons();
            FillList();
        }
        public formWordTemplateEdit(modelProject project)
        {
            InitializeComponent();
            actualProject = project;
            MMvars        = new modelMailMargeVariables();
            varItem       = MMvars.usedVariables;
            MMvars.prepareMailMergeData(project);

            panelInsert.Visible = true;
            panelUpdate.Visible = false;
            ibuttonPrev.Visible = true;
            ibuttonNext.Visible = true;
            //DisableButtons();
            //mandateItem = Program.GData.getMandateDataItem(_projvar, _applicant, _partner, _agency);
            FillList();
        }