//if it's created static public ReportWindow Show(Gtk.Window parent, Report report) { if (ReportWindowBox == null) { ReportWindowBox = new ReportWindow(parent, report); //checkboxes ReportWindowBox.loadCheckBoxes(); ReportWindowBox.FillTreeView(); ReportWindowBox.report_window.Show(); } else { //update all widget only if it's hidden if (!ReportWindowBox.report_window.Visible) { //checkboxes ReportWindowBox.loadCheckBoxes(); ReportWindowBox.FillTreeView(); ReportWindowBox.report_window.Show(); } } return(ReportWindowBox); }
//if it's created public static ReportWindow Show(Gtk.Window parent, Report report) { if (ReportWindowBox == null) { ReportWindowBox = new ReportWindow (parent, report); //checkboxes ReportWindowBox.loadCheckBoxes(); ReportWindowBox.FillTreeView(); ReportWindowBox.report_window.Show (); } else { //update all widget only if it's hidden if(! ReportWindowBox.report_window.Visible) { //checkboxes ReportWindowBox.loadCheckBoxes(); ReportWindowBox.FillTreeView(); ReportWindowBox.report_window.Show (); } } return ReportWindowBox; }