Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VarImportCommand"/> class.
        /// </summary>
        /// <param name="txtVarName">Name of the TXT variable.</param>
        /// <param name="currentVarValues">The current variable values.</param>
        /// <param name="fileName">Name of the file.</param>
        /// <param name="dgvHandler">The DGV handler.</param>
        public VarImportCommand(
            TextBox txtVarName,
            string currentVarValues,
            string fileName,
            DgvHandler dgvHandler)
        {
            this.txtVarName                      = txtVarName;
            this.currentVarValues                = currentVarValues;
            this.importExportManager             = new ImportExportManager();
            this.importExportManager.EnvVariable = new EnvironmentVariable();
            this.importExportManager.Load(fileName);
            this.dgvHandler = dgvHandler;

            this.GetValuesToImport();
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvModifyValueCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="commandName">Name of the command.</param>
 public DgvModifyValueCommand(DgvHandler dgvHandler, string commandName)
     : base(dgvHandler, commandName)
 {
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvEditCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="row">The data grid view row.</param>
 public DgvEditCommand(DgvHandler dgvHandler, DataGridViewRow row)
     : base(dgvHandler, DgvCommandName)
 {
     this.CurrentRow = this.CloneRow(row);
     this.CurrentRowIndex = row.Index;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvEditCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvEditCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvDeleteCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="row">The data grid view row.</param>
 public DgvDeleteCommand(DgvHandler dgvHandler, DataGridViewRow row)
     : base(dgvHandler, DgvCommandName)
 {
     this.row             = row;
     this.CurrentRowIndex = row.Index;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvDeleteCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvDeleteCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvDeleteCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="row">The data grid view row.</param>
 public DgvDeleteCommand(DgvHandler dgvHandler, DataGridViewRow row)
     : base(dgvHandler, DgvCommandName)
 {
     this.row = row;
     this.CurrentRowIndex = row.Index;
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvDeleteCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvDeleteCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvBrowseFolderCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvBrowseFolderCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvBrowseFolderCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="row">The Data Grid View row.</param>
 public DgvBrowseFolderCommand(DgvHandler dgvHandler, DataGridViewRow row)
     : base(dgvHandler, DgvCommandName)
 {
     this.CurrentRow      = this.CloneRow(row);
     this.CurrentRowIndex = row.Index;
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvBrowseFolderCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvBrowseFolderCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VarImportCommand"/> class.
        /// </summary>
        /// <param name="txtVarName">Name of the TXT variable.</param>
        /// <param name="currentVarValues">The current variable values.</param>
        /// <param name="fileName">Name of the file.</param>
        /// <param name="dgvHandler">The DGV handler.</param>
        public VarImportCommand(
            TextBox txtVarName, 
            string currentVarValues,
            string fileName, 
            DgvHandler dgvHandler)
        {
            this.txtVarName = txtVarName;
            this.currentVarValues = currentVarValues;
            this.importExportManager = new ImportExportManager();
            this.importExportManager.EnvVariable = new EnvironmentVariable();
            this.importExportManager.Load(fileName);
            this.dgvHandler = dgvHandler;

            this.GetValuesToImport();
        }
Пример #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvEditCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 public DgvEditCommand(DgvHandler dgvHandler)
     : base(dgvHandler, DgvCommandName)
 {
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DgvModifyValueCommand"/> class.
 /// </summary>
 /// <param name="dgvHandler">The DGV handler.</param>
 /// <param name="commandName">Name of the command.</param>
 public DgvModifyValueCommand(DgvHandler dgvHandler, string commandName)
     : base(dgvHandler, commandName)
 {
 }