private void Config(string s, ref string istr)
        {
            var caller = mgr.FindCaller(s);

            if (caller != null)
            {
                if (caller.HasConfig())
                {
                    string res = caller.Config(istr, true);
                    richTextBox1.AppendText("Config ret:" + res + Environment.NewLine);
                    istr = res;
                }
                else
                {
                    richTextBox1.AppendText("No config" + Environment.NewLine);
                }
            }
        }
예제 #2
0
        private void buttonConfig_Click(object sender, EventArgs e)
        {
            var caller = mgr.FindCaller("CSharpDLL");

            if (caller != null)
            {
                string[] config = caller.GetConfig();
                if (config != null)
                {
                    foreach (var x in config)
                    {
                        richTextBox1.AppendText("C:" + x + Environment.NewLine);
                    }
                }
                else
                {
                    richTextBox1.AppendText("No config" + Environment.NewLine);
                }
            }
        }