public showWidgetsPowerful ( ArrayList widgetArray ) : void | ||
widgetArray | ArrayList | |
리턴 | void |
//for an array of widgets static public GenericWindow Show(string title, bool showNow, string textHeader, ArrayList array) { if (GenericWindowBox == null) { GenericWindowBox = new GenericWindow(title, textHeader); } else { GenericWindowBox.setTitle(title); GenericWindowBox.label_header.Text = textHeader; } GenericWindowBox.Type = Types.UNDEFINED; GenericWindowBox.hideWidgets(); foreach (ArrayList widgetArray in array) { GenericWindowBox.showWidgetsPowerful(widgetArray); } Pixbuf pixbuf = new Pixbuf(null, Util.GetImagePath(false) + "stock_delete.png"); GenericWindowBox.image_delete.Pixbuf = pixbuf; if (showNow) { GenericWindowBox.generic_window.Show(); } return(GenericWindowBox); }
//for some widgets static public GenericWindow Show(bool showNow, string textHeader, ArrayList array) { if (GenericWindowBox == null) { GenericWindowBox = new GenericWindow(); } GenericWindowBox.hideWidgets(); foreach (ArrayList widgetArray in array) { GenericWindowBox.showWidgetsPowerful(widgetArray); } GenericWindowBox.generic_window.Resizable = false; GenericWindowBox.label_header.Text = textHeader; Pixbuf pixbuf = new Pixbuf(null, Util.GetImagePath(false) + "stock_delete.png"); GenericWindowBox.image_delete.Pixbuf = pixbuf; GenericWindowBox.label_header.Text = textHeader; GenericWindowBox.Type = Types.UNDEFINED; if (showNow) { GenericWindowBox.generic_window.Show(); } GenericWindowBox.HideOnAccept = true; GenericWindowBox.DestroyOnAccept = false; return(GenericWindowBox); }