Exemplo n.º 1
0
 /// <summary>
 /// 源头的改变
 /// </summary>
 void txtSource_TextChanged(object sender, System.EventArgs e)
 {
     MongodCommand.Source = txtSource.Text;
     if (MongodCommand != null)
     {
         OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 服务器类型变更
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MongodType_CheckedChanged(object sender, EventArgs e)
 {
     MongodCommand.IsMaster = radMaster.Checked;
     MongodCommand.IsSlave  = radSlave.Checked;
     OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Log追加模式
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void chkIsAppend_CheckedChanged(object sender, EventArgs e)
 {
     MongodCommand.Islogappend = chkIsAppend.Checked;
     OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// LOG等级
 /// </summary>
 /// <param name="logLv"></param>
 void ctllogLvT_LoglvChanged(MongodbDosCommand.MongologLevel logLv)
 {
     MongodCommand.LogLV = logLv;
     OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 路径
 /// </summary>
 /// <param name="FilePath"></param>
 void ctlFilePickerT_PathChanged(String FilePath)
 {
     MongodCommand.LogPath = FilePath;
     OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 端口号变更
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void numPort_ValueChanged(object sender, EventArgs e)
 {
     MongodCommand.Port = (int)numPort.Value;
     OnCommandChange(new TextChangeEventArgs(String.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 7
0
 /// <summary>
 ///     DB路径
 /// </summary>
 /// <param name="filePath"></param>
 private void ctlFilePickerDBPath_PathChanged(string filePath)
 {
     MongodCommand.DbPath = filePath;
     OnCommandChange(new TextChangeEventArgs(string.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }
Exemplo n.º 8
0
 /// <summary>
 ///     安全模式变更
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void chkAuth_CheckedChanged(object sender, EventArgs e)
 {
     MongodCommand.IsAuth = chkAuth.Checked;
     OnCommandChange(new TextChangeEventArgs(string.Empty, MongodbDosCommand.GetMongodCommandLine(MongodCommand)));
 }