Exemple #1
0
        private void backButton_Click(object sender, RoutedEventArgs e)
        {
            cancelButton.IsEnabled = true;

            Rsult_lbl.Content = "";

            if (nextcount == 2)
            {
                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                }
                Shubhascanner.Amibrokerpath A = new Amibrokerpath();
                stackcontainer.Children.Add(A);
                nextcount--;
                nextButtonforterminal.IsEnabled = true;
                finish.IsEnabled = false;
                return;
            }
            if (nextcount == 1)
            {
                agree.Visibility    = Visibility.Visible;
                notagree.Visibility = Visibility.Visible;
                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                }
                Shubhascanner.GNUGPL G = new GNUGPL();
                stackcontainer.Children.Add(G);
                nextcount--;
                return;
            }
            if (nextcount == 0)
            {
                agree.Visibility    = Visibility.Hidden;
                notagree.Visibility = Visibility.Hidden;
                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                }
                Shubhascanner.Welcome w = new Welcome();
                stackcontainer.Children.Add(w);

                return;
            }
        }
Exemple #2
0
        private void nextButtonforterminal_Click(object sender, RoutedEventArgs e)
        {
            Rsult_lbl.Foreground = Brushes.Red;
            Rsult_lbl.Content    = "";
            if (nextcount == 0)
            {
                agree.Visibility    = Visibility.Visible;
                notagree.Visibility = Visibility.Visible;


                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                }
                Shubhascanner.GNUGPL G = new GNUGPL();
                stackcontainer.Children.Add(G);
                nextcount++;
                backButton.IsEnabled = true;


                return;
            }



            if (nextcount == 1)
            {
                if (agree.IsChecked == false)
                {
                    Rsult_lbl.Foreground = Brushes.Red;
                    Rsult_lbl.Content    = "Please accept license agreement else Click Cancel to exit. ";

                    return;
                }

                agree.Visibility    = Visibility.Hidden;
                notagree.Visibility = Visibility.Hidden;


                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                }
                Shubhascanner.Amibrokerpath A = new Amibrokerpath();
                stackcontainer.Children.Add(A);
                finish.IsEnabled                = true;
                cancelButton.IsEnabled          = false;
                nextButtonforterminal.IsEnabled = false;
                nextcount++;



                return;
            }
        }
Exemple #3
0
        private void nextButtonforterminal_Click(object sender, RoutedEventArgs e)
        {
            Rsult_lbl.Foreground = Brushes.Red;
            Rsult_lbl.Content = "";
            if (nextcount == 0)
            {
                agree.Visibility = Visibility.Visible;
                notagree.Visibility = Visibility.Visible;


                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                   
                }
                Shubhascanner.GNUGPL  G = new GNUGPL ();
                stackcontainer.Children.Add(G );
                nextcount++;
                backButton.IsEnabled = true;


                return;

            }



            if (nextcount == 1)
            {

                if (agree.IsChecked == false)
                {
                    Rsult_lbl.Foreground = Brushes.Red;
                    Rsult_lbl.Content = "Please accept license agreement else Click Cancel to exit. ";

                    return;

                }

                agree.Visibility = Visibility.Hidden;
                notagree.Visibility = Visibility.Hidden;


                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                   
                }
                Shubhascanner.Amibrokerpath A = new Amibrokerpath();
                stackcontainer.Children.Add(A );
                finish.IsEnabled = true;
                cancelButton.IsEnabled = false;
                nextButtonforterminal.IsEnabled = false;
                nextcount++;



                return;
            }

        


        }
Exemple #4
0
        private void backButton_Click(object sender, RoutedEventArgs e)
        {
            cancelButton.IsEnabled = true;

            Rsult_lbl.Content = "";

            if (nextcount == 2)
            {

                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {
                   
                }
                Shubhascanner.Amibrokerpath A = new Amibrokerpath();
                stackcontainer.Children.Add(A);
                nextcount--;
                nextButtonforterminal.IsEnabled = true;
                finish.IsEnabled = false;
                return;
            }
            if (nextcount == 1)
            {
                agree.Visibility = Visibility.Visible;
                notagree.Visibility = Visibility.Visible;
                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {

                }
                Shubhascanner.GNUGPL G = new GNUGPL();
                stackcontainer.Children.Add(G );
                nextcount--;
                return;
            }
            if (nextcount == 0)
            {
                agree.Visibility = Visibility.Hidden;
                notagree.Visibility = Visibility.Hidden;
                try
                {
                    stackcontainer.Children.RemoveAt(0);
                }
                catch (Exception ex)
                {

                }
                Shubhascanner.Welcome w = new Welcome();
                stackcontainer.Children.Add(w );
              
                return;
            }
        }