Ignore:
Timestamp:
May 29, 2020, 10:45:52 PM (4 years ago)
Author:
coas-nagasima
Message:

Visual Studio 2019 と Bridge.NET でビルドできるよう更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/webapp/webmrbc/Blocks/Procedures.cs

    r321 r425  
    2828using Bridge;
    2929using Bridge.Html5;
    30 using Bridge.Text.RegularExpressions;
    3130
    3231namespace WebMrbc
     
    504503                public string validator_(string newVar)
    505504                {
    506                         newVar = newVar.Replace(new Regex("[\\s\\xa0]+", "g"), " ").Replace(new Regex("^ | $", "g"), "");
     505                        newVar = newVar.Replace(new RegExp("[\\s\\xa0]+", "g"), " ").Replace(new RegExp("^ | $", "g"), "");
    507506                        return newVar;
    508507                }
     
    630629                                        this.quarkConnections_[this.quarkIds_[i]] = connection;
    631630                                        if (mutatorOpen && connection != null &&
    632                                                 paramIds.IndexOf(this.quarkIds_[i]) == -1) {
     631                                                Array.IndexOf(paramIds, this.quarkIds_[i]) == -1) {
    633632                                                // This connection should no longer be attached to this block.
    634633                                                connection.disconnect();
     
    638637                        }
    639638                        // Rebuild the block's arguments.
    640                         this.arguments_ = (string[])(new string[0]).Concat(paramNames);
     639                        this.arguments_ = (new string[0]).Concat(paramNames).ToArray();
    641640                        this.updateShape_();
    642641                        this.quarkIds_ = paramIds;
     
    781780                        }
    782781                        if (e.type == Events.CREATE &&
    783                                 ((Create)e).ids.IndexOf(this.id) != -1) {
     782                                Array.IndexOf(((Create)e).ids, this.id) != -1) {
    784783                                // Look for the case where a procedure call was created (usually through
    785784                                // paste) and there is no matching definition.  In this case, create
     
    988987                        var block = (Block)this;
    989988                        do {
    990                                 if (this.FUNCTION_TYPES.IndexOf(block.type) != -1) {
     989                                if (Array.IndexOf(this.FUNCTION_TYPES, block.type) != -1) {
    991990                                        legal = true;
    992991                                        break;
Note: See TracChangeset for help on using the changeset viewer.