Esempio n. 1
0
 private void btnBilling_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         clientBillingHandler = new ClientBilling();
         clientBillingHandler.HomePageHandler = this;
         clientBillingHandler.Show();
     }
     catch (Exception ex)
     {
         Helper.LogException(ex);
     }
 }
Esempio n. 2
0
 private void btnBilling_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         clientBillingHandler = new ClientBilling();
         clientBillingHandler.HomePageHandler = this;
         clientBillingHandler.Show();
     }
     catch (Exception ex)
     {
         Helper.LogException(ex);
     }
 }
 private void btnClientBilling_Click(object sender, RoutedEventArgs e)
 {
     if (clientBillingHandler == null)
     {
         clientBillingHandler = new ClientBilling();
     }
     if (clientBillingHandler.WindowState == System.Windows.WindowState.Minimized)
     {
         clientBillingHandler.WindowState = System.Windows.WindowState.Maximized;
         clientBillingHandler.Activate();
     }
     clientBillingHandler.Show();
     this.Close();
 }
Esempio n. 4
0
 private void btnClientBilling_Click(object sender, RoutedEventArgs e)
 {
     if (clientBillingHandler == null)
     {
         clientBillingHandler = new ClientBilling();
     }
     if (clientBillingHandler.WindowState == System.Windows.WindowState.Minimized)
     {
         clientBillingHandler.WindowState = System.Windows.WindowState.Maximized;
         clientBillingHandler.Activate();
     }
     clientBillingHandler.Show();
     this.Close();
 }
        private void btnClientBilling_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (clientBillingHandler == null)
                {
                    clientBillingHandler = new ClientBilling();
                }
                string fileNo = txtFileNo.Text;
                if (btnSaveClient.IsEnabled == true)
                {
                    var result = MessageBox.Show("Do you want to exit without saving current changes?", "Client Information", MessageBoxButton.YesNoCancel);
                    if (result == MessageBoxResult.Yes)
                    {
                        ShowClientBilling();
                    }
                }
                else
                {
                    ShowClientBilling();
                }

            }
            catch (Exception ex)
            {
                Helper.LogException(ex);
            }
        }