Ejemplo n.º 1
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the jsrep document
        /// which will show up in the properties window
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(JsReportVSToolsPackage package)
        {
            myPackage             = package;
            loading               = false;
            gettingCheckoutStatus = false;

            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            ArrayList listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            EditorProperties prop = new EditorProperties(this);

            listObjects.Add(prop);

            // Create and initialize the editor

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JsRepEditorPane));

            this.editorControl = new JsReportEditor();

            resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);
            // Event handlers for macro recording.
            this.editorControl.StateChanged += new System.EventHandler(this.OnStateChanged);
        }
        private async void SelectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            var selectedItems = ((IEnumerable <object>)sender).OfType <IPropertyProviderViewModel>().ToList();

            EditorProperties.UpdateTypeAndName(selectedItems, x => ComputeSelectionName(x, false), x => x.ToString(), ComputeSelectionName(selectedItems.FirstOrDefault(), true));
            await EditorProperties.GenerateSelectionPropertiesAsync(selectedItems);
        }
Ejemplo n.º 3
0
 internal Note([NotNull] Bar bar, Guid id)
 {
     Basic       = new BasicProperties(bar);
     Helper      = new HelperProperties(this);
     Editor      = new EditorProperties();
     StarlightID = id;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new instance.
 /// </summary>
 /// <param name="editor">reference to editor control</param>
 public DataModel(DsLightEditor editor)
 {
     this.editor      = editor;
     Entities         = new List <Entity>();
     EditorProperties = new EditorProperties(editor);
     DialogWidth      = 406;
     DialogHeight     = 371;
 }
Ejemplo n.º 5
0
        public void Initialize(GameForm form)
        {
            this.form   = form;
            this.camera = GameForm.camera;

            this.cursor  = GameForm.cursor;
            this.sesgMan = GameData.sesgMan;
            SpriteGridGuiMessages.camera  = this.camera;
            SpriteGridGuiMessages.random  = this.random;
            SpriteGridGuiMessages.sesgMan = GameData.sesgMan;

            mEditorProperties = GameData.EditorProperties;
        }
Ejemplo n.º 6
0
        public ActionResult EditorFor(EditorValue model)
        {
            //Editor For
            EditorProperties editor = new EditorProperties();

            editor.EnableStrictMode = true;
            ViewData["editmodel"]   = editor;

            //Mask Edit
            MaskEditProperties maskmodel = new MaskEditProperties();

            maskmodel.WatermarkText = "watermark";
            maskmodel.MaskFormat    = "99-99-99999";
            ViewData["MaskModel"]   = maskmodel;

            return(View(model));
        }
Ejemplo n.º 7
0
	void ParticleSettings() {
		SerializedProperty particlesPerSecond = serializedObject.FindProperty ("particlesPerSecond");

		//SerializedProperty birthOffset = serializedObject.FindProperty ("birthOffset");
		//SerializedProperty looping = serializedObject.FindProperty ("looping");
		//SerializedProperty prewarm = serializedObject.FindProperty ("prewarm");
		SerializedProperty pDuration = serializedObject.FindProperty ("pDuration");
		//SerializedProperty pStartLifetime = serializedObject.FindProperty ("pStartLifetime");
		SerializedProperty pStartSize = serializedObject.FindProperty ("pStartSize");
		SerializedProperty pStartRotation = serializedObject.FindProperty ("pStartRotation");
		SerializedProperty pStartColor = serializedObject.FindProperty ("pStartColor");
		SerializedProperty pColorOverLifetime = serializedObject.FindProperty ("pColorOverLifetime");
		SerializedProperty pStartSpeed = serializedObject.FindProperty ("pStartSpeed");
		SerializedProperty pGravityModifier = serializedObject.FindProperty ("gravityModifier");
		SerializedProperty maxParticles = serializedObject.FindProperty ("maxParticles");


		SerializedProperty pStartLifetime1 = serializedObject.FindProperty ("pStartLifetime1");
		//SerializedProperty pStartLifetime2 = serializedObject.FindProperty ("pStartLifetime2");



		EditorProperties.Show(particlesPerSecond, "Particles Per Sec" );
		EditorProperties.Show(pDuration, "Duration" );

		//EditorProperties.Show(pStartLifetime,  "Lifetime" );
		EditorProperties.Show(pStartLifetime1,  "Lifetime" );

		EditorProperties.Show(pStartSize, "Size" );
		EditorProperties.Show(pStartRotation,  "Rotation" );
		//EditorProperties.Show(birthOffset,  "Birth Offset" );
		EditorProperties.Show(pStartColor,  "Color" );
		EditorProperties.Show(pColorOverLifetime,  "Color Over Lifetime" );
		EditorProperties.Show(pStartSpeed,  "Speed" );
		EditorProperties.Show(pGravityModifier, "Gravity Modifier" );
		EditorProperties.Show(maxParticles, "Max Particles" );
	}
Ejemplo n.º 8
0
 /// <inheritdoc />
 protected override Task RefreshEditorProperties()
 {
     EditorProperties.UpdateTypeAndName(SelectedItems, e => e.ElementType.Name, e => e.AssetSideUIElement.Name, "elements");
     return(EditorProperties.GenerateSelectionPropertiesAsync(SelectedItems));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Shows the properties of the <see cref="Asset"/>.
 /// </summary>
 protected void ShowAssetProperties()
 {
     EditorProperties.TypeDescription = Asset.TypeDisplayName;
     EditorProperties.Name            = Asset.Name;
     EditorProperties.GenerateSelectionPropertiesAsync(Asset.Yield()).Forget();
 }
Ejemplo n.º 10
0
        /// <summary>
        /// Initialization routine for the editor. Loads the list of properties for the nuset document
        ///     which will show up in the properties window
        /// </summary>
        /// <param name="package">
        /// The package
        /// </param>
        private void PrivateInit(NuSetPackage package)
        {
            this.myPackage = package;
            this.editorIsLoading = false;
            this.editorIsGettingCheckoutStatus = false;
            this.trackSelection = null;

            Control.CheckForIllegalCrossThreadCalls = false;

            // Create an ArrayList to store the objects that can be selected
            var listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            var prop = new EditorProperties(this);
            listObjects.Add(prop);

            // Create the SelectionContainer object.
            this.selectionContainer = new SelectionContainer(true, false)
                                          {
                                              SelectableObjects = listObjects, 
                                              SelectedObjects = listObjects
                                          };

            // Create and initialize the editor
            var resources = new ComponentResourceManager(typeof(EditorPane));
            this.EditorControl = new MyEditor();

            resources.ApplyResources(this.EditorControl, "EditorControl", CultureInfo.CurrentUICulture);

            // Event handlers for macro recording.
            this.EditorControl.RichTextBoxControl.TextChanged += this.OnTextChange;
            this.EditorControl.RichTextBoxControl.MouseDown += this.OnMouseClick;
            this.EditorControl.RichTextBoxControl.SelectionChanged += this.OnSelectionChanged;
            this.EditorControl.RichTextBoxControl.KeyDown += this.OnKeyDown;

            // Handle Focus event
            this.EditorControl.RichTextBoxControl.GotFocus += this.OnGotFocus;

            // Call the helper function that will do all of the command setup work
            this.SetupCommands();
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the jsrep document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(JsReportVSToolsPackage package)
        {
            myPackage = package;
            loading = false;
            gettingCheckoutStatus = false;
            
            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            ArrayList listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            EditorProperties prop = new EditorProperties(this);
            listObjects.Add(prop);

                      // Create and initialize the editor

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JsRepEditorPane));
            
            this.editorControl = new JsReportEditor();

            resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);
            // Event handlers for macro recording.
            this.editorControl.StateChanged += new System.EventHandler(this.OnStateChanged);                           
        }
Ejemplo n.º 12
0
		/// <summary>
		/// Initialization routine for the Editor. Loads the list of properties for the dal document 
		/// which will show up in the properties window 
		/// </summary>
		/// <param name="package"></param>
		private void PrivateInit(SimpleDataAccessLayerConfigFileEditorPackage package)
		{
			myPackage = package;
			loading = false;
			gettingCheckoutStatus = false;
			trackSel = null;

			Control.CheckForIllegalCrossThreadCalls = false;
			// Create an ArrayList to store the objects that can be selected
			ArrayList listObjects = new ArrayList();

			// Create the object that will show the document's properties
			// on the properties window.
			EditorProperties prop = new EditorProperties(this);
			listObjects.Add(prop);

			// Create the SelectionContainer object.
			selContainer = new Microsoft.VisualStudio.Shell.SelectionContainer(true, false);
			selContainer.SelectableObjects = listObjects;
			selContainer.SelectedObjects = listObjects;

			// Create and initialize the editor

			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditorPane));
			this.editorControl = new MyEditor();

			resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);
			
			// Handle Focus event
			// I should override this one
			//this.editorControl.RichTextBoxControl.GotFocus += new EventHandler(this.OnGotFocus);

			// Call the helper function that will do all of the command setup work
			// -- no commands here // setupCommands();
		}
