コード例 #1
0
ファイル: IdealistPlugin.cs プロジェクト: thoys/radegast
        public void StartPlugin(RadegastInstance inst)
        {
            return;

            Instance = inst;
            XmlConfigurator.Configure();


            ArgvConfigSource configSource = new ArgvConfigSource(new string[0]);

            configSource.Alias.AddAlias("On", true);
            configSource.Alias.AddAlias("Off", false);
            configSource.Alias.AddAlias("True", true);
            configSource.Alias.AddAlias("False", false);

            idealistUserControl = new IdealistUserControl();
            IV = new RadegastViewer(inst, configSource, idealistUserControl);
            IV.Startup();
            inst.TabConsole.AddTab("Idealist", "Idealist", idealistUserControl);
            //while (true)
            //{
            //    if (MainConsole.Instance != null)
            //    {
            //        MainConsole.Instance.Prompt();
            //        Thread.Sleep(100);
            //    }
            //}
        }
コード例 #2
0
ファイル: IdealistPlugin.cs プロジェクト: Booser/radegast
        public void StartPlugin(RadegastInstance inst)
        {
            return;
            Instance = inst;
            XmlConfigurator.Configure();

            ArgvConfigSource configSource = new ArgvConfigSource(new string[0]);
            configSource.Alias.AddAlias("On", true);
            configSource.Alias.AddAlias("Off", false);
            configSource.Alias.AddAlias("True", true);
            configSource.Alias.AddAlias("False", false);

            idealistUserControl = new IdealistUserControl();
            IV = new RadegastViewer(inst, configSource, idealistUserControl);
            IV.Startup();
            inst.TabConsole.AddTab("Idealist", "Idealist", idealistUserControl);
            //while (true)
            //{
            //    if (MainConsole.Instance != null)
            //    {
            //        MainConsole.Instance.Prompt();
            //        Thread.Sleep(100);
            //    }
            //}
        }
コード例 #3
0
ファイル: Viewer.cs プロジェクト: Booser/radegast
        public RadegastViewer(RadegastInstance inst, IConfigSource iconfig, IdealistUserControl control):base(iconfig)
        
        {
            RInstance = inst;
            m_configSource = new IdealistViewerConfigSource();
            m_configSource.Source = new IniConfigSource();
            ViewerControl = control;


            string iniconfig = Path.Combine(Util.configDir(), "IdealistViewer.ini");
            if (File.Exists(iniconfig))
            {
                m_configSource.Source.Merge(new IniConfigSource(iniconfig));
            }
            m_configSource.Source.Merge(iconfig);
            StartupTime = DateTime.UtcNow;
        }