/// <summary>
        /// Method for when "search for invoice" is clicked from the menu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void searchforinvoice_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Search.wndSearch wndsearch = new Search.wndSearch();
                this.Hide();
                wndsearch.ShowDialog();
                // get the invoice number from search window;
                this.Show();
                bSearchedForInvoice = true;

                if (bSearchedForInvoice == true)
                {
                    rbtnModifyInvoice.IsEnabled = true;
                    rbtnDeleteInvoice.IsEnabled = true;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }
Esempio n. 2
0
 private void searchforinvoice_Click(object sender, RoutedEventArgs e)
 {
     Search.wndSearch wndsearch = new Search.wndSearch();
     this.Hide();
     wndsearch.ShowDialog();
 }