예제 #1
0
        public Main()
        {
            InitializeComponent();
            // Radi pretplatu na event, event vraca ukupan broj zapisa za sve tipove LogType, npr. koliko ERRORA je zabiljezeno
            Log.OnLogTypeNumberChange += new Log.delLogTypeInfo(Log_OnLogTypeNumberChange);
            // Zapisuje osnovne podatke o aplikaciji
            Log.StandardRunInfo();
            Log.Write(Static.conConnectionString, this, "Main", Log.LogType.INFO);

            // make instance of ToolsWindowsMenager
            toolsWindowsMenager = new ToolsWindowsMenager();
            toolsWindowsMenager.AddPanel(pToolsWindowsHolder);

            // stara progerss classa
            JobProgress isStatus = new JobProgress(this);
            isStatus.StatusChange += new JobProgress.delStatusChange(isStatus_StatusChange);

            JobProgress jobProgress = new JobProgress(this);

            // Novi module menager, sadrzi listu svijh UberTools modula
            moduleManager = new ModuleManager();
            moduleManager.OnActivateModule += new ModuleManager.delModuleObject(moduleMenager_OnActivateModule);

            // Ucitaj sve module u ModuleMenager, i pokazi ih na ToolStripMenu listi
            GetPluginsList(Application.StartupPath + "\\plugins");

            //GetAssemblies();
            //AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            //Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
            //throw new Exception("Kita");
        }
예제 #2
0
 public ModuleObject(string path, string name, ModuleManager.delModuleObject OnActivateModule)
 {
     this.path = path;
     this.name = name;
     this.active = false;
     this.OnActivateModule = OnActivateModule;
 }