Example #1
0
 private void btnClientInformation_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         clientInfoHandler = new ClientInformation();
         clientInfoHandler.HomePageHandler = this;
         clientInfoHandler.Show();
     }
     catch (Exception ex)
     {
         Helper.LogException(ex);
     }
 }
 private void btnClientInformation_Click(object sender, RoutedEventArgs e)
 {
     if (clientInfoHandler == null)
     {
         clientInfoHandler = new ClientInformation();
     }
     if (clientInfoHandler.WindowState == System.Windows.WindowState.Minimized)
     {
         clientInfoHandler.WindowState = System.Windows.WindowState.Maximized;
         clientInfoHandler.Activate();
     }
     clientInfoHandler.Show();
     this.Close();
 }
        private void btnClientInformation_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (clientInfoHandler == null)
                {
                    clientInfoHandler = new ClientInformation();
                }
                clientInfoHandler.SelectedFileNumber = txtFileNo.Text;

                if (clientInfoHandler.WindowState == System.Windows.WindowState.Minimized)
                {
                    clientInfoHandler.WindowState = System.Windows.WindowState.Maximized;
                    clientInfoHandler.Activate();
                }
                clientInfoHandler.Show();
                this.Close();
            }
            catch (Exception ex)
            {
                Helper.LogException(ex);
            }
        }