예제 #1
0
 void RestartKrepseli()
 {
     LBprekiukiekis.Text         = "0";
     LBsuma.Text                 = "0";
     LBsiuntimas.Text            = "";
     CBpristatymas.SelectedIndex = -1;
     LBeur.Left = LBsuma.Location.X + LBsuma.Width;
     gridKreps.Clear();
     Krps = new Krepselis();
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            gridPr    = new BindingList <Preke>();
            gridKreps = new BindingList <Preke>();
            Krps      = new Krepselis();
            Snta      = new Siunta();

            LoadFromFile();
            DGVprekiuSarasas.DataSource = gridPr;
            DGVprekiuSarasas.Columns["Ilgis"].Visible   = false;
            DGVprekiuSarasas.Columns["Plotis"].Visible  = false;
            DGVprekiuSarasas.Columns["Aukstis"].Visible = false;
            DGVprekiuSarasas.ClearSelection();

            DGVKrepselis.DataSource = gridKreps;
            DGVKrepselis.Columns["Ilgis"].Visible   = false;
            DGVKrepselis.Columns["Plotis"].Visible  = false;
            DGVKrepselis.Columns["Aukstis"].Visible = false;
            DGVKrepselis.ClearSelection();
        }