public NewQuoteContent(bool _isOpenQuoteRequested, string _quoteNumber) { try { InitializeComponent(); if (ucNewQuoteItems.CurrentPage == null) { NewQuoteItemsContent items = new NewQuoteItemsContent(); ucNewQuoteItems.ShowPage(items); } if (ucNewQuoteGrid.CurrentPage == null) { NewQuoteGridContent grid = null; if (_isOpenQuoteRequested == true) { grid = new NewQuoteGridContent(_isOpenQuoteRequested, _quoteNumber); } else { grid = new NewQuoteGridContent(); } ucNewQuoteGrid.ShowPage(grid); } } catch (Exception ex) { Logger.LogException(ex); } }
public NewQuoteContent() { try { InitializeComponent(); if (ucNewQuoteItems.CurrentPage == null) { NewQuoteItemsContent items = new NewQuoteItemsContent(); ucNewQuoteItems.ShowPage(items); } if (ucNewQuoteGrid.CurrentPage == null) { NewQuoteGridContent grid = new NewQuoteGridContent(); ucNewQuoteGrid.ShowPage(grid); } } catch (Exception ex) { Logger.LogException(ex); } }