コード例 #1
0
ファイル: Ribbon1.cs プロジェクト: XHerbert/bim_excel_plugin
        private void UpdateReferenceComponents(object param)
        {
            ReferencePipeline pipeline = param as ReferencePipeline;

            //弹出新窗体,查询指定的系统下构件集合
            DataSource      dataSource = new DataSource();
            MySqlConnection connection = (MySqlConnection)dataSource.GetCurrentConnection("mysql");
            StringBuilder   builder    = new StringBuilder();
            int             count      = 0;

            using (connection)
            {
                connection.Open();
                MySqlCommand    cmd    = new MySqlCommand(string.Format(ExcuteSql.SYSTEM_FILTER, pipeline.filterSystem, pipeline.fileId), connection);
                MySqlDataReader reader = cmd.ExecuteReader();
                builder.Append("[");
                while (reader.Read())
                {
                    object o = reader[0];
                    builder.Append("\"");
                    builder.Append(o.ToString()).Append("\",");
                    count++;
                }
                builder.Append("]");
                builder.Remove(builder.Length - 2, 1);
            }
            SendMsgEvent(this, new CustonEventArgs()
            {
                Text = builder.ToString(), ObjectId = pipeline.objectId, Count = count
            });
        }
コード例 #2
0
 public StatelessOpAnonymousInnerClassHelper2(ReferencePipeline <P_IN, P_OUT> outerInstance, java.util.stream.ReferencePipeline this, Predicate <T1> predicate) : base(this, StreamShape.REFERENCE, StreamOpFlag.NOT_SIZED)
コード例 #3
0
 public StatelessOpAnonymousInnerClassHelper(ReferencePipeline <P_IN, P_OUT> outerInstance, java.util.stream.ReferencePipeline this) : base(this, StreamShape.REFERENCE, StreamOpFlag.NOT_ORDERED)
 {
     this.outerInstance = outerInstance;
 }