示例#1
0
        private void infoAboutRootParent()
        {
            int id   = Convert.ToInt32(iPluginCall.RunMethod("CGetTreeSelectedIDs", new object[] { }));
            var info = iPluginCall.GetDataSet("GetInfoAboutVersion", new object[] { "", "", "", id, 15 }) as IDataSet;
            /// <data>
            /// Local fields
            /// <data>
            int     version = Convert.ToInt32(info.FieldValue["_VERSION"]);
            string  state   = Convert.ToString(info.FieldValue["_STATE"]);
            string  type    = Convert.ToString(info.FieldValue["_TYPE"]);
            string  product = Convert.ToString(info.FieldValue["_PRODUCT"]);
            int     level   = 0;
            Objects newObj  = new Objects(id, version, product, type, state, level);

            arrProd.AddToArrProduct(newObj);
        }
示例#2
0
        public static void ProjectList(IPluginCall pluginCall)
        {
            object[] args    = { };
            IDataSet dataSet = pluginCall.GetDataSet("GetProjectList", args);
            var      builder = new StringBuilder();

            while (!dataSet.Eof)
            {
                builder.AppendFormat("{0}\n", dataSet.FieldValue["_PRODUCT"]);
                dataSet.Next();
            }
            MessageBox.Show(builder.ToString(), PluginCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }