Zbiór zmian 553 dla branches/ErrorLog/BazaReklam/MDIBazaReklam.cs
- Data:
- 2009-04-08 09:21:32 (17 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
branches/ErrorLog/BazaReklam/MDIBazaReklam.cs (zmodyfikowane) (22 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/ErrorLog/BazaReklam/MDIBazaReklam.cs
r490 r553 15 15 private void MDIBazaReklam_Load(object sender, EventArgs e) 16 16 { 17 18 19 17 uprawnienia(); 20 21 //MessageBox.Show(span.ToString());22 18 } 23 19 … … 72 68 private void klienciToolStripButton_Click(object sender, EventArgs e) 73 69 { 74 this.Cursor = Cursors.WaitCursor;70 Cursor = Cursors.WaitCursor; 75 71 76 72 foreach (Form childForm in MdiChildren) … … 82 78 ClientsForm.getClientsForm(this).Show(); 83 79 84 this.Cursor = Cursors.Default;80 Cursor = Cursors.Default; 85 81 86 82 } … … 88 84 private void zamowieniaToolStripButton_Click(object sender, EventArgs e) 89 85 { 90 this.Cursor = Cursors.WaitCursor;86 Cursor = Cursors.WaitCursor; 91 87 92 88 foreach (Form childForm in MdiChildren) … … 97 93 OrdersForm.getOrderForm(this).Show(); 98 94 99 this.Cursor = Cursors.Default;95 Cursor = Cursors.Default; 100 96 101 97 } … … 103 99 private void fakturyToolStripButton_Click(object sender, EventArgs e) 104 100 { 105 this.Cursor = Cursors.WaitCursor;101 Cursor = Cursors.WaitCursor; 106 102 107 103 foreach (Form childForm in MdiChildren) … … 112 108 FacturesForm.getFacturesForm(this).Show(); 113 109 114 this.Cursor = Cursors.Default;110 Cursor = Cursors.Default; 115 111 116 112 } … … 118 114 private void produkcjaToolStripButton_Click(object sender, EventArgs e) 119 115 { 120 this.Cursor = Cursors.WaitCursor;116 Cursor = Cursors.WaitCursor; 121 117 122 118 foreach (Form childForm in MdiChildren) … … 127 123 ProductionForm.getProductionForm(this).Show(); 128 124 129 this.Cursor = Cursors.Default;125 Cursor = Cursors.Default; 130 126 } 131 127 132 128 private void infoToolStripButton_Click(object sender, EventArgs e) 133 129 { 134 this.Cursor = Cursors.WaitCursor;130 Cursor = Cursors.WaitCursor; 135 131 136 132 foreach (Form childForm in MdiChildren) … … 141 137 InfoForm.getInfoForm(this).Show(); 142 138 143 this.Cursor = Cursors.Default;139 Cursor = Cursors.Default; 144 140 } 145 141 146 142 private void raportyToolStripButton_Click(object sender, EventArgs e) 147 143 { 148 this.Cursor = Cursors.WaitCursor;144 Cursor = Cursors.WaitCursor; 149 145 150 146 foreach (Form childForm in MdiChildren) … … 156 152 ReportsForm.getReportsForm(this).Show(); 157 153 158 this.Cursor = Cursors.Default;154 Cursor = Cursors.Default; 159 155 } 160 156 161 157 private void prowizjeToolStripButton_Click(object sender, EventArgs e) 162 158 { 163 this.Cursor = Cursors.WaitCursor;159 Cursor = Cursors.WaitCursor; 164 160 165 161 foreach (Form childForm in MdiChildren) … … 171 167 ProvisionForm.getProvisionForm(this).Show(); 172 168 173 this.Cursor = Cursors.Default;169 Cursor = Cursors.Default; 174 170 } 175 171 176 172 private void startToolStripButton_Click(object sender, EventArgs e) 177 173 { 178 this.Cursor = Cursors.WaitCursor;174 Cursor = Cursors.WaitCursor; 179 175 180 176 foreach (Form childForm in MdiChildren) … … 186 182 StartForm.getStartForm(this).Show(); 187 183 188 this.Cursor = Cursors.Default;184 Cursor = Cursors.Default; 189 185 } 190 186 191 187 private void listaReklamToolStripButton_Click(object sender, EventArgs e) 192 188 { 193 this.Cursor = Cursors.WaitCursor;189 Cursor = Cursors.WaitCursor; 194 190 195 191 foreach (Form childForm in MdiChildren) … … 201 197 ListaReklamNaWydanieForm.getListaReklamNaWydanieForm(this).Show(); 202 198 203 this.Cursor = Cursors.Default;199 Cursor = Cursors.Default; 204 200 } 205 201 206 202 private void adminToolStripButton_Click(object sender, EventArgs e) 207 203 { 208 this.Cursor = Cursors.WaitCursor;204 Cursor = Cursors.WaitCursor; 209 205 210 206 foreach (Form childForm in MdiChildren) … … 216 212 AdminForm.getAdminForm(this).Show(); 217 213 218 this.Cursor = Cursors.Default;214 Cursor = Cursors.Default; 219 215 } 220 216 221 217 private void koniecToolStripButton_Click(object sender, EventArgs e) 222 218 { 223 this.Close();219 Close(); 224 220 } 225 221 … … 231 227 return; 232 228 } 233 else 234 e.Cancel = false; 235 236 string s1 = ""; 237 238 try 239 { 240 foreach (Form childForm in MdiChildren) 241 { 242 s1 = childForm.GetType().ToString(); 243 childForm.Close(); 244 } 245 } 246 catch (Exception ex) 247 { 248 MessageBox.Show("Formularz: " + s1 + "\n" + ex.ToString()); 249 } 250 251 229 230 e.Cancel = false; 231 232 foreach (Form childForm in MdiChildren) 233 { 234 if (childForm != null) childForm.Close(); 235 } 252 236 } 253 237 … … 255 239 { 256 240 //Application.Exit(); 257 int i = 0;258 241 } 259 242 260 243 private void zamowieniaToolStripButton2_Click(object sender, EventArgs e) 261 244 { 262 this.Cursor = Cursors.WaitCursor;245 Cursor = Cursors.WaitCursor; 263 246 264 247 foreach (Form childForm in MdiChildren) … … 270 253 ZestawienieZamowienForm.getZestawienieZamowienForm(this).Show(); 271 254 272 this.Cursor = Cursors.Default;255 Cursor = Cursors.Default; 273 256 274 257 } … … 276 259 private void fakturyNoweToolStripButton_Click(object sender, EventArgs e) 277 260 { 278 this.Cursor = Cursors.WaitCursor;261 Cursor = Cursors.WaitCursor; 279 262 280 263 foreach (Form childForm in MdiChildren) … … 285 268 FacturesFormNEW.getFacturesForm(this).Show(); 286 269 287 this.Cursor = Cursors.Default;270 Cursor = Cursors.Default; 288 271 } 289 272 290 273 private void korektaToolStripButton_Click(object sender, EventArgs e) 291 274 { 292 this.Cursor = Cursors.WaitCursor;275 Cursor = Cursors.WaitCursor; 293 276 294 277 foreach (Form childForm in MdiChildren) … … 299 282 KorektyForm.getFacturesForm(this).Show(); 300 283 301 this.Cursor = Cursors.Default;284 Cursor = Cursors.Default; 302 285 } 303 286 … … 308 291 about.ShowDialog(); 309 292 } 310 311 312 313 293 } 314 294 }
