Esempio n. 1
0
    public override object ConvertFrom( ITypeDescriptorContext context, CultureInfo culture, object value )
    {
      string stringValue = value as string;

      if( stringValue != null )
      {
        ViewBase toReturn = null;

        string completeName = stringValue;
        int pointIndex = completeName.IndexOf( "." );
        string viewName = string.Empty;
        string themeName = string.Empty;

        if(pointIndex != -1)
        {
          viewName = completeName.Substring( 0, pointIndex );
          themeName = completeName.Substring( pointIndex + 1 );
        }
        else
        {
          viewName = completeName;
        }

        viewName = viewName.ToLowerInvariant();

        switch( viewName )
        {
          case "tableview":
            toReturn = new TableView();
            break;
          case "tableflowview":
            toReturn = new TableflowView();
            break;
        }

        if( toReturn == null )
        {
          throw new ArgumentException( "The specified view is invalid.", "value" );
        }
        else
        {
          if( !string.IsNullOrEmpty( themeName ) )
          {
            ThemeConverter themeConverter = new ThemeConverter();
            toReturn.Theme = (Theme)themeConverter.ConvertFromString(themeName);
          }
        }

        return toReturn;
      }

      return base.ConvertFrom( context, culture, value );
    }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 13 "..\..\..\..\..\bin\Common\UserControls\ShowProcessFile.xaml"
     ((System.Windows.Controls.TextBlock)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.GridDetails = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
     
     #line 19 "..\..\..\..\..\bin\Common\UserControls\ShowProcessFile.xaml"
     this.GridDetails.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.GridDetails_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tbView = ((Xceed.Wpf.DataGrid.Views.TableView)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboReport = ((System.Windows.Controls.ComboBox)(target));
     
     #line 42 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.cboReport.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.txtToShow = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     
     #line 48 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run);
     
     #line default
     #line hidden
     return;
     case 4:
     this.stkRptOp = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 5:
     this.txtRecords = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.btnFilter = ((System.Windows.Controls.Button)(target));
     
     #line 58 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnFilter.Click += new System.Windows.RoutedEventHandler(this.btnFilter_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.extToXls = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.extToXls.Click += new System.Windows.RoutedEventHandler(this.extToXls_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnPrintx = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnPrintx.Click += new System.Windows.RoutedEventHandler(this.btnPrintx_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnFiledS = ((System.Windows.Controls.Button)(target));
     
     #line 72 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnFiledS.Click += new System.Windows.RoutedEventHandler(this.btnFiledS_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.stkReport = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 11:
     this.parametersHost = ((System.Windows.Controls.ContentControl)(target));
     return;
     case 12:
     this.exportFormatComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 13:
     this.includeColumnHeadersCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 14:
     this.UseFieldNamesInHeaderCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 15:
     this.detailDepthTextBox = ((Xceed.Wpf.Controls.NumericTextBox)(target));
     return;
     case 16:
     this.repeatParentDataCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 17:
     this.excelOptionsPanel = ((System.Windows.Controls.Grid)(target));
     return;
     case 18:
     this.isHeaderFixedCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 19:
     this.statFunctionDepthTextBox = ((Xceed.Wpf.Controls.NumericTextBox)(target));
     return;
     case 20:
     this.exportStatFunctionsAsFormulasCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 21:
     this.csvOptionsPanel = ((System.Windows.Controls.Grid)(target));
     return;
     case 22:
     this.separatorComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 23:
     this.textQualifierComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 24:
     this.dateTimeFormatComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 25:
     this.numberFormatComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 26:
     
     #line 343 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.export_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.chkStandardPrintView = ((System.Windows.Controls.RadioButton)(target));
     
     #line 364 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.chkStandardPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged);
     
     #line default
     #line hidden
     return;
     case 28:
     this.chkConfiguredPrintView = ((System.Windows.Controls.RadioButton)(target));
     
     #line 372 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.chkConfiguredPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged);
     
     #line default
     #line hidden
     return;
     case 29:
     this.chkCustomPrintView = ((System.Windows.Controls.RadioButton)(target));
     
     #line 380 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.chkCustomPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged);
     
     #line default
     #line hidden
     return;
     case 30:
     this.m_printButton = ((System.Windows.Controls.Button)(target));
     
     #line 392 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.m_printButton.Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.m_exportButton = ((System.Windows.Controls.Button)(target));
     
     #line 398 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.m_exportButton.Click += new System.Windows.RoutedEventHandler(this.ButtonExport_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.progressScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 33:
     this.textProgressInformation = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 34:
     this.TextName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 35:
     
     #line 446 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.btnUpd = ((System.Windows.Controls.Button)(target));
     
     #line 448 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnUpd.Click += new System.Windows.RoutedEventHandler(this.btnUpd_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btnDelRep = ((System.Windows.Controls.Button)(target));
     
     #line 451 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnDelRep.Click += new System.Windows.RoutedEventHandler(this.btnDelRep_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.GridDetails = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
     return;
     case 39:
     this.tbView = ((Xceed.Wpf.DataGrid.Views.TableView)(target));
     return;
     case 40:
     this.popUcFilters = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 41:
     this.brDocList = ((System.Windows.Controls.Border)(target));
     return;
     case 42:
     this.stkFilters = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 43:
     this.btnPop = ((System.Windows.Controls.Button)(target));
     
     #line 532 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     this.btnPop.Click += new System.Windows.RoutedEventHandler(this.btnPop_Click);
     
     #line default
     #line hidden
     return;
     case 44:
     
     #line 535 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);
     
     #line default
     #line hidden
     return;
     case 45:
     
     #line 538 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run);
     
     #line default
     #line hidden
     return;
     case 46:
     this.stkProcess = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 47:
     this.stkProcess2 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 48:
     this.ucCountSh = ((WpfFront.Common.UserControls.InventoryCountSchedule)(target));
     return;
     case 49:
     this.popFields = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 50:
     this.lvSource = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
     return;
     case 51:
     this.lvDest = ((Xceed.Wpf.DataGrid.DataGridControl)(target));
     return;
     case 52:
     
     #line 642 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 53:
     
     #line 645 "..\..\..\..\..\Trace\Views\QueriesView.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }