static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { MyData = new LocalData.LocalData(); } catch (Exception ex) { int k = 0; } Application.Run(new Form1()); }
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(); } }
public GitHubClass() { MyData = new LocalData.LocalData(); }
/// <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"); }