本文整理汇总了C#中SortableBindingList类的典型用法代码示例。如果您正苦于以下问题:C# SortableBindingList类的具体用法?C# SortableBindingList怎么用?C# SortableBindingList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SortableBindingList类属于命名空间,在下文中一共展示了SortableBindingList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StockReaderForm
public StockReaderForm()
{
InitializeComponent();
stockDataGridView.AutoGenerateColumns = false;
LoadConfigInfo();
BindColumns();
notifyIcon1.Visible = false;
dataList = new SortableBindingList<TickerData>();
portfolioPath = "";
if (portfolio != null)
ProcessTickers();
sortColumn = stockDataGridView.Columns[0];
sortOrder = stockDataGridView.SortOrder;
//int interval = info.TimerInterval;
if (config.ConfigData.Timer.interval <= 0)
{
tickerTimer.Interval = 60000; // default to 1 minute
}
else
{
tickerTimer.Interval = config.ConfigData.Timer.interval * 60000;
}
tickerTimer.Enabled = true;
}
示例2: MainForm
public MainForm()
{
InitializeComponent();
// TODO: Add constructor code after the InitializeComponent() call.
dataManager = DataManager.Singleton;
dataManager.Initialize();
headers = new ColumnHeaders();
headers.Read();
fixtures = new FieldFixtures();
fixtures.Read();
columnSelectionForm = new ColumnSelectionForm(headers, dataManager);
personelGridView.AutoGenerateColumns = false;
foreach(string colName in headers.headers.Keys)
{
int colidx = personelGridView.Columns.Add(colName, headers.Get(colName));
personelGridView.Columns[colidx].DataPropertyName = colName;
personelGridView.Columns[colidx].SortMode = DataGridViewColumnSortMode.Automatic;
}
SyncVisibleColumns();
List<SoldierRecord> soldierList = dataManager.ReadSoldiers();
soldiersBindingList = new SortableBindingList<SoldierRecord>(soldierList);
bindingSource1.DataSource = soldiersBindingList;
}
示例3: CodeTB_TextChanged
private void CodeTB_TextChanged(object sender, EventArgs e)
{
//фільтруємо по коду
if (CodeTB.Text.Length > 0)
{
List<WareView> viewList = new List<WareView>();
if (CodeTB.Text.Length > 0)
viewList = view.Where(a => a.WareCodesStringForSearch.StartsWith("<" + CodeTB.Text))
.ToList();
else
viewList = view.ToList();
SortableBindingList<WareView> filteredView = new SortableBindingList<WareView>(viewList);
WareLUE.Properties.DataSource = filteredView;
if (filteredView.Count > 0)
WareLUE.ItemIndex = 0;
}
else
{
List<WareView> viewList = new List<WareView>();
viewList = view.ToList();
SortableBindingList<WareView> filteredView = new SortableBindingList<WareView>(viewList);
WareLUE.Properties.DataSource = filteredView;
if (filteredView.Count > 0)
WareLUE.ItemIndex = 0;
}
}
示例4: GridBaseForm
public GridBaseForm(SortableBindingList<object> data, Type dataType)
{
InitializeComponent();
DataType = dataType;
Data = data;
}
示例5: pbxExport_Click
private void pbxExport_Click(object sender, EventArgs e)
{
var obectList = gridData.DataSource as List<DailyPayment>;
var lst = new SortableBindingList<object>(obectList.Cast<object>().ToList());
TaxOrderGenerator.ExportToExcel(lst, typeof(DailyPayment));
}
示例6: Form1_Load
private void Form1_Load(object sender, EventArgs e)
{
#region Initialize Servers
_servers = new SortableBindingList<Dota2Server>();
_servers.Add(new Dota2Server("syd.valve.net", "Australia (Sydney)"));
_servers.Add(new Dota2Server("200.73.67.1", "Chile (Santiago)"));
_servers.Add(new Dota2Server("dxb.valve.net", "Dubai (UAE)"));
_servers.Add(new Dota2Server("vie.valve.net", "Europe East 1 (Vienna, Austria)"));
_servers.Add(new Dota2Server("185.25.182.1", "Europe East 2 (Vienna, Austria)"));
_servers.Add(new Dota2Server("lux.valve.net", "Europe West 1 (Luxembourg)"));
_servers.Add(new Dota2Server("146.66.158.1", "Europe West 2 (Luxembourg)"));
_servers.Add(new Dota2Server("116.202.224.146", "India (Kolkata)"));
_servers.Add(new Dota2Server("191.98.144.1", "Peru (Lima)"));
_servers.Add(new Dota2Server("sto.valve.net", "Russia 1 (Stockholm, Sweden"));
_servers.Add(new Dota2Server("185.25.180.1", "Russia 2 (Stockholm, Sweden)"));
_servers.Add(new Dota2Server("sgp-1.valve.net", "SE Asia 1 (Singapore)"));
_servers.Add(new Dota2Server("sgp-2.valve.net", "SE Asia 2 (Singapore)"));
_servers.Add(new Dota2Server("cpt-1.valve.net", "South Africa 1 (Cape Town)"));
_servers.Add(new Dota2Server("197.80.200.1", "South Africa 2 (Cape Town)"));
_servers.Add(new Dota2Server("197.84.209.1", "South Africa 3 (Cape Town)"));
_servers.Add(new Dota2Server("196.38.180.1", "South Africa 4 (Johannesburg)"));
_servers.Add(new Dota2Server("gru.valve.net", "South America 1 (Sao Paulo)"));
_servers.Add(new Dota2Server("209.197.25.1", "South America 2 (Sao Paulo)"));
_servers.Add(new Dota2Server("209.197.29.1", "South America 3 (Sao Paulo)"));
_servers.Add(new Dota2Server("iad.valve.net", "US East (Sterling, VA)"));
_servers.Add(new Dota2Server("eat.valve.net", "US West (Seattle, WA)"));
#endregion
BindingSource bs = new BindingSource();
bs.DataSource = _servers;
dataGrid.DataSource = bs;
RefreshGrid();
ConsoleWrite("Program started successfully.", Color.Lime);
}
示例7: MainForm
/// <summary>
/// main form constructor
/// </summary>
public MainForm()
{
FindPositionRow = 0;
_refreshFilterTimeBuff = new TimeBuffer(RefreshFilter, TimeSpan.FromMilliseconds(500));
string strDateTimeFormat = ConfigurationManager.AppSettings["GridDateTimeFormat"];
if (strDateTimeFormat != null)
DATE_TIME_FORMAT = strDateTimeFormat;
_engine.InitEngine();
try
{
InitializeComponent();
foreach (LogBehavior b in _engine.Behaviors)
{
cmbBehaviors.Items.Add(b);
}
_gridModel = new SortableBindingList<LogEntry>(_engine.MainView);
dataGridView1.DataSource = _gridModel;
lblMemory.Text = "Used Ram: " + ((double)Process.GetCurrentProcess().WorkingSet64 / 1000000d).ToString(".00") + " MB";
dataGridView1.AutoGenerateColumns = false;
cmbBehaviors.SelectedItem = LogBehavior.AutoDetectBehaviour;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace, "Error");
}
}
示例8: DefinirDados
protected override void DefinirDados()
{
base.DefinirDados();
Dados = null;
Dados = new SortableBindingList<Definicao.Escala>(ctrl.Navegar());
dtgDados.Focus();
}
示例9: ParasFactory
private SortableBindingList<Para> m_parasList; //a list store parameters' information
#endregion Fields
#region Constructors
/// <summary>
/// constructor of ParametersFactory
/// </summary>
/// <param name="element">the element of which parameters will be gotten</param>
public ParasFactory(Element element)
{
m_element = element;
m_parasList = new SortableBindingList<Para>();
//set m_parasList can be edit;
m_parasList.AllowEdit = true;
}
示例10: CloudStorageUserControl
public CloudStorageUserControl()
{
InitializeComponent();
data = new SortableBindingList<CloudItem>();
TasksDataGridView.DataSource = data;
queueTimer = new JocysCom.ClassLibrary.Threading.QueueTimer(500, 1000);
queueTimer.DoAction = DoAction;
}
示例11: Update
internal void Update()
{
var typeList = _model.GetTypesFromGroup(_groupID);
var infoList = new SortableBindingList<EveTypeInfo>();
foreach (var type in typeList)
infoList.Add(EveTypeInfoRepository.GetEveTypeInfo(type));
_list.DataObject = infoList;
}
示例12: BuiltInParamsCheckerForm
public BuiltInParamsCheckerForm(
string description,
SortableBindingList<BuiltInParamsChecker.ParameterData> data)
{
_data = data;
InitializeComponent();
Text = description + " " + Text;
}
示例13: SettingsFile
public SettingsFile()
{
_Games = new SortableBindingList<x360ce.Engine.Data.Game>();
_Games.AddingNew += _Games_AddingNew;
_Games.ListChanged += _Games_ListChanged;
_Programs = new SortableBindingList<x360ce.Engine.Data.Program>();
_Pads = new SortableBindingList<x360ce.Engine.Data.PadSetting>();
}
示例14: FrmObjectsWithoutDescription_Load
private void FrmObjectsWithoutDescription_Load(object sender, EventArgs e)
{
this.boundList = new SortableBindingList<IDbObject>(this.database.FindObjectsWithoutDescriptionInDatabase());
this.gvObjects.AutoGenerateColumns = false;
this.gvObjects.DataSource = this.boundList;
this.lnkCopyToClipboard.Visible = false;
}
开发者ID:hbulzy,项目名称:SqlServerDatabaseDocumentationGenerator,代码行数:9,代码来源:FrmObjectsWithoutDescription.cs
示例15: CommandersLog
public CommandersLog(Form1 callingForm)
{
_callingForm = callingForm;
LogEvents = new SortableBindingList<CommandersLogEvent>();
isLoaded = false;
}