Пример #1
0
        /// <summary>
        /// Displays the Dialog as modal
        /// </summary>
        /// <returns>FieldConstant</returns>
        public FieldConstant ShowDialog(FieldDataType.DataTypeEnum dataType, FieldConstant defaultConstant)
        {
            m_dataType      = dataType;
            OriginalLiteral = defaultConstant;
            setDefaultValues();
            Window dlg = new GetConstantDialogView();

            dlg.Owner       = mainWindowExport.Value;
            dlg.DataContext = this;
            dlg.ShowDialog();
            return(Literal);
        }
Пример #2
0
 /// <summary>
 /// Displays the Dialog as modal
 /// </summary>
 /// <returns>FieldConstant</returns>
 public FieldConstant ShowDialog(FieldDataType.DataTypeEnum dataType, FieldConstant defaultConstant)
 {
     m_dataType = dataType;
     OriginalLiteral = defaultConstant;
     setDefaultValues();
     Window dlg = new GetConstantDialogView();
     dlg.Owner = mainWindowExport.Value;
     dlg.DataContext = this;
     dlg.ShowDialog();
     return Literal;
 }