Exemplo n.º 1
0
 public static DLLitem newInstance(string titler, string descr, Image iconr, DLLObject dllObjectr)
 {
     Console.WriteLine("DLL new Instance");
     instances.Add(new DLLitem(titler, descr, iconr, dllObjectr));
     instancesCreated++;
     return(instances[instancesCreated - 1]);
 }
Exemplo n.º 2
0
 private void StopAudio()
 {
     notifyIcon1.Visible = false;
     notifyIcon1.Dispose();
     AREntity.removeAllInstances();
     DLLitem.removeAllInstances();
     AudioReactor.removeAllInstances();
     DLLObject.removeAllInstances();
 }
Exemplo n.º 3
0
 private DLLitem(string titler, string descr, Image iconr, DLLObject dllObjectr)
 {
     _instanceID = instancesCreated;
     InitializeComponent();
     Console.WriteLine("Criando DLLItem do " + titler);
     this._title       = titler;
     this._desc        = descr;
     this._icon        = iconr;
     this._dll         = dllObjectr;
     titleLabel.Text   = titler;
     descLabel.Text    = descr;
     pictureBox1.Image = iconr;
 }
Exemplo n.º 4
0
 public static void removeInstance(DLLObject rf)
 {
     try {
         try {
             rf.dllInstance.dispose();
         } catch (Exception e) {
             Console.WriteLine("Random error trying to stop dll function");
         }
         DLLObject.dll_instances.Remove(rf);
         Console.WriteLine("DLLObject Instance " + instancesCreated + " Removed");
         DLLObject.instancesCreated--;
     }catch (Exception e) {
         Console.WriteLine("Fuckup removing instance " + e);
     }
 }
Exemplo n.º 5
0
 private void createDLLInstances(object sender, bool e)
 {
     if (e == true)
     {
         Console.WriteLine("Creating instances for selected DLLs");
         int ii = 0;
         foreach (KeyValuePair <string, string> entry in dlls_detected)
         {
             if (dlls_list[ii].Checked == true)
             {
                 dllHolder.Controls.Add(DLLitem.newInstance(entry.Key, "this is " + entry.Key, null, DLLObject.newInstance(entry.Value, entry.Key)));
             }
         }
     }
     else
     {
         Console.WriteLine("Canceled");
     }
 }