Ejemplo n.º 13
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the pnml document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(PetrifierPackage package)
        {
            this.package = package;
            loading = false;
            gettingCheckoutStatus = false;
            trackSel = null;

            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            ArrayList listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            EditorProperties prop = new EditorProperties(this);
            listObjects.Add(prop);

            // Create the SelectionContainer object.
            selContainer = new Microsoft.VisualStudio.Shell.SelectionContainer(true, false);
            selContainer.SelectableObjects = listObjects;
            selContainer.SelectedObjects = listObjects;

            // Create and initialize the editor

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PetriNetEditorPane));
            editorControl = new PetriNetDesigner();
            editorControl.SelectionChanged += (sender, args) => { isDirty = true; RefreshObjectSelection(); };

            resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);

            // Call the helper function that will do all of the command setup work
            setupCommands();
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the resx-aggregator document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(ResX_AggregatorPackage package)
        {
            myPackage = package;
            loading = false;
            gettingCheckoutStatus = false;
            trackSel = null;

            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            ArrayList listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            EditorProperties prop = new EditorProperties(this);
            listObjects.Add(prop);

            // Create the SelectionContainer object.
            selContainer = new Microsoft.VisualStudio.Shell.SelectionContainer(true, false);
            selContainer.SelectableObjects = listObjects;
            selContainer.SelectedObjects = listObjects;

            // Create and initialize the editor

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditorPane));
            this.editorControl = new MyEditor();

            resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);
            // Event handlers for macro recording.
            this.editorControl.RichTextBoxControl.TextChanged += new System.EventHandler(this.OnTextChange);
            this.editorControl.RichTextBoxControl.MouseDown += new MouseEventHandler(this.OnMouseClick);
            this.editorControl.RichTextBoxControl.SelectionChanged += new EventHandler(this.OnSelectionChanged);
            this.editorControl.RichTextBoxControl.KeyDown += new KeyEventHandler(this.OnKeyDown);
            
            // Handle Focus event
            this.editorControl.RichTextBoxControl.GotFocus += new EventHandler(this.OnGotFocus);
            
            // Call the helper function that will do all of the command setup work
            setupCommands();
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the xml document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(PowerShellToolsPackage package, string fileName)
        {
            myPackage = package;
            loading = false;
            gettingCheckoutStatus = false;
            trackSel = null;

            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            ArrayList listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            EditorProperties prop = new EditorProperties(this);
            listObjects.Add(prop);

            // Create the SelectionContainer object.
            selContainer = new Microsoft.VisualStudio.Shell.SelectionContainer(true, false);
            selContainer.SelectableObjects = listObjects;
            selContainer.SelectedObjects = listObjects;

            // Create and initialize the editor

            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditorPane));
            this.editorControl = new EditorControl(fileName);

            resources.ApplyResources(this.editorControl, "editorControl", CultureInfo.CurrentUICulture);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the dal document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(SimpleDataAccessLayerPackage package)
        {
            _myPackage = package;
            _loading = false;
            _gettingCheckoutStatus = false;
            _trackSel = null;

            Control.CheckForIllegalCrossThreadCalls = false;
            // Create an ArrayList to store the objects that can be selected
            var listObjects = new ArrayList();

            // Create the object that will show the document's properties
            // on the properties window.
            var prop = new EditorProperties(this);
            listObjects.Add(prop);

            // Create the SelectionContainer object.
            _selContainer = new SelectionContainer(true, false)
            {
                SelectableObjects = listObjects,
                SelectedObjects = listObjects
            };

            // Create and initialize the editor

            var resources = new ComponentResourceManager(typeof(EditorPane));
            _editorControl = new MainEditorWindow();

            //resources.ApplyResources(_editorControl, "editorControl", CultureInfo.CurrentUICulture);

            // Handle Focus event
            // I should override this one
            //this.editorControl.RichTextBoxControl.GotFocus += new EventHandler(this.OnGotFocus);

            // Call the helper function that will do all of the command setup work
            // -- no commands here // setupCommands();
        }
Ejemplo n.º 17
0
        public void Initialize(GameForm form)
        {
            this.form = form;
            this.camera = GameForm.camera;

            this.cursor = GameForm.cursor;
            this.sesgMan = GameData.sesgMan;
            SpriteGridGuiMessages.camera = this.camera;
            SpriteGridGuiMessages.random = this.random;
            SpriteGridGuiMessages.sesgMan = GameData.sesgMan;

            mEditorProperties = GameData.EditorProperties;
        }