Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                MyData = new LocalData.LocalData();
            }
            catch (Exception ex)
            {
                int k = 0;
            }

            Application.Run(new Form1());
        }
Example #2
0
        static void Main(string[] args)
        {
            //string resource1 = "DesktopPet.dll.NAudio.dll";
            //EmbeddedAssembly.Load(resource1, "NAudio.dll");

            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            Application.EnableVisualStyles();

            Application.SetCompatibleTextRenderingDefault(false);

            MyData = new LocalData.LocalData();

            // Show the system tray icon.
            using (ProcessIcon pi = new ProcessIcon())
            {
                pi.Display();

                Mainthread = new StartUp(pi);

                // Make sure the application runs!
                Application.Run();
            }
        }
Example #3
0
 public GitHubClass()
 {
     MyData = new LocalData.LocalData();
 }
Example #4
0
 /// <summary>
 /// Initialisiert das Singletonanwendungsobjekt. Dies ist die erste Zeile von erstelltem Code
 /// und daher das logische Äquivalent von main() bzw. WinMain().
 /// </summary>
 public App()
 {
     this.InitializeComponent();
     this.Suspending += OnSuspending;
     MyData           = new LocalData.LocalData(Windows.Storage.ApplicationData.Current.LocalFolder.Path, Environment.CurrentDirectory + "\\DesktopPet\\eSheep.exe");
 }