Exemple #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");
        }
 public JobProgress(Form owner)
 {
     InitializeComponent();
     this.owner = owner;
     JobProgress.form = this;
     this.CreateControl();
     //this.Show(owner);
 }