예제 #1
0
 private Widget CreateWidgets()
 {
     iFolderViewGroup.CheckThread();
        contentVBox = new VBox(false, 0);
        contentVBox.BorderWidth = 12;
        nameLabel = new Label(
     string.Format(
      "<span size=\"xx-large\">{0}</span>",
      name));
        contentVBox.PackStart(nameLabel, false, false, 0);
        nameLabel.UseMarkup = true;
        nameLabel.UseUnderline = false;
        nameLabel.ModifyFg(StateType.Normal, this.Style.Base(StateType.Selected));
        nameLabel.Xalign = 0;
        table = new Table(1, 1, true);
        contentVBox.PackStart(table, true, true, 0);
        table.ColumnSpacing = 12;
        table.RowSpacing = 12;
        table.BorderWidth = 12;
        table.ModifyBase(StateType.Normal, this.Style.Base(StateType.Prelight));
        model.RowChanged +=
     new RowChangedHandler(OnRowChanged);
        model.RowDeleted +=
     new RowDeletedHandler(OnRowDeleted);
        model.RowInserted +=
     new RowInsertedHandler(OnRowInserted);
        return contentVBox;
 }
예제 #2
0
 private Widget CreateMainPage()
 {
     mainPage = new VBox(false, 0);
        table = new Table(1, 1, true);
        mainPage.PackStart(table, true, true, 0);
        table.ColumnSpacing = 12;
        table.RowSpacing = 12;
        table.BorderWidth = 12;
        table.ModifyBase(StateType.Normal, this.Style.Base(StateType.Prelight));
        return mainPage;
 }