Exemple #1
0
        private void mnPrint_Click(object sender, EventArgs e)
        {
            VezbaEditorBaseForm childForm = this.ActiveMdiChild as VezbaEditorBaseForm;

            if (childForm == null)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;
            Cursor.Show();
            try
            {
                PreviewDialog p = new PreviewDialog();
                p.setIzvestaj(new VezbaIzvestaj(childForm));
                p.ShowDialog();
            }
            catch (InfrastructureException ex)
            {
                MessageDialogs.showError(ex.Message, this.Text);
            }
            catch (Exception ex)
            {
                MessageDialogs.showError(ex.Message, this.Text);
            }
            finally
            {
                Cursor.Hide();
                Cursor.Current = Cursors.Arrow;
            }
        }
 private void btnPrint_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     Cursor.Show();
     try
     {
         PreviewDialog p = new PreviewDialog();
         p.setIzvestaj(new TabelaIzvestaj(tabela));
         p.ShowDialog();
     }
     catch (InfrastructureException ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
     catch (Exception ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
     finally
     {
         Cursor.Hide();
         Cursor.Current = Cursors.Arrow;
     }
 }
 private void btnPrint_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     Cursor.Show();
     try
     {
         PreviewDialog p = new PreviewDialog();
         p.setIzvestaj(new TabelaIzvestaj(tabela));
         p.ShowDialog();
     }
     catch (InfrastructureException ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
     catch (Exception ex)
     {
         MessageDialogs.showError(ex.Message, this.Text);
     }
     finally
     {
         Cursor.Hide();
         Cursor.Current = Cursors.Arrow;
     }
 }
Exemple #4
0
        private void mnPrint_Click(object sender, EventArgs e)
        {
            VezbaEditorBaseForm childForm = this.ActiveMdiChild as VezbaEditorBaseForm;
            if (childForm == null)
                return;

            Cursor.Current = Cursors.WaitCursor;
            Cursor.Show();
            try
            {
                PreviewDialog p = new PreviewDialog();
                p.setIzvestaj(new VezbaIzvestaj(childForm));
                p.ShowDialog();
            }
            catch (InfrastructureException ex)
            {
                MessageDialogs.showError(ex.Message, this.Text);
            }
            catch (Exception ex)
            {
                MessageDialogs.showError(ex.Message, this.Text);
            }
            finally
            {
                Cursor.Hide();
                Cursor.Current = Cursors.Arrow;
            }
        }