• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SortableBindingList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SortableBindingList的典型用法代码示例。如果您正苦于以下问题:C# SortableBindingList类的具体用法?C# SortableBindingList怎么用?C# SortableBindingList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SortableBindingList类属于命名空间,在下文中一共展示了SortableBindingList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
        }
开发者ID:cdkmoose,项目名称:StockReader,代码行数:31,代码来源:StockReaderForm.cs


示例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;
        }
开发者ID:Exploraton,项目名称:ArmIT,代码行数:31,代码来源:MainForm.cs


示例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;
            }
        }
开发者ID:rymarrv,项目名称:Compas,代码行数:28,代码来源:DocumentDetailsData.cs


示例4: GridBaseForm

        public GridBaseForm(SortableBindingList<object> data, Type dataType)
        {
            InitializeComponent();

            DataType = dataType;
            Data = data;
        }
开发者ID:BurnOutDev,项目名称:AltasoftDaily,代码行数:7,代码来源:GridBaseForm.cs


示例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));
        }
开发者ID:BurnOutDev,项目名称:AltasoftDaily,代码行数:7,代码来源:OldPaymentsForm.cs


示例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);
        }
开发者ID:DSMorpher,项目名称:Dota2ServerPingCheck,代码行数:35,代码来源:MainForm.cs


示例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");
            }
        }
开发者ID:amitbet,项目名称:RegexLogViewer,代码行数:34,代码来源:MainForm.cs


示例8: DefinirDados

 protected override void DefinirDados()
 {
     base.DefinirDados();
     Dados = null;
     Dados = new SortableBindingList<Definicao.Escala>(ctrl.Navegar());
     dtgDados.Focus();
 }
开发者ID:hempmax,项目名称:Escala,代码行数:7,代码来源:UscEscala.cs


示例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;
        }
开发者ID:AMEE,项目名称:revit,代码行数:17,代码来源:ParasFactory.cs


示例10: CloudStorageUserControl

		public CloudStorageUserControl()
		{
			InitializeComponent();
			data = new SortableBindingList<CloudItem>();
			TasksDataGridView.DataSource = data;
			queueTimer = new JocysCom.ClassLibrary.Threading.QueueTimer(500, 1000);
			queueTimer.DoAction = DoAction;
		}
开发者ID:vcompestine,项目名称:x360ce,代码行数:8,代码来源:CloudStorageUserControl.cs


示例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;
 }
开发者ID:jburchhardt,项目名称:EveStuff,代码行数:8,代码来源:EveTypeManager.cs


示例12: BuiltInParamsCheckerForm

 public BuiltInParamsCheckerForm(
     string description,
     SortableBindingList<BuiltInParamsChecker.ParameterData> data)
 {
     _data = data;
       InitializeComponent();
       Text = description + " " + Text;
 }
开发者ID:jeremytammik,项目名称:AdnRevitApiLabsXtra,代码行数:8,代码来源:BuiltInParamsCheckerForm.cs


示例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>();
 }
开发者ID:wejdi1989,项目名称:x360ce,代码行数:8,代码来源:SettingsFile.cs


示例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;

        }
开发者ID:GettroLadalle,项目名称:RegulatedNoise,代码行数:9,代码来源:CommandersLog.cs


示例16: Race

 public Race()
 {
     this.ID = DataManager.getNextID();
     this.type = "";
     this.competitorRaceList = new SortableBindingList<CompetitorRace>();//new BindingList<CompetitorRace>();
     //this.competitorRaceList = new BindingList<CompetitorRace>();
     this.validClasses = new BindingList<Class>();
     this.passings = new BindingList<PassingsInfo>();
     this.dates = new BindingList<DateTime>();
 }
开发者ID:crawfis,项目名称:RaceManager,代码行数:10,代码来源:Race.cs


示例17: Init

		//*/

		public void Init()
		{
			RefreshRegions();
			regionViewBindingSource = new BindingSource();
			var sortableList = new SortableBindingList<RegionView>(regions);
			regionViewBindingSource.DataSource = sortableList;

			dataGridView1.DataSource = regionViewBindingSource;
			RefreshGrid();
		}
开发者ID:teetow,项目名称:teevegas,代码行数:12,代码来源:FormRegionPlayer.cs


示例18: TapesClass

 public TapesClass(DataGridView gr, NeedleClass ndl, CNC c, FormMain MainF)
 {
     Grid = gr;
     Needle = ndl;
     MainForm = MainF;
     Cnc = c;
     TapeTypes = AForgeFunctionSet.GetTapeTypes();
     if (File.Exists(Global.BaseDirectory + @"\" + TapesSaveName))
         tapeObjs = Global.DeSerialization<SortableBindingList<TapeObj>>(TapeFilename);
 }
开发者ID:Knaster,项目名称:LitePlacer-ver2,代码行数:10,代码来源:TapesClass.cs


示例19: NewDeviceForm_Load

		void NewDeviceForm_Load(object sender, EventArgs e)
		{
			EngineHelper.EnableDoubleBuffering(MySettingsDataGridView);
			configs = new SortableBindingList<Summary>();
			MySettingsDataGridView.AutoGenerateColumns = false;
			MySettingsDataGridView.DataSource = configs;
			WizzardTabControl.TabPages.Remove(Step2TabPage);
			SearchRadioButton.Checked = true;
			FolderPathTextBox.Text = new FileInfo(Application.ExecutablePath).DirectoryName;
			SearchTheInternetCheckBox.Checked = SearchRadioButton.Checked && MainForm.Current.OptionsPanel.InternetCheckBox.Checked;
		}
开发者ID:cagrawal21,项目名称:x360ce,代码行数:11,代码来源:NewDeviceForm.cs


示例20: LoadMyAuctions

        public SortableBindingList<Auction> LoadMyAuctions()
        {
            var results = new SortableBindingList<Auction>();
            var items = Context.Auctions.AsQueryable();
            foreach (var res  in items)
            {
                results.Add(res.ToDomainObject());
            }

            return results;
        }
开发者ID:Alchemy86,项目名称:DAS-Desktop,代码行数:11,代码来源:UserDesktopRepository.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SortableCollection类代码示例发布时间:2022-05-24
下一篇:
C# SortType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap