Inheritance: System.Windows.Window
コード例 #1
0
        public bool Configure(Window owner, IList <ESRI.ArcGIS.OperationsDashboard.DataSource> dataSources)
        {
            // Show the configuration dialog.
            Config.TableWidgetDialog dialog = new Config.TableWidgetDialog(DataSource, FeatureActions, Caption)
            {
                Owner = owner
            };
            if (dialog.ShowDialog() != true)
            {
                return(false);
            }

            //set the data source id
            DataSourceId = dialog.DataSource.Id;
            //get the selected feature actions from the configuration dialog
            FeatureActions = dialog.SelectedFeatureActions;
            //point to context menu's feature actions to the selected feature actions
            FeatureActionContextMenu.FeatureActions = FeatureActions;
            Caption = dialog.Caption;

            //Persist the selected feature actions
            InitializePersistedFeatureActions();

            return(true);
        }
コード例 #2
0
    public bool Configure(Window owner, IList<ESRI.ArcGIS.OperationsDashboard.DataSource> dataSources)
    {
      // Show the configuration dialog.
      Config.TableWidgetDialog dialog = new Config.TableWidgetDialog(DataSource, FeatureActions, Caption) { Owner = owner };
      if (dialog.ShowDialog() != true)
        return false;

      //set the data source id
      DataSourceId = dialog.DataSource.Id;
      //get the selected feature actions from the configuration dialog
      FeatureActions = dialog.SelectedFeatureActions;
      //point to context menu's feature actions to the selected feature actions
      FeatureActionContextMenu.FeatureActions = FeatureActions;
      Caption = dialog.Caption;

      //Persist the selected feature actions
      InitializePersistedFeatureActions();

      return true;
    }