public int Start_Load(int Slot_ID, int Slot_Index) { if (StaticRes.Global.IsOnProgress) { loaderror(et); return(0); } else { StaticRes.Global.IsOnProgress = true; } try { Params x = new Params(); x.Slot_ID = Slot_ID; x.Slot_Index = Slot_Index; LoadError += new loaderrorEventHandler(Load_LoadError); LoadComplete += new LoadCompleteEventHandler(Load_LoadComplete); Step += new StepEventHandler(Load_Step); this.Thread_Load = new Thread(new ParameterizedThreadStart(Loading)); this.Thread_Load.Start(x); } catch { loaderror(et); } return(10); }
public void AddLoadCompleteEventListener(LoadCompleteEventHandler handler) { LoadComplete += handler; }