Ejemplo n.º 1
0
        /// <summary>
        /// Called if a change in the options "Extend file name by" occured.
        /// </summary>
        public void EhChange_ExtendFileNameOptions()
        {
            ExtendFileNameWith oldValue = m_ExtendFileNameWith;

            if (_view.ExtendFileName_ContinuousNumber)
            {
                m_ExtendFileNameWith = ExtendFileNameWith.ContinuousNumber;
            }
            else if (_view.ExtendFileName_ByColumn)
            {
                m_ExtendFileNameWith = ExtendFileNameWith.Column;
            }

            if (m_ExtendFileNameWith != oldValue)
            {
                if (m_ExtendFileNameWith == ExtendFileNameWith.Column)
                {
                    // now set the contents of the combo box
                    FillExtFileNameColumnBox();
                }
                else
                {
                    _view.EnableExtFileNameColumnBox = false;
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the elements of the dialog.
        /// </summary>
        public void InitializeElements()
        {
            if (null != _view)
            {
                m_CreateSpectrumFrom        = CreateSpectrumFrom.Row;
                _view.CreateSpectrumFromRow = true;

                m_XValuesFrom = XValuesFrom.ContinuousNumber;
                _view.XValuesContinuousNumber = true;

                m_ExtendFileNameWith = ExtendFileNameWith.ContinuousNumber;
                _view.ExtendFileName_ContinuousNumber = true;
                _view.BasicFileName = "";
            }
        }
		/// <summary>
		/// Called if a change in the options "Extend file name by" occured.
		/// </summary>
		public void EhChange_ExtendFileNameOptions()
		{
			ExtendFileNameWith oldValue = this.m_ExtendFileNameWith;

			if (_view.ExtendFileName_ContinuousNumber)
				this.m_ExtendFileNameWith = ExtendFileNameWith.ContinuousNumber;
			else if (_view.ExtendFileName_ByColumn)
				this.m_ExtendFileNameWith = ExtendFileNameWith.Column;

			if (this.m_ExtendFileNameWith != oldValue)
			{
				if (this.m_ExtendFileNameWith == ExtendFileNameWith.Column)
				{
					// now set the contents of the combo box
					this.FillExtFileNameColumnBox();
				}
				else
				{
					_view.EnableExtFileNameColumnBox = false;
				}
			}
		}
		/// <summary>
		/// Initialize the elements of the dialog.
		/// </summary>
		public void InitializeElements()
		{
			if (null != _view)
			{
				this.m_CreateSpectrumFrom = CreateSpectrumFrom.Row;
				_view.CreateSpectrumFromRow = true;

				this.m_XValuesFrom = XValuesFrom.ContinuousNumber;
				_view.XValuesContinuousNumber = true;

				this.m_ExtendFileNameWith = ExtendFileNameWith.ContinuousNumber;
				_view.ExtendFileName_ContinuousNumber = true;
				_view.BasicFileName = "";
			}
		}