// MainWindow.cs created with MonoDevelop // User: dmontalva at 13:37 09/02/2009 // // To change standard headers go to Edit->Preferences->Coding->Standard Headers // using System; using Gtk; //[System.ComponentModel.Category("lliurex_assistant")] //[System.ComponentModel.ToolboxItem(true)] public partial class MainWindow: Gtk.Window { public static MainWindow main_window; public MainWindow (): base (Gtk.WindowType.Toplevel) { Build (); main_window = this; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; } protected virtual void OnBTAnarAClicked (object sender, System.EventArgs e) { W_anar_a w_anar = new W_anar_a (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_anar.getFixed(); fixed2.Reparent(this); w_anar.Destroy(); } protected virtual void OnBTOfimaticaClicked (object sender, System.EventArgs e) { W_ofimatica w_ofimatica = new W_ofimatica (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_ofimatica.getFixed(); fixed2.Reparent(this); w_ofimatica.Destroy(); } protected virtual void OnBTMultimediaClicked (object sender, System.EventArgs e) { W_multimedia w_multimedia = new W_multimedia (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_multimedia.getFixed(); fixed2.Reparent(this); w_multimedia.Destroy(); } protected virtual void OnBTEducativesClicked (object sender, System.EventArgs e) { W_educatives w_educatives = new W_educatives (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_educatives.getFixed(); fixed2.Reparent(this); w_educatives.Destroy(); } protected virtual void OnBTInternetClicked (object sender, System.EventArgs e) { W_internet w_internet = new W_internet (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_internet.getFixed(); fixed2.Reparent(this); w_internet.Destroy(); } protected virtual void OnBTJugarClicked (object sender, System.EventArgs e) { W_jugar w_jugar = new W_jugar (); this.Remove(this.fixed_principal); Gtk.Widget fixed2 = w_jugar.getFixed(); fixed2.Reparent(this); w_jugar.Destroy(); } protected virtual void OnBTConfigurarClicked (object sender, System.EventArgs e) { //This method is diferent because of the text boxes and open a new window W_configurar w_configurar = new W_configurar(); this.fixed_principal.Sensitive=false; w_configurar.Show(); } protected virtual void OnBTSalirClicked (object sender, System.EventArgs e) { Application.Quit (); } public Gtk.Widget getFixed() { return this.fixed_principal; } }