Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            AppDomain.CurrentDomain.AssemblyResolve += LoadEmbedAssembly;
            DeleteFiles();

            Instence = this;
            EventsManager.DatasDownloaded += OnDatasDownloaded;
            SaveInServer.Intitialize();
            LoadDatas();

            string[] args = Environment.GetCommandLineArgs();
            if (args.Length <= 1)
            {//Normal mode
                StartNormalMode();
            }
            else
            {
                switch (args[1])
                {
                case NOTIFAPPARG:
                    Mode = AppMode.NotificationMode;
                    NotificationsManager.Start_HomeworkNotification();
                    if (Agenda_Virtuel.Properties.Settings.Default.RunPluginNotification)
                    {
                        Plugin.PluginManager.Open();
                    }
                    break;

                default:
                    StartNormalMode();
                    break;
                }
            }
        }