Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Height = (Screen.PrimaryScreen.WorkingArea.Height-1);
            this.Width = (Screen.PrimaryScreen.WorkingArea.Width-1);

            tabControl1.Width = (this.Width-210);
            tabControl1.Height = (this.Height-30);
            this.dataGrid1.Height = (tabControl1.Height-20);
            tableLayoutPanel1.Height = (tabControl1.Height-20);
            tableLayoutPanel1.Left = (this.Width - 205);
            label2.Visible = false;
            item dfs = new item();

            for (int i = 0; i < 50; i++)
            {
                dfs.SetPriceBase(i);
                //dataGrid1.Rows.Add(dfs.GetValue());
            }
        }
Exemple #2
0
 public void AddNewItem(item one, Document two)
 {
     ListOfItem.Add(one);
     ListOfDocuments.Add(two);
     dataGrid1.Rows.Add(one.GetValue());
 }