If you'd like, I can take a look at the code and make some recommendations? After testing today, I noticed there are no ControlCommands published for the cheat sheet. It would be easier to use if it showed on the Cheat Sheet the available commands.
Also I received an error about a series1 not existing - and it was in the form of a messagebox - even though the series1 is already in the example posted.
Do you want me to take a look, modify and report the source here for you with my recommendations?
Give it a try and see if you like it - publish if you do
Changes:
[feature]
changed the chart object to dock with the form so it can be resized
changed the form to be resiable so users can resize it
removed decleration of MyForm since it is the form
moved settings the chart series data into a delegate that only calls if invoke is required
removed the private variables from being static - since there may be more than one instance of this control
removed class scope variables for chart series since they are only referenced once
added constants for the series name so the string will always be the same throughout the code
removed reference to "Find the chart1" since chart1 is always available because it's in the form
renamed the barchart on the form to BarChart
added conditions in the SendCommand for each series (windowsCommand) with messagebox displayed if windowcommand is incorrect. normally this would use the .EQUALS with a stringcomparison type of case insensitive comparison - but since the chart series is case sensitive, i added a message if the series wasn't found to check the case sensitivity
the messagebox for errors displays the name of the control in the error message for userfriendliness
added the cheatsheet to return each series option that can be specified
changed the output build folder to be c:\users.. instead of c:\public.. because my machine puts the public folder in the c:\users
added the ability to rename the title of the chart
@DJ Wow! I wish you worked at my day job... well kinda not then there wouldn't be a EZ Robot. I've been doing almost exclusively web programming for the last 6 years I seriously need a refresher on winforms dev.
@JustinRatliff I think in my mad rush, with a head cold, to get the plug in published I somehow uploaded an early version .dll and not the current one. The zip plug in upload requirement combined with windows send to compressed folder was causing me grief. Also, initially I thought the whole solution had to be uploaded for the plugin project section. I thought for some reason EZrobot was housing the project as a repository of code as well. I now believe it is just the .dll and xml for the plug in.
I'm guessing Github is the intended location for the plug in source code/project.
Ah, that make sense why the variables and find control was used. I took those notes while changing in case there was interest in what changes I was making. Didn't want to change your program without telling you, that wouldn't benefit either of us.
If you have any questions about the things I changed, ask away!
Could you explain a little more of just what this does, please.
Excellent, I'll take a look when I get home!
Herr ball, you can find more info here: https://synthiam.com/redirect/legacy?table=plugin&id=36
I'm not sure the plugin is right. It shows Cats and Dogs and does not change value of when the example script changes the variables.
Hmm. Will look into it asap. Thanks for letting me know.
If you'd like, I can take a look at the code and make some recommendations? After testing today, I noticed there are no ControlCommands published for the cheat sheet. It would be easier to use if it showed on the Cheat Sheet the available commands.
Also I received an error about a series1 not existing - and it was in the form of a messagebox - even though the series1 is already in the example posted.
Do you want me to take a look, modify and report the source here for you with my recommendations?
Here you go - I tweaked your project and made some changes, including new functionality to Add/Remove/Rename series.
Source Code: EZChart-src.zip
Give it a try and see if you like it - publish if you do
Changes: [feature] changed the chart object to dock with the form so it can be resized
changed the form to be resiable so users can resize it
removed decleration of MyForm since it is the form
moved settings the chart series data into a delegate that only calls if invoke is required
removed the private variables from being static - since there may be more than one instance of this control
removed class scope variables for chart series since they are only referenced once
added constants for the series name so the string will always be the same throughout the code
removed reference to "Find the chart1" since chart1 is always available because it's in the form
renamed the barchart on the form to BarChart
added conditions in the SendCommand for each series (windowsCommand) with messagebox displayed if windowcommand is incorrect. normally this would use the .EQUALS with a stringcomparison type of case insensitive comparison - but since the chart series is case sensitive, i added a message if the series wasn't found to check the case sensitivity
the messagebox for errors displays the name of the control in the error message for userfriendliness
added the cheatsheet to return each series option that can be specified
changed the output build folder to be c:\users.. instead of c:\public.. because my machine puts the public folder in the c:\users
added the ability to rename the title of the chart
added ability to add new series
added ability to remove series
added ability to rename series
added a bunch of syntax checking [/feature]
@DJ Wow! I wish you worked at my day job... well kinda not then there wouldn't be a EZ Robot. I've been doing almost exclusively web programming for the last 6 years I seriously need a refresher on winforms dev.
@JustinRatliff I think in my mad rush, with a head cold, to get the plug in published I somehow uploaded an early version .dll and not the current one. The zip plug in upload requirement combined with windows send to compressed folder was causing me grief. Also, initially I thought the whole solution had to be uploaded for the plugin project section. I thought for some reason EZrobot was housing the project as a repository of code as well. I now believe it is just the .dll and xml for the plug in.
I'm guessing Github is the intended location for the plug in source code/project.
Ah, that make sense why the variables and find control was used. I took those notes while changing in case there was interest in what changes I was making. Didn't want to change your program without telling you, that wouldn't benefit either of us
.
If you have any questions about the things I changed, ask away!