GetCardByName() public method

public GetCardByName ( string name ) : TvDatabase.Card
name string
return TvDatabase.Card
示例#1
0
    static void Main(string[] args)
    {
      TvBusinessLayer layer = new TvBusinessLayer();
      layer.AddCard("name1", "path1", 1);
      layer.AddCard("name2", "path2", 2);
      layer.AddCard("name3", "path3", 3);
      layer.AddCard("name4", "path4", 4);

      Card card = layer.GetCardByName("name2");
      card = layer.GetCardByDevicePath("path4");

      Channel channel = layer.AddChannel("provider", "name");
      channel = layer.AddChannel("provider", "name");
      

      DatabaseManager.Instance.SaveChanges();

    }