Managing form UI
예제 #1
0
        public void CanGenerateFormFromXsdFile()
        {
            //asign
            var formManager = new FormManager(new Panel());

            //action
            formManager.GenerateFormFromXsdFile("DocumentumArchivageSettings.xsd");

            //assert
        }
예제 #2
0
        public void CanUseIsFormValid()
        {
            //asign
            var formManager = new FormManager(new Panel());

            //action
            formManager.IsFormValid();

            //assert
        }
예제 #3
0
        public void CanUseSaveFormToXmlFile()
        {
            //asign
            var formManager = new FormManager(new Panel());
            var stream = new MemoryStream();

            //action
            formManager.GenerateFormFromXsdFile("DocumentumArchivageSettings.xsd");
            formManager.UpdateFormFromXml("DocumentumArchivageSettings.xml");
            formManager.SaveFormToXmlFile(stream);

            //assert
        }
예제 #4
0
 private void MainFormLoad(object sender, EventArgs e)
 {
     _formManager = new FormManager(mainPanel);
 }