public DictSaisieTableau(IDictProcess rootPage, Dictionary <string, IDictProcess> pages, System.Windows.Forms.WebBrowser web, o2Mate.Dictionnaire inputDict, o2Mate.Dictionnaire outputDict, string fileName, string key) : base(rootPage, pages, web, inputDict, outputDict, fileName) { this.keyTab = key; this.keys = new Dictionary <string, string>(); base.Next += new EventHandler(DictSaisieTableau_Next); base.Previous += new EventHandler(DictSaisieTableau_Previous); }
public DictWizard(IDictProcess rootPage, Dictionary <string, IDictProcess> pages, System.Windows.Forms.WebBrowser web, o2Mate.Dictionnaire inputDict, o2Mate.Dictionnaire outputDict, string fileName) { this.rootPage = rootPage; this.pages = pages; this.web = web; this.inputDict = inputDict; this.outputDict = outputDict; this.fileNameSrc = fileName; this.fileNameFinal = Path.Combine(Documents.TempDirectory, Path.GetFileNameWithoutExtension(this.fileNameFinal) + ".htm"); }
public DictSaisieChamps(IDictProcess previousPage, IDictProcess rootPage, Dictionary <string, IDictProcess> pages, System.Windows.Forms.WebBrowser web, o2Mate.Dictionnaire inputDict, o2Mate.Dictionnaire outputDict, string fileName, string key, int index) { this.previousPage = previousPage; this.rootPage = rootPage; this.pages = pages; this.web = web; this.inputDict = inputDict; this.outputDict = outputDict; this.fileNameSrc = fileName; this.keyTab = key; this.index = index; this.keys = new Dictionary <string, string>(); this.fileNameFinal = Path.Combine(Documents.TempDirectory, Path.GetFileNameWithoutExtension(new FileInfo(fileName).Name) + ".htm"); }
protected void Validate() { IDictProcess currentPage = rootPage; foreach (string tabKey in this.inputDict.ArrayKeys) { if (this.outputDict.TestDependsOn(this.inputDict.Legendes.GetLegendeByName(tabKey))) { IDictProcess temp = currentPage.NextPage; currentPage.NextPage = this.pages[tabKey]; currentPage.NextPage.PreviousPage = currentPage; currentPage.NextPage.NextPage = temp; if (temp != null) { temp.PreviousPage = temp; } } } }
public void QuickLoad() { int countStrings = 0; int countTabs = 0; foreach (string key in this.inputDict.StringKeys) { ++countStrings; } foreach (string key in this.inputDict.ArrayKeys) { ++countTabs; } if (countTabs > 0) { if (countStrings > 0) { DictSaisieLibre dsl = new DictSaisieLibre(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc); dsl.PreviousPage = this; IDictProcess nextPage = dsl; foreach (string key in this.inputDict.ArrayKeys) { bool makeTab = true; o2Mate.ILegende legende = this.inputDict.Legendes.GetLegendeByName(key); // si le tableau n'est pas libre alors on ne l'affiche pas if (legende != null && !legende.Free) { makeTab = false; } if (makeTab) { DictSaisieTableau tab = new DictSaisieTableau(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc, key); tab.Load(); nextPage.NextPage = tab; tab.PreviousPage = nextPage; nextPage = tab; } } dsl.Load(); dsl.Navigate(); } else { IDictProcess nextPage = this; DictSaisieTableau tab = null; foreach (string key in this.inputDict.ArrayKeys) { bool makeTab = true; o2Mate.ILegende legende = this.inputDict.Legendes.GetLegendeByName(key); // si le tableau n'est pas libre alors on ne l'affiche pas if (legende != null && !legende.Free) { makeTab = false; } if (makeTab) { tab = new DictSaisieTableau(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc, key); tab.Load(); nextPage.NextPage = tab; tab.PreviousPage = nextPage; nextPage = tab; } } if (tab != null) { tab.Navigate(); } } } else if (countStrings > 0) { DictSaisieLibre dsl = new DictSaisieLibre(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc); dsl.Load(); dsl.PreviousPage = this; dsl.Navigate(); } }
void DictBienvenue_Create(object sender, System.Windows.Forms.HtmlElementEventArgs e) { int countStrings = 0; int countTabs = 0; foreach (string key in this.inputDict.StringKeys) { ++countStrings; } foreach (string key in this.inputDict.ArrayKeys) { ++countTabs; } if (countTabs > 0) { if (countStrings > 0) { DictSaisieLibre dsl = new DictSaisieLibre(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc); dsl.PreviousPage = this; IDictProcess nextPage = dsl; foreach (string key in this.inputDict.ArrayKeys) { bool makeTab = true; o2Mate.ILegende legende = this.inputDict.Legendes.GetLegendeByName(key); // si le tableau n'est pas libre alors on ne l'affiche pas if (legende != null && !legende.Free) { makeTab = false; } if (makeTab) { DictSaisieTableau tab = new DictSaisieTableau(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc, key); tab.Load(); nextPage.NextPage = tab; tab.PreviousPage = nextPage; nextPage = tab; } } nextPage.NextPage = new DictExecute(this.web, this.inputDict, this.outputDict, this.fileNameSrc); nextPage.NextPage.Load(); dsl.Load(); dsl.Navigate(); } else { IDictProcess nextPage = this; foreach (string key in this.inputDict.ArrayKeys) { bool makeTab = true; o2Mate.ILegende legende = this.inputDict.Legendes.GetLegendeByName(key); // si le tableau n'est pas libre alors on ne l'affiche pas if (legende != null && !legende.Free) { makeTab = false; } if (makeTab) { DictSaisieTableau tab = new DictSaisieTableau(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc, key); tab.Load(); nextPage.NextPage = tab; tab.PreviousPage = nextPage; nextPage = tab; } } nextPage.NextPage = new DictExecute(this.web, this.inputDict, this.outputDict, this.fileNameSrc); nextPage.NextPage.Load(); this.NextPage.Navigate(); } } else if (countStrings > 0) { DictSaisieLibre dsl = new DictSaisieLibre(null, null, this.web, this.inputDict, this.outputDict, this.fileNameSrc); dsl.PreviousPage = this; dsl.NextPage = new DictExecute(this.web, this.inputDict, this.outputDict, this.fileNameSrc); dsl.NextPage.Load(); dsl.Load(); dsl.Navigate(); } }