Пример #1
0
        public void populateGrid(string result)
        {
            Dictionary <string, List <string> > dictionary = FormatFunctions.createValuePairs(FormatFunctions.SplitToPairs(result));

            if (dictionary.Count > 0)
            {
                string   filepath         = dictionary["Value"][0] + " - " + dictionary["Name"][0];
                string[] customerFileList = DatabaseFunctions.getCustomerFileList(filepath);
                filepath.Replace(" ", "%20");
                foreach (string text in customerFileList)
                {
                    if ((text != "." || text != "..") && customerFileList.Length > 1)
                    {
                        SecurityButton dataButton = new SecurityButton(text, new string[] { "Sales" })
                        {
                            Text     = text,
                            String2  = filepath,
                            FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Label))
                        };
                        dataButton.Clicked += onFileButton;
                        List <View> list = new List <View>()
                        {
                            dataButton
                        };
                        GridFiller.rapidFillPremadeObjects(list, this, new bool[] { false });
                    }
                }
            }
        }
Пример #2
0
        public FileList(int cusID) : base()
        {
            customer = cusID;
            string       sql  = "SELECT cusfields.Value,cusindex.Name FROM cusfields INNER JOIN cusindex ON cusfields.CusID=cusindex.IDKey WHERE cusindex.IDKey='" + cusID + "' AND cusfields.Index LIKE '%dress%'";
            TaskCallback call = populateGrid;

            DatabaseFunctions.SendToPhp(false, sql, call);
            GridFiller.rapidFill(new string[] { "Associated Files" }, this);
        }