Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var phone = new RedisDictionary <int, Phone>("phone");

            phone.Remove(Convert.ToInt32(textBox1.Text));
            this.dataGridView1.DataSource = phone.Values.OrderBy(x => x.Id).ToList();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var phone = new RedisDictionary <int, Phone>("phone");
            var p     = new Phone()
            {
                Id           = Convert.ToInt32(textBox1.Text),
                Model        = textBox2.Text,
                Manufacturer = textBox3.Text
            };

            phone.Add(p.Id, p);
            this.dataGridView1.DataSource = phone.Values.OrderBy(x => x.Id).ToList();
        }
Esempio n. 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            var p = new RedisDictionary <int, Phone>("phone");

            this.dataGridView1.DataSource = p.Values.OrderBy(x => x.Id).ToList();
        }