本文整理汇总了C#中System.Windows.Forms.PropertyGrid.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# PropertyGrid.BringToFront方法的具体用法?C# PropertyGrid.BringToFront怎么用?C# PropertyGrid.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.PropertyGrid
的用法示例。
在下文中一共展示了PropertyGrid.BringToFront方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ControlFilePropertyEditForm
public ControlFilePropertyEditForm(ControlFile Control)
{
this.Height = 500;
this.Width = 500;
if (null == Control) {
throw new Exception("Must specify a valid control file.");
}
this.Icon = LayoutDetails.Instance.MainFormIcon;
FormUtils.SizeFormsForAccessibility(this, LayoutDetails.Instance.MainFormFontSize);
Button OK = new Button();
OK.Text = Loc.Instance.GetString ("OK");
OK.Dock = DockStyle.Bottom;
OK.DialogResult = DialogResult.OK;
this.Controls.Add (OK);
PropertyGrid grid = new PropertyGrid();
grid.Dock = DockStyle.Fill;
this.Controls.Add (grid);
grid.BringToFront();
grid.SelectedObject = Control;
}
示例2: dashboardMarketEdit
public dashboardMarketEdit(DataTable _dataSource, Action<string, string> _UpdateSelectedMarket, LayoutPanelBase _CurrentLayout)
{
CurrentLayout = _CurrentLayout;
if (null == _dataSource)
throw new Exception ("invalid data source passed in");
UpdateSelectedMarket = _UpdateSelectedMarket;
MarketFilters = BuildMarketFilterBox ();
// NewMessage.Show ("boo");
ListOfMarkets = new ListBox ();
if (_dataSource.PrimaryKey.Length == 0) {
_dataSource.PrimaryKey = new DataColumn[] { _dataSource.Columns ["Guid"] };
}
ViewOfTheData = new DataView (_dataSource);
ViewOfTheData.Sort = "Caption ASC";
ViewOfTheData.ListChanged += new System.ComponentModel.ListChangedEventHandler (OnListChanged);
//ViewOfTheData.RowFilter = BuildRowFilter();
ListOfMarkets.DataSource = ViewOfTheData;//_dataSource;
ListOfMarkets.SelectedIndexChanged += HandleMarketListSelectedIndexChanged;
ListOfMarkets.DisplayMember = "Caption";
//ListOfMarkets.DoubleClick+= HandleListOfDoubleClick;
// ListOfMarkets.MouseDown+= HandleListOfMarketsMouseDown;
//ListOfMarkets.Sorted = true;
//ListOfMarkets.Width = 200;
//
// TAB CONTROL SIDE
//
TabControl Tabs = new TabControl ();
Tabs.Dock = DockStyle.Fill;
TabPage MarketEditing = new TabPage ();
MarketEditing.Text = Loc.Instance.GetString ("Market Details");
TabPage MarketSubmissions = new TabPage ();
MarketSubmissions.Text = Loc.Instance.GetString ("Market Submissions");
TabPage MarketNotes = new TabPage ();
MarketNotes.Text = Loc.Instance.GetString ("Market Notes");
Tabs.TabPages.Add (MarketEditing);
Tabs.TabPages.Add (MarketNotes);
Tabs.TabPages.Add (MarketSubmissions);
Tabs.SelectedIndexChanged += HandleMiniTabSelectedIndexChanged;
SubLabel = new Label ();
SubLabel.Text = Loc.Instance.GetString ("Submissions");
SubLabel.Dock = DockStyle.Top;
DestLabel = new Label ();
DestLabel.Dock = DockStyle.Bottom;
DestLabel.Text = Loc.Instance.GetString ("Destinations");
PreviousSubmissions = new ListBox ();
PreviousSubmissions.DoubleClick += HandlePreviousSubmissionsDoubleClick;
PreviousSubmissions.Dock = DockStyle.Fill;
//PreviousSubmissions.Height = 100;
Destinations = new ListBox ();
Destinations.Dock = DockStyle.Bottom;
Destinations.Height = 100;
tmpEditor = new PropertyGrid ();
tmpEditor.Dock = DockStyle.Fill;
tmpEditor.PropertyValueChanged += HandlePropertyValueChanged;
tmpEditor.Height = 300;
MarketEditing.Controls.Add (tmpEditor);
MarketSubmissions.Controls.Add (DestLabel);
MarketSubmissions.Controls.Add (PreviousSubmissions);
PreviousSubmissions.BringToFront ();
MarketSubmissions.Controls.Add (SubLabel);
MarketSubmissions.Controls.Add (Destinations);
//
// MAIN TABlE
//
// Panel EasyMarketEdit = new Panel();
// EasyMarketEdit.BackColor = Color.Green;
// EasyMarketEdit.Height = 200;
// EasyMarketEdit.Dock = DockStyle.Fill;
// EasyMarketEdit.Controls.Add (Tabs);
// tmpEditor.Enabled = false;
tmpEditor.BringToFront ();
AddMarket = new Button ();
AddMarket.Dock = DockStyle.Bottom;
//.........这里部分代码省略.........