public VentanaPrincipal() { InitializeComponent(); analyzer = new Analyzer(); analyzer.LoadData(); ucPodarD = new ucPodarDatos(); ucPodarD.principal = this; ucGenIF = new ucGenItemsetF(); ucGenIF.principal = this; ucGenR = new ucGenReglas(); ucGenR.principal = this; ucGenC = new ucGenClusters(); ucGenC.principal = this; ucCItemSets = new ucConsultaItemSets(); ucCItemSets.principal = this; ucCCluster = new ucConsultasClusters(); ucCCluster.principal = this; progressPanel = new ucProgressIndicator(); progressPanel.principal = this; home = new ucHome(); home.principal = this; ShowHome(); }
public void SwitchWindow(ContentInMainForm content) { this.LayoutRoot.Children.Clear(); if (content == ContentInMainForm.Home) { ucHome home = new ucHome(); this.LayoutRoot.Children.Add(home); } if (content == ContentInMainForm.Practice) { ucPractice practice = new ucPractice(); this.LayoutRoot.Children.Add(practice); } if (content == ContentInMainForm.Practice_FullScreen) { ucPractice_FullScreen practice_full = new ucPractice_FullScreen(); this.LayoutRoot.Children.Add(practice_full); } if (content == ContentInMainForm.Result) { ucBriefResults result_brief = new ucBriefResults(); this.LayoutRoot.Children.Add(result_brief); } }