Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

HuorSwords

@HuorSwords
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DataSet to Dictionary Join?
    H HuorSwords

    class Company
    {
    public string Name { get; set; }

    public List Loans { get; }
    
    // The other properties / columns goes here...
    
    // Constructor
    public Company()
    {
    	this.Loans = new List();
    }
    

    }

    class Loan
    {
    public string CompanyName { get; set; }

    // The other properties / columns goes here...
    

    }

    static class Main()
    {
    Dictionary companies = new Dictionary();

    foreach (DataRow row in companyDataSet.Tables\["Company"\].Rows)
        {		
    	Company current = new Company();
    	
    	current.Name = row.CompanyName;
    	// Fill here the other properties...
    }
    
    foreach (DataRow row in loanDataSet.Tables\["Loan"\].Rows)
        {
    	Loan currentLoan = new Loan();
    	currentLoan.CompanyName = row.CompanyName;
    	// Fill here the other properties...
    	
    	companies\[currentLoan.CompanyName\].Loans.Add(currentLoan);
    }
    
    // FillGridViewWithDictionary(companies)...
    

    }

    C# tutorial question

  • Joining 2 DataSets
    H HuorSwords

    It is only an option, but... You may need to create a third dataset which the relationship itself is defined, and feed it with the information you get from these two webservices. After that, you still can iterate through this third dataset to fill your gridview.

    C# wcf csharp asp-net wpf com

  • How to update progressBar from another class
    H HuorSwords

    Sorry in advance for my english. Possibly is not good enough yet... Do you have the possibility to change your interface? I'm thinking that a solution to your problem could be the use of events on your CR5 class. (Observer pattern) You could create an event on CR5 class that can be subscribed by the class that contains the progress bar. Then, you can fire your event on the AttempWrite function with a parameter that indicates de current progress value to set into the progress bar. Is it a possibility? Or are you constrained to this interface contract?

    C# csharp c++ database visual-studio com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups