Exemple #1
0
 private void dataGridView1_DoubleClick(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow != null && dataGridView1.CurrentRow.Index < plugins.Count())
     {
         try
         {
             SimpleReflection sr   = new SimpleReflection();
             Form             form = sr.Do <Form>(plugins[dataGridView1.CurrentRow.Index], "LegoRun", "Run", null, null);
             form.Show();
         }
         catch { }
     }
 }
Exemple #2
0
        void DoTest()
        {
            AppDomain appDomain = DomainTool.CreateDomain(
                "SimpleReflectionDomain",
                @"I:\CoCo\GitHub\ShopSystem\ShopSystem\Waka.Lego\bin\Debug\Bin\Plugins\Waka.Lego.FileTool");

            SimpleReflection sr   = DomainTool.CreateInstance <SimpleReflection>(appDomain);
            Form             form = sr.Do <Form>(
                R.AppPath + @"Plugins\Waka.Lego.FileTool\Waka.Lego.FileTool.dll",
                "FileController",
                "FileList",
                new object[] { 100 },
                new object[] { R.AppPath + @"Plugins\Waka.Lego.FileTool" });

            form.Show();
        }
Exemple #3
0
 static void Main(string[] args)
 {
     SimpleReflection.Test();
     Console.ReadLine();
 }