Beispiel #1
0
 public KonfigurationForm(Konfiguration kon)
 {
     InitializeComponent();
     richTextBox.Text  = "";
     richTextBox.Text += "OS: " + kon.OS;
     richTextBox.Text += "\nSUBD: " + kon.SUBD;
     richTextBox.Text += "\nHD: " + kon.HD;
     richTextBox.Text += "\nSD: " + kon.SD;
     richTextBox.Text += "\nPRICE: " + kon.PRICE;
 }
        public void Execute()
        {
            if (_konfigurationList == null)
            {
                _konfigurationList = new List <Konfiguration>();
            }

            {
                Konfiguration kon = new Konfiguration()
                {
                    OS         = "OS/2",
                    SUBD       = "DB2",
                    HD         = 130,
                    SD         = 22,
                    PRICE      = 3343,
                    CREATETIME = DateTime.Now
                };
                _konfigurationList.Add(kon);
            }
            {
                Konfiguration kon = new Konfiguration()
                {
                    OS         = "Windows/NT",
                    SUBD       = "SQLServer",
                    HD         = 230,
                    SD         = 24,
                    PRICE      = 2685,
                    CREATETIME = DateTime.Now
                };
                _konfigurationList.Add(kon);
            }
            {
                Konfiguration kon = new Konfiguration()
                {
                    OS         = "SCO/Unix",
                    SUBD       = "Oracle",
                    HD         = 110,
                    SD         = 48,
                    PRICE      = 3745,
                    CREATETIME = DateTime.Now
                };
                _konfigurationList.Add(kon);
            }
        }