コード例 #1
0
 /// <summary>
 /// 保存finalize
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdForSavefinalize_Click(object sender, EventArgs e)
 {
     if (this.txtfinalizeJs.Text != String.Empty)
     {
         String strJsName = MyMessageBox.ShowInput("Input Javascript Name:", "Save Javascript");
         MongoDBHelper.CreateNewJavascript(strJsName, txtfinalizeJs.Text);
     }
 }
コード例 #2
0
 /// <summary>
 /// Save Aggregate Pipeline
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdSaveAggregatePipeline_Click(object sender, EventArgs e)
 {
     if (this._AggrArray.Count != 0)
     {
         String strJsName = MyMessageBox.ShowInput("pls Input Aggregate Pipeline Name :", "Save Aggregate Pipeline");
         MongoDBHelper.CreateNewJavascript(strJsName, new BsonDocument("Pipeline:", _AggrArray).ToString());
     }
 }
コード例 #3
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     if (txtContext.Text != String.Empty)
     {
         String strJsName = MyMessageBox.ShowInput("pls Input Javascript Name:[Save at system.js]", "Save Javascript");
         MongoDBHelper.CreateNewJavascript(strJsName, txtContext.Text);
     }
 }
コード例 #4
0
 /// <summary>
 /// 保存ReduceJs
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdSaveReduceJs_Click(object sender, EventArgs e)
 {
     if (this.txtReduceJs.Text != String.Empty)
     {
         String strJsName = MyMessageBox.ShowInput("pls Input Javascript Name", "Save Javascript");
         MongoDBHelper.CreateNewJavascript(strJsName, txtReduceJs.Text);
     }
 }
コード例 #5
0
 private void cmdSaveDocument_Click(object sender, EventArgs e)
 {
     if (txtDocument.Text != string.Empty)
     {
         String strJsName = MyMessageBox.ShowInput("pls Input Aggregate Name:", "Save Aggregate");
         MongoDBHelper.CreateNewJavascript(strJsName, txtDocument.Text);
     }
 }