Ejemplo n.º 1
0
 private void Btn_Invoice_Click(object sender, RoutedEventArgs e)
 {
     selectedTab             = 0;
     txt_search.Text         = "";
     path_order.Fill         = Brushes.White;
     bdrMain.RenderTransform = Animations.borderAnimation(50, bdrMain, true);
     ReportsHelp.paintTabControlBorder(grid_tabControl, bdr_invoice);
     path_invoice.Fill = (SolidColorBrush)(new BrushConverter().ConvertFrom("#4E4E4E"));
     ReportsHelp.showTabControlGrid(grid_father, grid_invoice);
     ReportsHelp.isEnabledButtons(grid_tabControl, btn_invoice);
     fillInvoiceEvents();
 }
        private void Btn_quotation_Click(object sender, RoutedEventArgs e)
        {//quotation
            try
            {
                if (sender != null)
                {
                    SectionData.StartAwait(grid_main);
                }

                selectedTab     = 2;
                txt_search.Text = "";

                path_invoice.Fill       = Brushes.White;
                path_order.Fill         = Brushes.White;
                bdrMain.RenderTransform = Animations.borderAnimation(50, bdrMain, true);
                ReportsHelp.paintTabControlBorder(grid_tabControl, bdr_quotation);
                path_quotation.Fill = (SolidColorBrush)(new BrushConverter().ConvertFrom("#4E4E4E"));
                ReportsHelp.showTabControlGrid(grid_father, grid_quotation);
                ReportsHelp.isEnabledButtons(grid_tabControl, btn_quotation);
                col_processType.Visibility = Visibility.Hidden;

                fillEvents();
                rowToHide.Height = new GridLength(0);

                if (sender != null)
                {
                    SectionData.EndAwait(grid_main);
                }
            }
            catch (Exception ex)
            {
                if (sender != null)
                {
                    SectionData.EndAwait(grid_main);
                }
                SectionData.ExceptionMessage(ex, this);
            }
        }