public DashboardMenu()
        {
            try
            {
                InitializeComponent();

                availableOptions = new Dictionary<System.Windows.Controls.Primitives.ToggleButton, UserControl>();

                home = new HomeContent();
                newQuote = new NewQuoteContent();
                customer = new CustomerSettingsContent();
                priceSettings = new PriceSettingsContent();
                soSection = new SalesOrderContent();
                worksheetSection = new WorksheetContent();
                invoice = new InvoiceContent();
                makePayment = new MakeInvoicePayment();
                commanderSection = new CommanderSectionContent();
                barcodePrinter = new BarcodePrinter();

                availableOptions.Add(btnHome, home);
                availableOptions.Add(btnCreateNewQuote, newQuote);
                availableOptions.Add(btnPriceSettings, priceSettings);
                availableOptions.Add(btnCustomerSettings, customer);
                availableOptions.Add(btnSaleOrder, soSection);
                availableOptions.Add(btnWorksheet, worksheetSection);
                availableOptions.Add(btnInvoice, invoice);
                availableOptions.Add(btnMakePayment, makePayment);
                availableOptions.Add(btnCommanderSection, commanderSection);
                availableOptions.Add(btnBarcodePrinter, barcodePrinter);

                btnHome.IsChecked = true;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
        }
        private void OpenSelectedQuote()
        {
            try
            {

                Dashboard parent = Window.GetWindow(this) as Dashboard;

                QuoteMasterEntity entity = dgQuoteDetails.SelectedItem as QuoteMasterEntity;

                if (entity == null)
                {
                    return;
                }

                DashboardMenu sideMenu = parent.ucDashboardMenu.CurrentPage as DashboardMenu;
                if (sideMenu != null)
                {
                    sideMenu.IsIndirectCall = true;
                    sideMenu.btnCreateNewQuote.IsChecked = true;
                    sideMenu.IsIndirectCall = false;
                }

                NewQuoteContent newQuote = new NewQuoteContent(true, entity.QuoteNumber);
                parent.ucMainContent.ShowPage(newQuote);
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
        }