Ejemplo n.º 1
0
        //private static Form CreateBase()
        //{
        //    Form form = new MainForm(WindowsApp.CurrentWindowsApp.Icon);
        //    // il faut faire l'appel à AddWindow() ici et non pas dans le constructeur de la Form, sinon il y a un icone qui apparait dans la liste des taches (alt-tab)
        //    WindowsApp.CurrentWindowsApp.AddWindow(form);
        //    form.ShowInTaskbar = false;
        //    new PersistentFormParameters(gAppParameters, form, "BaseForm");
        //    form.Text = "BaseForm";
        //    return form;
        //}
        #endregion

        #region CreateBase
        private static Form CreateBase()
        {
            XDocument xml = XDocument.Load(cu.GetPathFichier(XmlConfig.CurrentConfig.Get("InputBddXml")));

            //gCon = Ado.OpenCon(XmlConfig.CurrentConfig.Get("DBConnection"), true);
            gCon      = Ado.CreateCon(XmlConfig.CurrentConfig.Get("DBConnection"), true);
            gDataForm = new fBdd1(gCon, xml.zXPathElement("data_enter/data_enter_tree"), xml.zXPathElement("data_enter/data_enter_def"), null, "Base", "Base data", true);
            WindowsApp.CurrentWindowsApp.AddWindow(gDataForm);
            gDataForm.ShowInTaskbar = false;
            new PersistentFormParameters(gAppParameters, gDataForm, "BaseForm");
            //form.Text = "BaseForm";
            CreateMenuDataForm(gDataForm);
            return(gDataForm);
        }
Ejemplo n.º 2
0
        //private static Form CreateBase()
        //{
        //    Form form = new MainForm(WindowsApp.CurrentWindowsApp.Icon);
        //    // il faut faire l'appel à AddWindow() ici et non pas dans le constructeur de la Form, sinon il y a un icone qui apparait dans la liste des taches (alt-tab)
        //    WindowsApp.CurrentWindowsApp.AddWindow(form);
        //    form.ShowInTaskbar = false;
        //    new PersistentFormParameters(gAppParameters, form, "BaseForm");
        //    form.Text = "BaseForm";
        //    return form;
        //}
        #endregion

        #region CreateBase
        private static Form CreateBase()
        {
            XDocument xml = XDocument.Load(cu.GetPathFichier(XmlConfig.CurrentConfig.Get("InputBddXml")));
            //gCon = Ado.OpenCon(XmlConfig.CurrentConfig.Get("DBConnection"), true);
            gCon = Ado.CreateCon(XmlConfig.CurrentConfig.Get("DBConnection"), true);
            gDataForm = new fBdd1(gCon, xml.zXPathElement("data_enter/data_enter_tree"), xml.zXPathElement("data_enter/data_enter_def"), null, "Base", "Base data", true);
            WindowsApp.CurrentWindowsApp.AddWindow(gDataForm);
            gDataForm.ShowInTaskbar = false;
            new PersistentFormParameters(gAppParameters, gDataForm, "BaseForm");
            //form.Text = "BaseForm";
            CreateMenuDataForm(gDataForm);
            return gDataForm;
        }