Pokaż
Ignoruj:
Data:
2009-04-08 09:21:32 (17 years ago)
Autor:
marek
Opis:

re #157

Pliki:
1 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/ErrorLog/BazaReklam/MDIBazaReklam.cs

    r490 r553  
    1515        private void MDIBazaReklam_Load(object sender, EventArgs e) 
    1616        { 
    17  
    18            
    1917            uprawnienia(); 
    20              
    21             //MessageBox.Show(span.ToString()); 
    2218        } 
    2319 
     
    7268        private void klienciToolStripButton_Click(object sender, EventArgs e) 
    7369        { 
    74             this.Cursor = Cursors.WaitCursor; 
     70            Cursor = Cursors.WaitCursor; 
    7571 
    7672            foreach (Form childForm in MdiChildren) 
     
    8278            ClientsForm.getClientsForm(this).Show(); 
    8379 
    84             this.Cursor = Cursors.Default; 
     80            Cursor = Cursors.Default; 
    8581 
    8682        } 
     
    8884        private void zamowieniaToolStripButton_Click(object sender, EventArgs e) 
    8985        { 
    90             this.Cursor = Cursors.WaitCursor; 
     86            Cursor = Cursors.WaitCursor; 
    9187 
    9288            foreach (Form childForm in MdiChildren) 
     
    9793            OrdersForm.getOrderForm(this).Show(); 
    9894 
    99             this.Cursor = Cursors.Default; 
     95            Cursor = Cursors.Default; 
    10096 
    10197        } 
     
    10399        private void fakturyToolStripButton_Click(object sender, EventArgs e) 
    104100        { 
    105             this.Cursor = Cursors.WaitCursor; 
     101            Cursor = Cursors.WaitCursor; 
    106102 
    107103            foreach (Form childForm in MdiChildren) 
     
    112108            FacturesForm.getFacturesForm(this).Show(); 
    113109 
    114             this.Cursor = Cursors.Default; 
     110            Cursor = Cursors.Default; 
    115111 
    116112        } 
     
    118114        private void produkcjaToolStripButton_Click(object sender, EventArgs e) 
    119115        { 
    120             this.Cursor = Cursors.WaitCursor; 
     116            Cursor = Cursors.WaitCursor; 
    121117 
    122118            foreach (Form childForm in MdiChildren) 
     
    127123            ProductionForm.getProductionForm(this).Show(); 
    128124 
    129             this.Cursor = Cursors.Default; 
     125            Cursor = Cursors.Default; 
    130126        } 
    131127 
    132128        private void infoToolStripButton_Click(object sender, EventArgs e) 
    133129        { 
    134             this.Cursor = Cursors.WaitCursor; 
     130            Cursor = Cursors.WaitCursor; 
    135131 
    136132            foreach (Form childForm in MdiChildren) 
     
    141137            InfoForm.getInfoForm(this).Show(); 
    142138 
    143             this.Cursor = Cursors.Default; 
     139            Cursor = Cursors.Default; 
    144140        } 
    145141 
    146142        private void raportyToolStripButton_Click(object sender, EventArgs e) 
    147143        { 
    148             this.Cursor = Cursors.WaitCursor; 
     144            Cursor = Cursors.WaitCursor; 
    149145 
    150146            foreach (Form childForm in MdiChildren) 
     
    156152            ReportsForm.getReportsForm(this).Show(); 
    157153 
    158             this.Cursor = Cursors.Default; 
     154            Cursor = Cursors.Default; 
    159155        } 
    160156 
    161157        private void prowizjeToolStripButton_Click(object sender, EventArgs e) 
    162158        { 
    163             this.Cursor = Cursors.WaitCursor; 
     159            Cursor = Cursors.WaitCursor; 
    164160 
    165161            foreach (Form childForm in MdiChildren) 
     
    171167            ProvisionForm.getProvisionForm(this).Show(); 
    172168 
    173             this.Cursor = Cursors.Default; 
     169            Cursor = Cursors.Default; 
    174170        } 
    175171 
    176172        private void startToolStripButton_Click(object sender, EventArgs e) 
    177173        { 
    178             this.Cursor = Cursors.WaitCursor; 
     174            Cursor = Cursors.WaitCursor; 
    179175 
    180176            foreach (Form childForm in MdiChildren) 
     
    186182            StartForm.getStartForm(this).Show(); 
    187183 
    188             this.Cursor = Cursors.Default; 
     184            Cursor = Cursors.Default; 
    189185        } 
    190186 
    191187        private void listaReklamToolStripButton_Click(object sender, EventArgs e) 
    192188        { 
    193             this.Cursor = Cursors.WaitCursor; 
     189            Cursor = Cursors.WaitCursor; 
    194190 
    195191            foreach (Form childForm in MdiChildren) 
     
    201197            ListaReklamNaWydanieForm.getListaReklamNaWydanieForm(this).Show(); 
    202198             
    203             this.Cursor = Cursors.Default; 
     199            Cursor = Cursors.Default; 
    204200        } 
    205201 
    206202        private void adminToolStripButton_Click(object sender, EventArgs e) 
    207203        { 
    208             this.Cursor = Cursors.WaitCursor; 
     204            Cursor = Cursors.WaitCursor; 
    209205 
    210206            foreach (Form childForm in MdiChildren) 
     
    216212            AdminForm.getAdminForm(this).Show(); 
    217213 
    218             this.Cursor = Cursors.Default; 
     214            Cursor = Cursors.Default; 
    219215        } 
    220216 
    221217        private void koniecToolStripButton_Click(object sender, EventArgs e) 
    222218        { 
    223             this.Close(); 
     219            Close(); 
    224220        } 
    225221 
     
    231227                return; 
    232228            } 
    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            } 
    252236        } 
    253237 
     
    255239        { 
    256240            //Application.Exit(); 
    257             int i = 0; 
    258241        } 
    259242 
    260243        private void zamowieniaToolStripButton2_Click(object sender, EventArgs e) 
    261244        { 
    262             this.Cursor = Cursors.WaitCursor; 
     245            Cursor = Cursors.WaitCursor; 
    263246 
    264247            foreach (Form childForm in MdiChildren) 
     
    270253            ZestawienieZamowienForm.getZestawienieZamowienForm(this).Show(); 
    271254 
    272             this.Cursor = Cursors.Default; 
     255            Cursor = Cursors.Default; 
    273256 
    274257        } 
     
    276259        private void fakturyNoweToolStripButton_Click(object sender, EventArgs e) 
    277260        { 
    278             this.Cursor = Cursors.WaitCursor; 
     261            Cursor = Cursors.WaitCursor; 
    279262 
    280263            foreach (Form childForm in MdiChildren) 
     
    285268            FacturesFormNEW.getFacturesForm(this).Show(); 
    286269 
    287             this.Cursor = Cursors.Default; 
     270            Cursor = Cursors.Default; 
    288271        } 
    289272 
    290273        private void korektaToolStripButton_Click(object sender, EventArgs e) 
    291274        { 
    292             this.Cursor = Cursors.WaitCursor; 
     275            Cursor = Cursors.WaitCursor; 
    293276             
    294277            foreach (Form childForm in MdiChildren) 
     
    299282            KorektyForm.getFacturesForm(this).Show(); 
    300283 
    301             this.Cursor = Cursors.Default; 
     284            Cursor = Cursors.Default; 
    302285        } 
    303286 
     
    308291            about.ShowDialog(); 
    309292        } 
    310  
    311  
    312                        
    313293    } 
    314294}