Editor.MainWindow.UpdateControls C# (CSharp) Method

UpdateControls() public method

public UpdateControls ( ) : void
return void
        public void UpdateControls()
        {
            if (this.updating) return;
             this.updating = true;

             this.UpdateCheckedList(this.lstPhysics);
             this.UpdateCheckedList(this.lstActors);
             this.UpdateCheckedList(this.lstLevel);
             this.propertyGrid.Refresh();
             this.pictureBox1.Refresh();
             this.hScrollBar.Maximum = ((Level)this.lstLevel.Items[0]).Size.Width;
             this.vScrollBar.Maximum = ((Level)this.lstLevel.Items[0]).Size.Height;
             if (this.xmlView.Visible)
             {
            XmlWriterSettings writerSettings = new XmlWriterSettings();
            writerSettings.Indent = true;
            var w = new System.IO.StringWriter();
            XmlWriter writer = XmlWriter.Create(w, writerSettings);
            this.WriteLevel(writer);

            this.xmlView.txtXML.Text = w.ToString();
             }
             this.updating = false;
        }