Index: /trunk/BazaReklam/OrderDetails.cs
===================================================================
--- /trunk/BazaReklam/OrderDetails.cs (revision 205)
+++ /trunk/BazaReklam/OrderDetails.cs (revision 250)
@@ -211,4 +211,6 @@
             DataRowView row = (DataRowView)rEKLAMABindingSource.Current;
             
+
+
             /*
             if (!(brutto_EuroTextBox.Text != "0" ^ walutyComboBox.SelectedIndex == -1))
@@ -1631,4 +1633,13 @@
             }
         }
+
+        private void zablokuj_prowizjeCheckBox_CheckedChanged(object sender, EventArgs e)
+        {
+            if (rEKLAMABindingSource.Current == null) return;
+
+            DataRowView row = (DataRowView)rEKLAMABindingSource.Current;
+            REKLAMADataSet.REKLAMARow reklama = (REKLAMADataSet.REKLAMARow)row.Row;
+            pROWIZJATextBox.Text = (reklama.PROCENT_PROWIZJI*reklama.NETTO).ToString();
+        }
     }
 }
Index: /trunk/BazaReklam/OrderDetails.Designer.cs
===================================================================
--- /trunk/BazaReklam/OrderDetails.Designer.cs (revision 192)
+++ /trunk/BazaReklam/OrderDetails.Designer.cs (revision 250)
@@ -129,5 +129,4 @@
             this.sTRONATextBox = new System.Windows.Forms.TextBox();
             this.groupBox3 = new System.Windows.Forms.GroupBox();
-            this.cenaEmisjiButton = new System.Windows.Forms.Button();
             this.label8 = new System.Windows.Forms.Label();
             this.nettoBezBOTextBox = new System.Windows.Forms.TextBox();
@@ -136,4 +135,5 @@
             this.label3 = new System.Windows.Forms.Label();
             this.wyroznienie_procentTextBox = new System.Windows.Forms.TextBox();
+            this.cenaEmisjiButton = new System.Windows.Forms.Button();
             this.brutto_EuroTextBox = new System.Windows.Forms.TextBox();
             this.walutyComboBox = new System.Windows.Forms.ComboBox();
@@ -881,4 +881,5 @@
             this.zablokuj_prowizjeCheckBox.Size = new System.Drawing.Size(18, 24);
             this.zablokuj_prowizjeCheckBox.TabIndex = 54;
+            this.zablokuj_prowizjeCheckBox.CheckedChanged += new System.EventHandler(this.zablokuj_prowizjeCheckBox_CheckedChanged);
             // 
             // ukazeSieDataGridView
@@ -1199,14 +1200,4 @@
             this.groupBox3.TabStop = false;
             // 
-            // cenaEmisjiButton
-            // 
-            this.cenaEmisjiButton.Location = new System.Drawing.Point(548, 604);
-            this.cenaEmisjiButton.Name = "cenaEmisjiButton";
-            this.cenaEmisjiButton.Size = new System.Drawing.Size(75, 23);
-            this.cenaEmisjiButton.TabIndex = 79;
-            this.cenaEmisjiButton.Text = "Cena em.";
-            this.cenaEmisjiButton.UseVisualStyleBackColor = true;
-            this.cenaEmisjiButton.Click += new System.EventHandler(this.cenaEmisjiButton_Click);
-            // 
             // label8
             // 
@@ -1270,4 +1261,14 @@
             this.wyroznienie_procentTextBox.Text = "0";
             this.wyroznienie_procentTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            // 
+            // cenaEmisjiButton
+            // 
+            this.cenaEmisjiButton.Location = new System.Drawing.Point(548, 604);
+            this.cenaEmisjiButton.Name = "cenaEmisjiButton";
+            this.cenaEmisjiButton.Size = new System.Drawing.Size(75, 23);
+            this.cenaEmisjiButton.TabIndex = 79;
+            this.cenaEmisjiButton.Text = "Cena em.";
+            this.cenaEmisjiButton.UseVisualStyleBackColor = true;
+            this.cenaEmisjiButton.Click += new System.EventHandler(this.cenaEmisjiButton_Click);
             // 
             // brutto_EuroTextBox
