本文整理汇总了C#中OpenTween.OpenTweenCustomControl.DetailsListView.BeginUpdate方法的典型用法代码示例。如果您正苦于以下问题:C# DetailsListView.BeginUpdate方法的具体用法?C# DetailsListView.BeginUpdate怎么用?C# DetailsListView.BeginUpdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenTween.OpenTweenCustomControl.DetailsListView
的用法示例。
在下文中一共展示了DetailsListView.BeginUpdate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddNewTab
public bool AddNewTab(string tabName, bool startup, MyCommon.TabUsageType tabType, ListElement listInfo = null)
{
//重複チェック
foreach (TabPage tb in ListTab.TabPages)
{
if (tb.Text == tabName) return false;
}
//新規タブ名チェック
if (tabName == Properties.Resources.AddNewTabText1) return false;
//タブタイプ重複チェック
if (!startup)
{
if (tabType == MyCommon.TabUsageType.DirectMessage ||
tabType == MyCommon.TabUsageType.Favorites ||
tabType == MyCommon.TabUsageType.Home ||
tabType == MyCommon.TabUsageType.Mentions ||
tabType == MyCommon.TabUsageType.Related)
{
if (_statuses.GetTabByType(tabType) != null) return false;
}
}
TabPage _tabPage = new TabPage();
DetailsListView _listCustom = new DetailsListView();
int cnt = ListTab.TabPages.Count;
///ToDo:Create and set controls follow tabtypes
_listCustom.BeginUpdate();
this.SplitContainer1.Panel1.SuspendLayout();
this.SplitContainer1.Panel2.SuspendLayout();
this.SplitContainer1.SuspendLayout();
this.ListTab.SuspendLayout();
this.SuspendLayout();
_tabPage.SuspendLayout();
/// UserTimeline関連
Label label = null;
if (tabType == MyCommon.TabUsageType.UserTimeline || tabType == MyCommon.TabUsageType.Lists)
{
label = new Label();
label.Dock = DockStyle.Top;
label.Name = "labelUser";
if (tabType == MyCommon.TabUsageType.Lists)
{
label.Text = listInfo.ToString();
}
else
{
label.Text = _statuses.Tabs[tabName].User + "'s Timeline";
}
label.TextAlign = ContentAlignment.MiddleLeft;
using (ComboBox tmpComboBox = new ComboBox())
{
label.Height = tmpComboBox.Height;
}
_tabPage.Controls.Add(label);
}
/// 検索関連の準備
Panel pnl = null;
if (tabType == MyCommon.TabUsageType.PublicSearch)
{
pnl = new Panel();
Label lbl = new Label();
ComboBox cmb = new ComboBox();
Button btn = new Button();
ComboBox cmbLang = new ComboBox();
pnl.SuspendLayout();
pnl.Controls.Add(cmb);
pnl.Controls.Add(cmbLang);
pnl.Controls.Add(btn);
pnl.Controls.Add(lbl);
pnl.Name = "panelSearch";
pnl.Dock = DockStyle.Top;
pnl.Height = cmb.Height;
pnl.Enter += SearchControls_Enter;
pnl.Leave += SearchControls_Leave;
cmb.Text = "";
cmb.Anchor = AnchorStyles.Left | AnchorStyles.Right;
cmb.Dock = DockStyle.Fill;
cmb.Name = "comboSearch";
cmb.DropDownStyle = ComboBoxStyle.DropDown;
cmb.ImeMode = ImeMode.NoControl;
cmb.TabStop = false;
cmb.AutoCompleteMode = AutoCompleteMode.None;
cmb.KeyDown += SearchComboBox_KeyDown;
if (_statuses.ContainsTab(tabName))
{
cmb.Items.Add(_statuses.Tabs[tabName].SearchWords);
cmb.Text = _statuses.Tabs[tabName].SearchWords;
//.........这里部分代码省略.........