private void Window_Loaded(object sender, RoutedEventArgs e) { RegistryKey regKey1 = Registry.CurrentUser; regKey1 = regKey1.CreateSubKey(@"Control Panel\International"); regKey1.SetValue("sLongDate", "dd-MM-yy"); regKey1.SetValue("sShortDate", "dd-MM-yy"); string filepath = System.Reflection.Assembly.GetExecutingAssembly().Location.ToString(); string processtostart1 = filepath.Substring(0, filepath.Length - 17) + "Patternfinder.exe"; System.Diagnostics.Process.Start(processtostart1); try { if (!Directory.Exists("C:\\myshubhalabha")) { Directory.CreateDirectory("C:\\myshubhalabha"); } string processtostart = filepath.Substring(0, filepath.Length - 17) + "Notice.txt"; File.Copy(processtostart, "C:\\myshubhalabha\\Notice.txt", true); //Shubhalabha123.Regidtartion r = new Shubhalabha123.Regidtartion(); //stackcontainer.Children.Add(r); Shubhascanner.Welcome w = new Welcome(); stackcontainer.Children.Add(w); } catch (Exception ex) { } }
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; } }