Exemple #1
0
        public editRabat(rabaty rabaty)
        {
            InitializeComponent();
            this.rabaty = rabaty;
            string id      = rabaty.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            string symbol  = rabaty.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            string nazwa   = rabaty.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            string wartosc = rabaty.dataGridView1.CurrentRow.Cells[3].Value.ToString().Replace(".", ",");

            Text = "Edytujesz grupę rabatową: " + symbol;

            idN.Text        = id;
            nazwaTXT.Text   = nazwa;
            symbolTXT.Text  = symbol;
            wartoscTXT.Text = wartosc;
        }
Exemple #2
0
 private void rabatyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     finanse.rabaty frm = new finanse.rabaty();
     frm.Show();
 }