示例#1
0
        /// <summary>
        ///     Dump Collection
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DumpCollectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!MongoPathCheck())
            {
                return;
            }
            var mongoDump = MongoDumpInfo.GetMongoDump(false);
            var dumpFile  = new FolderBrowserDialog();

            if (dumpFile.ShowDialog() == DialogResult.OK)
            {
                mongoDump.OutPutPath = dumpFile.SelectedPath;
            }
            var dosCommand = MongoDumpInfo.GetMongodumpCommandLine(mongoDump);

            RunCommand(dosCommand);
        }
示例#2
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void chkGZip_CheckedChanged(object sender, EventArgs e)
 {
     _mongodumpCommand.IsGZip = chkGZip.Checked;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }
示例#3
0
 /// <summary>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void numPort_ValueChanged(object sender, EventArgs e)
 {
     _mongodumpCommand.Port = (int)numPort.Value;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }
示例#4
0
 private void txtCollectionName_TextChanged(object sender, EventArgs e)
 {
     _mongodumpCommand.CollectionName = txtCollectionName.Text;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }
示例#5
0
 private void txtHostAddr_TextChanged(object sender, EventArgs e)
 {
     _mongodumpCommand.HostAddr = txtHostAddr.Text;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }
示例#6
0
 private void ctllogLvT_LoglvChanged(MongodbDosCommand.MongologLevel logLv)
 {
     _mongodumpCommand.LogLv = logLv;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }
示例#7
0
 private void ctlFilePickerOutput_PathChanged(string filePath)
 {
     _mongodumpCommand.OutPutPath = filePath;
     OnCommandChange(new TextChangeEventArgs(string.Empty,
                                             MongoDumpInfo.GetMongodumpCommandLine(_mongodumpCommand)));
 }