Пример #1
0
 ///// <summary>
 ///// Invoked when this page is about to be displayed in a Frame.
 ///// </summary>
 ///// <param name="e">Event data that describes how this page was reached.  The Parameter
 ///// property is typically used to configure the page.</param>
 //protected override void OnNavigatedTo(NavigationEventArgs e)
 //{
 //    //base.OnNavigatedTo(e);
 //}
 //private void OnGoBack(object parameter)
 //{
 //    //Frame.Navigate(typeof(SampleBrowser.Home));
 //}
 #region Events
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Add(object sender, RoutedEventArgs e)
 {
     m_fieldsPopup = new FieldDialog(m_productList);
     m_fieldsPopup.CloseRequested  += myDialog_CloseRequested;
     m_fieldsPopup.UpdateRequested += myDialog_UpdateRequested;
     //m_fieldsPopup.Activated += fieldsPopup_Opened;
     //m_fieldsPopup.Background = new SolidColorBrush(Colors.Red);
     RootGrid.Opacity = 0.1;
     //m_fieldsPopup.Opacity = 1;
     //m_fieldsPopup.ShowDialog();
     RootGrid.Opacity = 1;
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Add(object sender, RoutedEventArgs e)
 {
     m_fieldDialog = new FieldDialog(m_productList);
     m_fieldDialog.CloseRequested  += myDialog_CloseRequested;
     m_fieldDialog.UpdateRequested += myDialog_UpdateRequested;
     m_fieldDialog.Activated       += FieldsPopup_Opened;
     m_fieldDialog.Background       = new SolidColorBrush(Colors.Red);
     RootGrid.Opacity      = 0.1;
     m_fieldDialog.Opacity = 1;
     m_fieldDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     m_fieldDialog.ShowDialog();
     RootGrid.Opacity = 1;
 }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InvoiceGrid_DoubleTapped(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            FrameworkElement element = null;

            if ((element = e.OriginalSource as FrameworkElement) != null)
            {
                m_selectedIndex = Grid.GetRow(element);
            }
            InvoiceItem invoiceItem          = m_items[m_selectedIndex];
            int         selectedProductIndex = m_productList.IndexOf(m_productList[invoiceItem.ItemName]);

            m_fieldsPopup = new FieldDialog(invoiceItem, "Edit the Fields", m_productList, selectedProductIndex);
            m_fieldsPopup.UpdateRequested += EditDialog_UpdateRequested;
            m_fieldsPopup.CloseRequested  += EditDialog_CloseRequested;
            m_fieldsPopup.lblTitle.Content = "Edit the Fields";
            RootGrid.Opacity = 0.2;
            //m_fieldsPopup.Opacity = 1;
            //m_fieldsPopup.ShowDialog();
            RootGrid.Opacity = 1;
        }