Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            DodavanjeKomponete dk = new DodavanjeKomponete( );

            dk.LoadCBInfo( );

            dk.ShowDialog( );
        }
Exemplo n.º 2
0
        private void mainView_DoubleClick(object sender, EventArgs e)
        {
            if (mainView.SelectedItems.Count < 1)
            {
                return;
            }

            int i = int.Parse(mainView.SelectedItems[0].Text);

            MySQL_Connection.GetInstance( ).Open( );
            PolovneKomponente pk = new PolovneKomponente( );

            pk.Load(MySQL_Connection.GetInstance( ), i);
            MySQL_Connection.GetInstance( ).Close( );

            DodavanjeKomponete dk = new DodavanjeKomponete( );

            dk.ResetAll( );
            dk.LoadCBInfo( );
            dk.LoadItem(pk);
            dk.ShowDialog(this);
        }