public class ProductTableDelegate_Tab5 : NSTableViewDelegate
    { 

 private const string CellIndentifer = "ProdCell"; 

 private ProductTableDataSource_Tab5 DataSource; 

 public ProductTableDelegate_Tab5(ProductTableDataSource_Tab5 datasource) 

                                                                    {
                                                                        
            this.DataSource = datasource; 

                                                                    }
Example #2
0
 }

        public static void RefreshTable2(string[] lista, NSTableView tabela)
        {

            var DataSource = new ProductTableDataSource();
            if (lista.Length == 0)
            {
                DataSource.Products.Add(new Product("", "", ""));
            }
            else
            {
                int count = 0;
                do
                {
                    DataSource.Products.Add(new Product(lista[count], "", ""));
                    count++;
                } while (count < lista.Length);
            }
            tabela.DataSource = DataSource;
            tabela.Delegate = new ProductTableDelegate(DataSource);

        }

        public static void RefreshTable5(string[] lista, string[] data, NSTableView tabela)
        {

            var DataSource = new ProductTableDataSource_Tab5();
            if (lista.Length == 0)
            {
                DataSource.Products.Add(new Product_Tab5("", ""));
            }
            else
            {
                int count = 0;
                do
                {
                    DataSource.Products.Add(new Product_Tab5(lista[count], data[count]));
                    count++;
                } while (count < lista.Length);
            }
            tabela.DataSource = DataSource;
            tabela.Delegate = new ProductTableDelegate_Tab5(DataSource);

        }






        public static void RefreshComboBox(string[] lista, NSComboBox comboBox)
        {
            List<string> eldo = new List<string>(lista);
            comboBox.UsesDataSource = true;
            comboBox.DataSource = new BloomTypesDataSource(eldo);

        }

        public static string[] CreateReadyElement(string[] bazaTabela, string[] bazaTabela_x, string[] bazaTabela_y)