public static Show ( bool showNow, string textHeader, ArrayList array ) : GenericWindow, | ||
showNow | bool | |
textHeader | string | |
array | ArrayList | |
return | GenericWindow, |
public static GenericWindow Show(bool showNow, string textHeader, ArrayList array)
{
if (GenericWindowBox == null) {
GenericWindowBox = new GenericWindow(textHeader);
}
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;
GenericWindowBox.Type = Types.UNDEFINED;
GenericWindowBox.label_header.Text = textHeader;
if(showNow)
GenericWindowBox.generic_window.Show ();
return GenericWindowBox;
}
GenericWindow::Show ( string textHeader, Constants, stuff ) : GenericWindow, |
protected override void createGenericWindow() { genericWinESR = GenericWindow.Show(false, //don't show now Catalog.GetString("Select persons to compare"), bigArray); genericWinESR.SetTreeview(columnsString, true, data, nonSensitiveRows, Constants.ContextMenu.NONE, false); //select this person row genericWinESR.SelectRowWithID(0, currentPerson.UniqueID); genericWinESR.ResetComboCheckBoxesOptions(); genericWinESR.CreateComboCheckBoxes(); genericWinESR.MarkActiveCurves(checkboxes); genericWinESR.ShowButtonCancel(false); genericWinESR.SetButtonAcceptSensitive(true); //to have encoderCompareInter without opening the select window updateEncoderCompareInterAndReps(); //used when we don't need to read data, //and we want to ensure next window will be created at needed size //genericWinESR.DestroyOnAccept=true; //here is comented because we are going to read the checkboxes genericWinESR.Type = GenericWindow.Types.ENCODER_SEL_REPS_GROUP_CURRENT_SESS; }