本文整理汇总了C#中OpenTween.OpenTweenCustomControl.DetailsListView.EndUpdate方法的典型用法代码示例。如果您正苦于以下问题:C# DetailsListView.EndUpdate方法的具体用法?C# DetailsListView.EndUpdate怎么用?C# DetailsListView.EndUpdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenTween.OpenTweenCustomControl.DetailsListView
的用法示例。
在下文中一共展示了DetailsListView.EndUpdate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddNewTab
//.........这里部分代码省略.........
cmbLang.Items.Add("pl");
cmbLang.Items.Add("pt");
cmbLang.Items.Add("ru");
cmbLang.Items.Add("es");
cmbLang.Items.Add("sv");
cmbLang.Items.Add("th");
if (_statuses.ContainsTab(tabName)) cmbLang.Text = _statuses.Tabs[tabName].SearchLang;
lbl.Text = "Search(C-S-f)";
lbl.Name = "label1";
lbl.Dock = DockStyle.Left;
lbl.Width = 90;
lbl.Height = cmb.Height;
lbl.TextAlign = ContentAlignment.MiddleLeft;
btn.Text = "Search";
btn.Name = "buttonSearch";
btn.UseVisualStyleBackColor = true;
btn.Dock = DockStyle.Right;
btn.TabStop = false;
btn.Click += SearchButton_Click;
}
this.ListTab.Controls.Add(_tabPage);
_tabPage.Controls.Add(_listCustom);
if (tabType == MyCommon.TabUsageType.PublicSearch) _tabPage.Controls.Add(pnl);
if (tabType == MyCommon.TabUsageType.UserTimeline || tabType == MyCommon.TabUsageType.Lists) _tabPage.Controls.Add(label);
_tabPage.Location = new Point(4, 4);
_tabPage.Name = "CTab" + cnt.ToString();
_tabPage.Size = new Size(380, 260);
_tabPage.TabIndex = 2 + cnt;
_tabPage.Text = tabName;
_tabPage.UseVisualStyleBackColor = true;
_listCustom.AllowColumnReorder = true;
_listCustom.ContextMenuStrip = this.ContextMenuOperate;
_listCustom.Dock = DockStyle.Fill;
_listCustom.FullRowSelect = true;
_listCustom.HideSelection = false;
_listCustom.Location = new Point(0, 0);
_listCustom.Margin = new Padding(0);
_listCustom.Name = "CList" + Environment.TickCount.ToString();
_listCustom.ShowItemToolTips = true;
_listCustom.Size = new Size(380, 260);
_listCustom.UseCompatibleStateImageBehavior = false;
_listCustom.View = View.Details;
_listCustom.OwnerDraw = true;
_listCustom.VirtualMode = true;
_listCustom.Font = _fntReaded;
_listCustom.BackColor = _clListBackcolor;
_listCustom.GridLines = SettingDialog.ShowGrid;
_listCustom.AllowDrop = true;
_listCustom.SmallImageList = new ImageList();
if (_iconSz > 0)
{
// ディスプレイの DPI 設定を考慮したサイズを設定する
_listCustom.SmallImageList.ImageSize = new Size(
(int)Math.Ceiling(this._iconSz * this.currentScaleFactor.Width),
(int)Math.Ceiling(this._iconSz * this.currentScaleFactor.Height));
}
else
{
_listCustom.SmallImageList.ImageSize = new Size(1, 1);
}
InitColumns(_listCustom, startup);
_listCustom.SelectedIndexChanged += MyList_SelectedIndexChanged;
_listCustom.MouseDoubleClick += MyList_MouseDoubleClick;
_listCustom.ColumnClick += MyList_ColumnClick;
_listCustom.DrawColumnHeader += MyList_DrawColumnHeader;
_listCustom.DragDrop += TweenMain_DragDrop;
_listCustom.DragOver += TweenMain_DragOver;
_listCustom.DrawItem += MyList_DrawItem;
_listCustom.MouseClick += MyList_MouseClick;
_listCustom.ColumnReordered += MyList_ColumnReordered;
_listCustom.ColumnWidthChanged += MyList_ColumnWidthChanged;
_listCustom.CacheVirtualItems += MyList_CacheVirtualItems;
_listCustom.RetrieveVirtualItem += MyList_RetrieveVirtualItem;
_listCustom.DrawSubItem += MyList_DrawSubItem;
_listCustom.HScrolled += MyList_HScrolled;
if (tabType == MyCommon.TabUsageType.PublicSearch) pnl.ResumeLayout(false);
_tabPage.ResumeLayout(false);
this.SplitContainer1.Panel1.ResumeLayout(false);
this.SplitContainer1.Panel2.ResumeLayout(false);
this.SplitContainer1.ResumeLayout(false);
this.ListTab.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
_listCustom.EndUpdate();
_tabPage.Tag = _listCustom;
return true;
}