Exemplo n.º 1
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example (The string parameter, is what the plugin itself will show up as in the GREET toolbar)
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 3");
            ex.Click += (s, e) =>
            {
                Form1 form = new Form1();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;
            return true;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example
            ToolStripMenuItem ex = new ToolStripMenuItem("Generate Test Data");

            ex.Click += (s, e) =>
            {
                Run();
            };
            this.items[0] = ex;

            return(true);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 1");
            ex.Click += (s, e) =>
            {
                ResultsSelectionForm form = new ResultsSelectionForm();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;

            return true;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ParametersExample.controler = controler;

            //init menu items collection for this example
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 2");
            ex.Click += (s, e) =>
            {
                ParameterExplorer form = new ParameterExplorer();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;

            return true;
        }
Exemplo n.º 5
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example (The string parameter, is what the plugin itself will show up as in the GREET toolbar)
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 3");

            ex.Click += (s, e) =>
            {
                Form1 form = new Form1();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;
            return(true);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 1");

            ex.Click += (s, e) =>
            {
                ResultsSelectionForm form = new ResultsSelectionForm();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;

            return(true);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        //This is where the plugin actually gets called into GREET, so you make things that you can call here and they will show up
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example (The text here is what will come up in the GREET model itself)
            ToolStripMenuItem read = new ToolStripMenuItem("TEAMS");

            read.Click += (s, e) =>
            {
                //generates and displays the splashpage form when the plugin is opened.
                SplashPage te = new SplashPage();
                te.Show();
            };
            this.items[0] = read;

            return(true);
        }
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        //This is where the plugin actually gets called into GREET, so you make things that you can call here and they will show up
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ResultsAccess.controler = controler;

            //init menu items collection for this example (The text here is what will come up in the GREET model itself)
            ToolStripMenuItem read = new ToolStripMenuItem("TEAMS");
            
            read.Click += (s, e) =>
            {
                //generates and displays the splashpage form when the plugin is opened.
                SplashPage te = new SplashPage();
                te.Show();
            };
            this.items[0] = read;

            return true;
        }
Exemplo n.º 9
0
        /// <summary>
        /// Initialize the plugin, called once after the DLL is loaded into GREET
        /// </summary>
        /// <param name="controler"></param>
        /// <returns></returns>
        public override bool InitializePlugin(IGREETController controler)
        {
            //init the controller that is used to send action and data requests to GREET
            ParametersExample.controler = controler;

            //init menu items collection for this example
            ToolStripMenuItem ex = new ToolStripMenuItem("Example 2");

            ex.Click += (s, e) =>
            {
                ParameterExplorer form = new ParameterExplorer();
                form.InitializeControls();
                form.Show();
            };
            this.items[0] = ex;

            return(true);
        }
Exemplo n.º 10
0
 public override bool InitializePlugin(IGREETController controler)
 {
     _controler = controler;
     return(true);
 }
Exemplo n.º 11
0
 public override bool InitializePlugin(IGREETController controler)
 {
     _controler = controler;
     return true;
 }
Exemplo n.º 12
0
 public DataHelperForm(IDataHelper dataHelper, IGREETController controller)
     : this()
 {
     _dataHelper = dataHelper;
     _controller = controller;
 }
Exemplo n.º 13
0
 public DataHelperForm(IDataHelper dataHelper, IGREETController controller) : this()
 {
     _dataHelper = dataHelper;
     _controller = controller;
 }