//get asset name form list
        protected void GetAssetName()
        {
            var item = AssList.FirstOrDefault(i => i.ID == AssID);

            if (item != null)
            {
                AssitName = item.Text;
            }
            else
            {
                AssitName = "Not Exist";
            }
        }
Example #2
0
        }// Clear assembly settings and dispose of plugin

        private void LoadAssembly(object sender, EventArgs e)
        {
            Assembly assembly = Assembly.Load(AssList.FirstOrDefault(x => x.Name == ((ToolStripMenuItem)sender).Name));

            ClearAssembly();
            label3.Visible = false;
            label8.Visible = false;
            ButtonStates(true);

            Instance = new MyReflection(pluginBG, assembly).Instance;

            Instance.ToolProperties.ForceUniqueEntryColors.SetValue(Instance.ToolPropertiesObj, true);
            Instance.ToolProperties.ArrowPosition.SetValue(Instance.ToolPropertiesObj, (int)ArrowLocation.Left);
            Instance.ToolProperties.TextToShow.SetValue(Instance.ToolPropertiesObj, (int)TextType.Name);
            Instance.ToolProperties.AnimationSpeed.SetValue(Instance.ToolPropertiesObj, 0.08f);
            Instance.ToolProperties.AnimationSpeedBoost.SetValue(Instance.ToolPropertiesObj, checkBox2.Checked);
            Instance.Properties.AllowExceptions.SetValue(Instance.iRandomInstance, false);

            UpdateEntryList();

            Instance.Methods.Draw.Invoke(Instance.iRandomInstance, new object[] { 15, 6, 150 });
        }// Load Assembly and initial settings.