当前位置: 首页>>代码示例>>C#>>正文


C# Table.ShowAll方法代码示例

本文整理汇总了C#中Table.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# Table.ShowAll方法的具体用法?C# Table.ShowAll怎么用?C# Table.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Table的用法示例。


在下文中一共展示了Table.ShowAll方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MainWindow

    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();

        Table table = new Table(2, 2, true);

        Add(table); 
        ShowAll();

        buttonView = new Button("View");
        // when this button is clicked, it'll run hello()
        buttonView.Clicked += (s, a) =>
        {
            View();
        };


        textviewView = new TextView();

        table.Attach(buttonView, 0, 2, 0, 1);
        table.Attach(textviewView, 0, 2, 1, 2);
        table.ShowAll();

        View();
    }
开发者ID:EifelMono,项目名称:NetAtmo,代码行数:25,代码来源:MainWindow.cs

示例2: PlayerPage

            public PlayerPage(ICSGameObserverWidget widget,
					   MoveDetails details)
                : base(widget,
								      details)
            {
                Table table = new Table (5, 2, true);

                  drawButton =
                    new Button (Catalog.
                            GetString ("Draw"));
                  resignButton =
                    new Button (Catalog.
                            GetString ("Resign"));
                  abortButton =
                    new Button (Catalog.
                            GetString ("Abort"));
                  adjournButton =
                    new Button (Catalog.
                            GetString ("Adjourn"));
                  takebackButton =
                    new Button (Catalog.
                            GetString ("Takeback"));

                  drawButton.Clicked += OnClicked;
                  resignButton.Clicked += OnClicked;
                  abortButton.Clicked += OnClicked;
                  adjournButton.Clicked += OnClicked;
                  takebackButton.Clicked += OnClicked;

                uint row = 0, col = 0;
                  table.Attach (drawButton, col, col + 1, row,
                        row + 1);
                  col++;
                  table.Attach (resignButton, col, col + 1,
                        row, row + 1);
                  col = 0;
                  row++;
                  table.Attach (abortButton, col, col + 1,
                        row, row + 1);
                  col++;
                  table.Attach (adjournButton, col, col + 1,
                        row, row + 1);
                  col = 0;
                  row++;
                  table.Attach (takebackButton, col, col + 1,
                        row, row + 1);
                  table.ShowAll ();
                  movesBox.PackEnd (table, false, true, 2);
            }
开发者ID:BackupTheBerlios,项目名称:csboard-svn,代码行数:49,代码来源:PlayerPage.cs

示例3: GetTagDetailsWidget

            private Widget GetTagDetailsWidget()
            {
                string eco;
                GameViewer.GetOpeningName (game.
                               GetTagValue ("ECO",
                                    ""),
                               out eco);
                string[,] values = new string[,]
                {
                    {
                    Catalog.GetString ("Result"),
                            game.Result}
                    ,
                    {
                    Catalog.GetString ("Date"),
                            game.Date}
                    ,
                    {
                    Catalog.GetString ("Event"),
                            game.Event}
                    ,
                    {
                    Catalog.GetString ("Site"),
                            game.Site}
                    ,
                    {
                    Catalog.GetString ("ECO"), eco}
                };
                uint count = (uint) values.Length / 2;
                Table table = new Table (count, 2, false);
                table.ColumnSpacing = 10;
                for (uint i = 0; i < count; i++)
                  {
                      Label name = new Label ();
                      name.Xalign = 0;
                      name.Markup =
                          String.Format ("<b>{0}</b>",
                                 values[i,
                                    0]);
                      Label value = new Label ();
                      value.Xalign = 0;
                      value.Text = values[i, 1];
                      table.Attach (name, 0, 1, i, i + 1);
                      table.Attach (value, 1, 2, i,
                            i + 1);
                  }

                table.ShowAll ();
                return table;
            }
开发者ID:BackupTheBerlios,项目名称:csboard-svn,代码行数:50,代码来源:ChessGameView.cs

