Esempio n. 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();
        }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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();
        }
Esempio n. 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)
 {
 }
Esempio n. 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)
 {
 }