示例4: AddToDbDialog

            public AddToDbDialog(Window parent)
                : base(Catalog.
								   GetString
								   ("Add games to database"),
								   parent,
								   DialogFlags.
								   Modal,
								   Stock.
								   Cancel,
								   ResponseType.
								   Cancel,
								   Stock.Ok,
								   ResponseType.
								   Ok)
            {
                tagsEntry = new Entry ();

                Label label;
                uint row = 0;
                Table table = new Table (3, 2, false);
                table.RowSpacing = table.ColumnSpacing = 4;

                label = new Label ();
                label.Markup =
                    Catalog.GetString ("<b>Tags</b>");
                label.Xalign = 0;
                table.Attach (label, 0, 1, row, row + 1);
                table.Attach (tagsEntry, 1, 2, row, row + 1);

                row++;
                label = new Label ();
                label.Markup =
                    Catalog.
                    GetString
                    ("<i><small>Comma separated list of tags</small></i>");
                label.Xalign = 0;
                table.Attach (label, 0, 2, row, row + 1);

                row++;
                table.Attach (GetCollectionDetailsFrame (), 0,
                          2, row, row + 1);
                table.ShowAll ();
                VBox.PackStart (table, true, true, 2);
            }
开发者ID:BackupTheBerlios,项目名称:csboard-svn,代码行数:44,代码来源:GameDbPlugin.cs

示例5: HandlePopupCallback

	private static bool HandlePopupCallback ()
	{
		if (! popped_up) {
			if (popup_window == null) {
				Button button;
				Table table;

				popup_window = new Gtk.Window (Gtk.WindowType.Popup);
				popup_window.SetPosition (WindowPosition.Mouse);

				table = new Table (3, 3, false);

				for (int i = 0; i < 3; i++)
					for (int j = 0; j < 3; j++) {
						string label = String.Format ("{0},{1}", i, j);
						button = Button.NewWithLabel (label);

						table.Attach (button, (uint) i, (uint) i + 1, (uint) j, (uint) j + 1,
							      AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Expand | AttachOptions.Fill,
							      0, 0);

						Gtk.Drag.DestSet (button, DestDefaults.All,
								  target_table, DragAction.Copy | DragAction.Move);

						button.DragMotion += new DragMotionHandler (HandlePopupMotion);
						button.DragLeave += new DragLeaveHandler (HandlePopupLeave);
					}

				table.ShowAll ();
				popup_window.Add (table);
			}

			popup_window.Show ();
			popped_up = true;
		}

		popdown_timer = GLib.Timeout.Add (500, new TimeoutHandler (HandlePopdownCallback));
		popup_timer = 0;

		return false;
	}
开发者ID:ystk,项目名称:debian-gtk-sharp2,代码行数:41,代码来源:TestDnd.cs

示例6: SetupWidgets

	private void SetupWidgets ()
	{
		Table table = new Table (5, 2, false);

		table.Attach (CreateRightAlignedLabel (Catalog.GetString ("Name:")), 0, 1, 0, 1,
			      AttachOptions.Fill, AttachOptions.Fill, 3, 3);
		table.Attach (CreateRightAlignedLabel (Catalog.GetString ("Version:")), 0, 1, 1, 2,
			      AttachOptions.Fill, AttachOptions.Fill, 3, 3);
		table.Attach (CreateRightAlignedLabel (Catalog.GetString ("Date:")), 0, 1, 2, 3,
			      AttachOptions.Fill, AttachOptions.Fill, 3, 3);
		table.Attach (CreateRightAlignedLabel (Catalog.GetString ("Size:")), 0, 1, 3, 4,
			      AttachOptions.Fill, AttachOptions.Fill, 3, 3);
		table.Attach (CreateRightAlignedLabel (Catalog.GetString ("Exposure:")), 0, 1, 4, 5,
			      AttachOptions.Fill, AttachOptions.Fill, 3, 3);

		name_label = new Label ();
		name_label.Ellipsize = Pango.EllipsizeMode.Middle;
		name_label.Justify = Gtk.Justification.Left;
		name_label.Selectable = true;
		name_label.Xalign = 0;
		table.Attach (name_label, 1, 2, 0, 1,
			      AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill,
			      3, 0);
		
		date_label = AttachLabel (table, 2, name_label);
		size_label = AttachLabel (table, 3, name_label);
		exposure_info_label = AttachLabel (table, 4, name_label);

		version_option_menu = new OptionMenu ();
		table.Attach (version_option_menu, 1, 2, 1, 2, AttachOptions.Fill, AttachOptions.Fill, 3, 3);

		date_label.Text = Environment.NewLine;
		exposure_info_label.Text = Environment.NewLine;

		table.ShowAll ();

		Add (table);
	}
开发者ID:AminBonyadUni,项目名称:facedetect-f-spot,代码行数:38,代码来源:InfoBox.cs


注:本文中的Table.ShowAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。