public OptimizationSettings()
        {
            this.commands = new ArrayListDataSet(this);

            //save command
            Command saveCmd = new Command();
            saveCmd.Description = "Save";
            saveCmd.Invoked += new EventHandler(saveCmd_Invoked);
            this.commands.Add(saveCmd);

            //cancel command
            Command cancelCmd = new Command();
            cancelCmd.Description = "Cancel";
            cancelCmd.Invoked += new EventHandler(cancelCmd_Invoked);
            this.commands.Add(cancelCmd);

            this.aMPM = new Choice(this);
            List<string> ampmlist = new List<string>();
            ampmlist.Add("AM");
            ampmlist.Add("PM");
            this.aMPM.Options = ampmlist;

            this.enableOptimization = new BooleanChoice(this);
            this.enableOptimization.Description = "Perform Optimization";
            this.enableOptimization.Value = true;
            this.optimizeNow = new Command();
            this.optimizeNow.Description = "Optimize Now";

            this.optimizationHour = new EditableText(this);
            this.optimizationHour.Value = "4";
            this.optimizationMinute = new EditableText(this);
            this.optimizationMinute.Value = "00";
        }
Ejemplo n.º 2
0
        private void Initialize(IEnumerable <Title> titles)
        {
            DateTime start = DateTime.Now;

            _jumpInListText       = new EditableText(this);
            _jumpInListText.Value = String.Empty;

            //FocusedItem = new GalleryItem(this, "", "", null);
            _categoryChoice = new Choice(this, "Categories");
            //CreateCategories();
            _moviesVirtualList = new VirtualList(this, null);

            //CreateSortLookup();

            if (_sortFunctionLookup.ContainsKey(OMLSettings.MovieSort))
            {
                _currentSort = _sortFunctionLookup[OMLSettings.MovieSort];
            }
            else
            {
                _currentSort = SortByNameAscending;
            }

            //SetupAlphaCharacters();

            LoadMovies(titles);
            OMLApplication.DebugLine("[MovieGallery] Initialize: time: {0}, items: {1}", DateTime.Now - start, this._movies.Count);
        }
Ejemplo n.º 3
0
 public PageState(IModelItemOwner owner)
     : base()
 {
     this.m_transitionState = PageTransitionState.NavigatingToForward;
     this.eTPageState       = new EditableText(this);
     this.eTPageState.Value = "NavigatingToForward";
 }
Ejemplo n.º 4
0
        public void LocateExternalPlayerExecutable(Choice selector, EditableText textBox, Choice localFixedDrive)
        {
            string    driveLetterToScan = localFixedDrive.Chosen as String;
            DriveInfo dInfo             = new DriveInfo(driveLetterToScan);

            string startPath = null;

            switch ((ExternalPlayer.KnownPlayers)Enum.Parse(typeof(ExternalPlayer.KnownPlayers), selector.Chosen.ToString()))
            {
            case ExternalPlayer.KnownPlayers.WinDVD9:
                startPath = DefaultWinDVD9Path;
                break;

            case ExternalPlayer.KnownPlayers.PowerDVD8:
                startPath = DefaultPowerDVD8Path;
                break;

            case ExternalPlayer.KnownPlayers.TotalMediaTheater:
                startPath = DefaultTMTPath;
                break;

            // don't do anything if there's no mounting tool selected
            case ExternalPlayer.KnownPlayers.None:
            case ExternalPlayer.KnownPlayers.Other:
            default:
                return;
            }

            if (File.Exists(Path.Combine(dInfo.RootDirectory.FullName, startPath)))
            {
                textBox.Value = Path.Combine(dInfo.RootDirectory.FullName, startPath);
            }
            else
            {
                // let's scan all the folders for it
                OMLApplication.Current.IsBusy = true;
                Application.DeferredInvokeOnWorkerThread(delegate
                {
                    exePath = ScanAllFoldersForExecutable(dInfo.RootDirectory.FullName, Path.GetFileName(startPath));
                }, delegate
                {
                    OMLApplication.Current.IsBusy = false;
                    if (exePath.Length > 0)
                    {
                        OMLApplication.DebugLine("[Settings] Found Image Mounter: {0}", exePath);
                        textBox.Value = exePath;
                    }
                    else
                    {
                        AddInHost.Current.MediaCenterEnvironment.Dialog(
                            string.Format("The external player was not" +
                                          " found on the [{0}] drive.", driveLetterToScan),
                            "Failed to Find External Player",
                            Microsoft.MediaCenter.DialogButtons.Ok,
                            5, true);
                    }
                }, null);
            }
        }
Ejemplo n.º 5
0
 private void Font_Select(object sender, RoutedEventArgs e)
 {
     if (FontTypes.SelectedItem != null && EditableText != null)
     {
         EditableText.Selection.ApplyPropertyValue(System.Windows.Controls.RichTextBox.FontFamilyProperty, FontTypes.SelectedItem);
         EditableText.Focus();
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Construct a search page.
 /// </summary>
 public SearchPage()
 {
     // Create an object to track the search string and hook its
     // submit event.
     searchValue            = new EditableText(this);
     searchValue.Value      = String.Empty;
     searchValue.Submitted += new EventHandler(OnSearchInputChanged);
 }
		public SubmitScore ()
		{
			this.Camera.SetViewFromViewport();
			Sce.PlayStation.HighLevel.UI.Panel dialog = new Panel();
			dialog.Width = Director.Instance.GL.Context.GetViewport().Width;
			dialog.Height = Director.Instance.GL.Context.GetViewport().Height;
			
			//textInfo = new TextureInfo(m_texture);
			//SpriteUV tScreen = new SpriteUV(textInfo);
			
			//tScreen.Scale = textInfo.TextureSizef;
			//tScreen.Pivot = new Vector2(0.5f,0.5f);
			//tScreen.Position = new Vector2(Director.Instance.GL.Context.GetViewport().Width/2,
			                            //Director.Instance.GL.Context.GetViewport().Height/2);
			//this.AddChild(tScreen);
			
			ImageBox ib = new ImageBox();
			ib.Width = dialog.Width;
			ib.Image = new ImageAsset("/Application/images/highScore.png", false);
			ib.Height = dialog.Height;
			ib.SetPosition(0.0f, 0.0f);
					
			Button submitScore = new Button();
			submitScore.Name = "submitScore";
			submitScore.Text = "Submit Score";
			submitScore.Width = 200;
			submitScore.Height = 50;
			submitScore.Alpha = 0.8f;
			submitScore.SetPosition(250.0f, 40.0f);
			submitScore.TouchEventReceived += OnSubmitScore;
			
			Button returnToMenu = new Button();
			returnToMenu.Name = "returnToMenu";
			returnToMenu.Text = "Menu";
			returnToMenu.Width = 200;
			returnToMenu.Height = 50;
			returnToMenu.Alpha = 0.8f;
			returnToMenu.SetPosition(700.0f, 40.0f);
			returnToMenu.TouchEventReceived += OnButtonPlay;
			
			playerNameField = new EditableText();
			playerNameField.Name = "playerNameField";
			playerNameField.Width = 200;
			playerNameField.Height = 50;
			playerNameField.Alpha = 0.8f;
			playerNameField.SetPosition(25.0f, 40.0f);
			
			UpdateImage(totalScore);
			
			dialog.AddChildLast(ib);
			dialog.AddChildLast(submitScore);
			dialog.AddChildLast(returnToMenu);
			dialog.AddChildLast(playerNameField);
			m_uiScene = new Sce.PlayStation.HighLevel.UI.Scene();
			m_uiScene.RootWidget.AddChildLast(dialog);
			UISystem.SetScene(m_uiScene);
			Scheduler.Instance.ScheduleUpdateForTarget(this, 0, false);
		}
Ejemplo n.º 8
0
 public void InsertText(string text)
 {
     if (SelectionStart == SelectionEnd)
     {
         EditableText.Insert(SelectionStart, new Java.Lang.String(text));
     }
     else
     {
         EditableText.Replace(SelectionStart, SelectionEnd, new Java.Lang.String(text));
     }
 }
        private void EditableText_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (EditableText.IsVisible)
            {
                EditableText.Focus();

                Keyboard.Focus(EditableText);

                EditableText.SelectAll();
            }
        }
Ejemplo n.º 10
0
        public void LoginToMyPlex(EditableText username, EditableText password)
        {
            this.username = username.Value;

            MyPlex api = new MyPlex();

            user    = api.Authenticate(username.Value, password.Value);
            servers = api.GetServers(user);

            Properties.Settings.Default.Save();

            DialogTest(user.authenticationToken);
            //GoBack();
        }
Ejemplo n.º 11
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            download_url        = new EditableText();
            download_url.Name   = "download_url";
            DownloadBtn         = new Button();
            DownloadBtn.Name    = "DownloadBtn";
            EditableText_1      = new EditableText();
            EditableText_1.Name = "EditableText_1";
            EditableText_2      = new EditableText();
            EditableText_2.Name = "EditableText_2";

            // download_url
            download_url.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            download_url.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            download_url.LineBreak = LineBreak.Character;

            // DownloadBtn
            DownloadBtn.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            DownloadBtn.TextFont  = new Font(FontAlias.System, 25, FontStyle.Regular);

            // EditableText_1
            EditableText_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_1.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            EditableText_1.LineBreak = LineBreak.Character;

            // EditableText_2
            EditableText_2.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_2.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            EditableText_2.LineBreak = LineBreak.Character;

            // DownloadUI

            // Dialog
            this.AddChildLast(download_url);
            this.AddChildLast(DownloadBtn);
            this.AddChildLast(EditableText_1);
            this.AddChildLast(EditableText_2);
            this.ShowEffect = new BunjeeJumpEffect()
            {
            };
            this.HideEffect = new TiltDropEffect();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 12
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Button_OK      = new Button();
            Button_OK.Name = "Button_OK";
            Label_1        = new Label();
            Label_1.Name   = "Label_1";
            Text_IP        = new EditableText();
            Text_IP.Name   = "Text_IP";

            // UISettingDialog
            this.BackgroundStyle                 = DialogBackgroundStyle.Custom;
            this.CustomBackgroundImage           = null;
            this.CustomBackgroundNinePatchMargin = new NinePatchMargin(34, 34, 34, 34);
            this.CustomBackgroundColor           = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            this.BackgroundFilterColor           = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            this.AddChildLast(Button_OK);
            this.AddChildLast(Label_1);
            this.AddChildLast(Text_IP);
            this.ShowEffect = new SlideInEffect()
            {
                MoveDirection = FourWayDirection.Up,
            };
            this.HideEffect = new TiltDropEffect();

            // Button_OK
            Button_OK.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_OK.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Label_1
            Label_1.TextColor           = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Label_1.Font                = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Label_1.LineBreak           = LineBreak.Character;
            Label_1.HorizontalAlignment = HorizontalAlignment.Right;

            // Text_IP
            Text_IP.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Text_IP.Font      = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Text_IP.LineBreak = LineBreak.Character;

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 13
0
        /// <summary>
        /// This method is called when the text is changed, in case any subclasses would like to know.
        /// Within text, the lengthAfter characters beginning at start have just replaced old text that
        /// had length lengthBefore. It is an error to attempt to make changes to text from this callback.
        /// </summary>
        /// <param name="text">The text the TextView is displaying</param>
        /// <param name="start">The offset of the start of the range of the text that was modified</param>
        /// <param name="before">The length of the former text that has been replaced</param>
        /// <param name="after">The length of the replacement modified text</param>
        protected override void OnTextChanged(Java.Lang.ICharSequence text, int start, int before, int after)
        {
            base.OnTextChanged(text, start, before, after);
            if (Text != _currentValue && !(_expression == null || _expression.IsMatch(Text)))
            {
                EditableText.Replace(0, Text.Length, _currentValue ?? string.Empty);
            }
            if (Text == _currentValue)
            {
                return;
            }
            var old = _currentValue;

            _currentValue = Text;

            this.OnPropertyChanged(nameof(Text));
            this.OnPropertyChanged(nameof(StringValue));

            OnTextChanged(old, _currentValue);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Navigate to the keyboard entry page.
        /// </summary>
        public void GoToKeyboard(EditableText text, bool password, bool submitWhenDone)
        {
            // If we have no page session, just spit out a trace statement.
            if (session == null)
            {
                Debug.WriteLine("GoToKeyboard: " + text.Value);
                return;
            }

            //
            // Construct the arguments dictionary and then navigate to the
            // keyboard page template.
            //

            Dictionary <string, object> properties = new Dictionary <string, object>();

            properties["Model"]          = text;
            properties["Password"]       = password;
            properties["SubmitWhenDone"] = submitWhenDone;
            properties["Application"]    = this;

            session.GoToPage("resx://Z/Z.Resources/KeyboardPage", properties);
        }
Ejemplo n.º 15
0
        public OptimizationSettings()
        {
            this.commands = new ArrayListDataSet(this);

            //save command
            Command saveCmd = new Command();

            saveCmd.Description = "Save";
            saveCmd.Invoked    += new EventHandler(saveCmd_Invoked);
            this.commands.Add(saveCmd);

            //cancel command
            Command cancelCmd = new Command();

            cancelCmd.Description = "Cancel";
            cancelCmd.Invoked    += new EventHandler(cancelCmd_Invoked);
            this.commands.Add(cancelCmd);

            this.aMPM = new Choice(this);
            List <string> ampmlist = new List <string>();

            ampmlist.Add("AM");
            ampmlist.Add("PM");
            this.aMPM.Options = ampmlist;


            this.enableOptimization             = new BooleanChoice(this);
            this.enableOptimization.Description = "Perform Optimization";
            this.enableOptimization.Value       = true;
            this.optimizeNow             = new Command();
            this.optimizeNow.Description = "Optimize Now";

            this.optimizationHour         = new EditableText(this);
            this.optimizationHour.Value   = "4";
            this.optimizationMinute       = new EditableText(this);
            this.optimizationMinute.Value = "00";
        }
Ejemplo n.º 16
0
        // Constructor
        public MainWindow()
        {
            InitializeWidget();

            staticIpAddressTextBox = textboxIPAddress;
            staticIsConnected = isConnected;
            staticConnectToServerButton = connectToServerButton;
            staticConnectedResults = connectedResults;

            // pressing the connected to server button
            connectToServerButton.ButtonAction += delegate(object sender, TouchEventArgs e)
            {
                string addrString = staticIpAddressTextBox.Text;
                IPAddress address;

                // Test if it's a legit IPAddress
                if (IPAddress.TryParse(addrString, out address))
                {
                    //Valid IP, with address containing the IP
                    //Instantiate our socket
                    if(Networking.AppMain.StartSocket(staticIpAddressTextBox.Text, 3000))
                    {
                        SetUIConnected();
                    }
                    else
                    {
                        connectedResults.Text = "Server did not respond!";
                    }
                }
                else
                {
                    //Invalid IP
                    connectedResults.Text = "Invalid IPAddress!";
                }
              		};
        }
Ejemplo n.º 17
0
        private void Initialize(IEnumerable<Title> titles)
        {
            DateTime start = DateTime.Now;

            _jumpInListText = new EditableText(this);
            _jumpInListText.Value = String.Empty;

            //FocusedItem = new GalleryItem(this, "", "", null);
            _categoryChoice = new Choice(this, "Categories");
            //CreateCategories();
            _moviesVirtualList = new VirtualList(this, null);

            //CreateSortLookup();

            if (_sortFunctionLookup.ContainsKey(OMLSettings.MovieSort))
                _currentSort = _sortFunctionLookup[OMLSettings.MovieSort];
            else
                _currentSort = SortByNameAscending;

            //SetupAlphaCharacters();

            LoadMovies(titles);
            OMLApplication.DebugLine("[MovieGallery] Initialize: time: {0}, items: {1}", DateTime.Now - start, this._movies.Count);
        }
Ejemplo n.º 18
0
 public EditValueTextWidget(UIContext context) : base(context)
 {
     editableText = (EditableText)typeof(EditableTextWidget).GetField("_editableText", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(this);
 }
Ejemplo n.º 19
0
 public PageState(IModelItemOwner owner)
     : base()
 {
     this.m_transitionState = PageTransitionState.NavigatingToForward;
     this.eTPageState = new EditableText(this);
     this.eTPageState.Value = "NavigatingToForward";
 }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Panel_1 = new Panel();
            Panel_1.Name = "Panel_1";
            label1 = new Label();
            label1.Name = "label1";
            connectToServerButton = new Button();
            connectToServerButton.Name = "connectToServerButton";
            textboxIPAddress = new EditableText();
            textboxIPAddress.Name = "textboxIPAddress";
            isConnected = new Label();
            isConnected.Name = "isConnected";
            connectedResults = new Label();
            connectedResults.Name = "connectedResults";
            Label_1 = new Label();
            Label_1.Name = "Label_1";

            // MainWindow
            this.RootWidget.AddChildLast(Panel_1);
            this.RootWidget.AddChildLast(Label_1);

            // Panel_1
            Panel_1.BackgroundColor = new UIColor(153f / 255f, 153f / 255f, 153f / 255f, 255f / 255f);
            Panel_1.Clip = true;
            Panel_1.AddChildLast(label1);
            Panel_1.AddChildLast(connectToServerButton);
            Panel_1.AddChildLast(textboxIPAddress);
            Panel_1.AddChildLast(isConnected);
            Panel_1.AddChildLast(connectedResults);

            // label1
            label1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            label1.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            label1.LineBreak = LineBreak.Character;

            // connectToServerButton
            connectToServerButton.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            connectToServerButton.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // textboxIPAddress
            textboxIPAddress.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            textboxIPAddress.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            textboxIPAddress.LineBreak = LineBreak.Character;

            // isConnected
            isConnected.TextColor = new UIColor(255f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            isConnected.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            isConnected.LineBreak = LineBreak.Character;

            // connectedResults
            connectedResults.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            connectedResults.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            connectedResults.LineBreak = LineBreak.Character;

            // Label_1
            Label_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_1.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Label_1.LineBreak = LineBreak.Character;

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 21
0
        public ImageMountingSettingsAdvanced()
        {
            this.commands = new ArrayListDataSet(this);

            //save command
            Command saveCmd = new Command();

            saveCmd.Description = "Save";
            saveCmd.Invoked    += new EventHandler(saveCmd_Invoked);
            this.commands.Add(saveCmd);

            //cancel command
            Command cancelCmd = new Command();

            cancelCmd.Description = "Cancel";
            cancelCmd.Invoked    += new EventHandler(cancelCmd_Invoked);
            this.commands.Add(cancelCmd);

            this.mountingToolPath       = new EditableText(this);
            this.mountingToolPath.Value = OMLSettings.MountingToolPath;
            this.mountingToolChoice     = new Choice(this);
            List <string> toolList = new List <string>();

            toolList.Add("DAEMON Tools Lite");
            toolList.Add("Virtual CloneDrive");

            this.mountingToolChoice.Options = toolList;

            this.virtualDriveOptions         = new Choice(this);
            this.virtualDriveOptions.Options = MountingTool.GetAvailableDriveLetters();

            string chosenDrive = string.Format(@"{0}:\", OMLSettings.VirtualDiscDrive);

            if (this.virtualDriveOptions.Options.IndexOf(chosenDrive) > -1)
            {
                this.virtualDriveOptions.Chosen = chosenDrive;
            }
            else
            {
                this.virtualDriveOptions.ChosenIndex = this.virtualDriveOptions.Options.IndexOf(MountingTool.GetFirstFreeDriveLetter());
            }

            MountingTool.Tool selectedTool = (MountingTool.Tool)OMLSettings.MountingToolSelection;


            this.enableImageMounting             = new BooleanChoice(this);
            this.enableImageMounting.Description = "Manually configure image mounting";
            if (selectedTool != MountingTool.Tool.None)
            {
                this.enableImageMounting.Value = true;
            }
            else
            {
                this.enableImageMounting.Value = false;
            }

            switch (selectedTool)
            {
            case MountingTool.Tool.DaemonTools:
                this.mountingToolChoice.ChosenIndex = 0;
                break;

            case MountingTool.Tool.VirtualCloneDrive:
                this.mountingToolChoice.ChosenIndex = 1;
                break;
            }
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            UriText = new EditableText();
            UriText.Name = "UriText";
            UriLabel = new Label();
            UriLabel.Name = "UriLabel";
            Button_Play = new Button();
            Button_Play.Name = "Button_Play";
            Button_Stop = new Button();
            Button_Stop.Name = "Button_Stop";
            Button_Resume = new Button();
            Button_Resume.Name = "Button_Resume";
            Button_Pause = new Button();
            Button_Pause.Name = "Button_Pause";

            // UriText
            UriText.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            UriText.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            UriText.LineBreak = LineBreak.Character;

            // UriLabel
            UriLabel.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            UriLabel.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            UriLabel.LineBreak = LineBreak.Character;

            // Button_Play
            Button_Play.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Play.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_Stop
            Button_Stop.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Stop.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_Resume
            Button_Resume.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Resume.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_Pause
            Button_Pause.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Pause.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // MoviePlayerScene
            this.RootWidget.AddChildLast(UriText);
            this.RootWidget.AddChildLast(UriLabel);
            this.RootWidget.AddChildLast(Button_Play);
            this.RootWidget.AddChildLast(Button_Stop);
            this.RootWidget.AddChildLast(Button_Resume);
            this.RootWidget.AddChildLast(Button_Pause);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 23
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            download_url = new EditableText();
            download_url.Name = "download_url";
            DownloadBtn = new Button();
            DownloadBtn.Name = "DownloadBtn";
            EditableText_1 = new EditableText();
            EditableText_1.Name = "EditableText_1";
            EditableText_2 = new EditableText();
            EditableText_2.Name = "EditableText_2";

            // download_url
            download_url.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            download_url.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            download_url.LineBreak = LineBreak.Character;

            // DownloadBtn
            DownloadBtn.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            DownloadBtn.TextFont = new Font( FontAlias.System, 25, FontStyle.Regular);

            // EditableText_1
            EditableText_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_1.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            EditableText_1.LineBreak = LineBreak.Character;

            // EditableText_2
            EditableText_2.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_2.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            EditableText_2.LineBreak = LineBreak.Character;

            // DownloadUI

            // Dialog
            this.AddChildLast(download_url);
            this.AddChildLast(DownloadBtn);
            this.AddChildLast(EditableText_1);
            this.AddChildLast(EditableText_2);
            this.ShowEffect = new BunjeeJumpEffect()
            {
            };
            this.HideEffect = new TiltDropEffect();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 24
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Label_1 = new Label();
            Label_1.Name = "Label_1";
            TipPercentText = new EditableText();
            TipPercentText.Name = "TipPercentText";
            SliderPercent = new Slider();
            SliderPercent.Name = "SliderPercent";
            TotalText = new EditableText();
            TotalText.Name = "TotalText";
            label_0 = new Label();
            label_0.Name = "label_0";
            Label_Tip = new Label();
            Label_Tip.Name = "Label_Tip";
            TipLabel = new Label();
            TipLabel.Name = "TipLabel";
            Label_5 = new Label();
            Label_5.Name = "Label_5";
            TotalLabel = new Label();
            TotalLabel.Name = "TotalLabel";

            // Label_1
            Label_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_1.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            Label_1.LineBreak = LineBreak.Character;

            // TipPercentText
            TipPercentText.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            TipPercentText.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            TipPercentText.LineBreak = LineBreak.Character;

            // SliderPercent
            SliderPercent.MinValue = 0;
            SliderPercent.MaxValue = 100;
            SliderPercent.Value = 10;
            SliderPercent.Step = 1;

            // TotalText
            TotalText.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            TotalText.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            TotalText.LineBreak = LineBreak.Character;

            // label_0
            label_0.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            label_0.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            label_0.LineBreak = LineBreak.Character;

            // Label_Tip
            Label_Tip.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_Tip.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            Label_Tip.LineBreak = LineBreak.Character;

            // TipLabel
            TipLabel.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            TipLabel.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            TipLabel.LineBreak = LineBreak.Character;

            // Label_5
            Label_5.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_5.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            Label_5.LineBreak = LineBreak.Character;

            // TotalLabel
            TotalLabel.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            TotalLabel.Font = new Font( FontAlias.System, 25, FontStyle.Regular);
            TotalLabel.LineBreak = LineBreak.Character;

            // Scene
            this.RootWidget.AddChildLast(Label_1);
            this.RootWidget.AddChildLast(TipPercentText);
            this.RootWidget.AddChildLast(SliderPercent);
            this.RootWidget.AddChildLast(TotalText);
            this.RootWidget.AddChildLast(label_0);
            this.RootWidget.AddChildLast(Label_Tip);
            this.RootWidget.AddChildLast(TipLabel);
            this.RootWidget.AddChildLast(Label_5);
            this.RootWidget.AddChildLast(TotalLabel);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        private List <CorrectionExtent> GetCorrections(
            int whatIfIndex,
            int confirmIndex,
            ParameterAst[] parameterAsts,
            ParamBlockAst paramBlockAst,
            FunctionDefinitionAst funcDefnAst)
        {
            var filePath          = funcDefnAst.Extent.File;
            var correctionExtents = new List <CorrectionExtent>();

            if (paramBlockAst != null)
            {
                if (whatIfIndex != -1)
                {
                    correctionExtents.Add(GetCorrectionToRemoveParam(whatIfIndex, parameterAsts));
                }

                if (confirmIndex != -1)
                {
                    correctionExtents.Add(GetCorrectionToRemoveParam(confirmIndex, parameterAsts));
                }

                AttributeAst attributeAst = paramBlockAst.GetCmdletBindingAttributeAst();

                // check if it has cmdletbinding attribute
                if (attributeAst != null)
                {
                    NamedAttributeArgumentAst shouldProcessAst = attributeAst.GetSupportsShouldProcessAst();
                    if (shouldProcessAst != null)
                    {
                        ExpressionAst argAst;
                        if (!shouldProcessAst.GetValue(out argAst) &&
                            argAst != null)
                        {
                            // SupportsShouldProcess is set to something other than $true.
                            // Set it to $true
                            correctionExtents.Add(GetCorrectionsToSetShouldProcessToTrue(argAst));
                        }
                    }
                    else
                    {
                        // add supportsshouldprocess to the attribute
                        correctionExtents.Add(GetCorrectionToAddShouldProcess(attributeAst));
                    }
                }
                else
                {
                    // has no cmdletbinding attribute
                    // hence, add the attribute and supportsshouldprocess argument
                    correctionExtents.Add(GetCorrectionToAddAttribute(paramBlockAst));
                }
            }
            else
            {
                // function doesn't have param block
                // remove the parameter list
                // and create an equivalent param block
                // add cmdletbinding attribute and add supportsshouldprocess to it.
                correctionExtents.Add(GetCorrectionToRemoveFuncParamDecl(funcDefnAst, ast, tokens));
                correctionExtents.Add(GetCorrectionToAddParamBlock(funcDefnAst, parameterAsts));
            }

            // This is how we handle multiple edits-
            // create separate edits
            // apply those edits to the original script extent
            // and then give the corrected extent as suggested correction.

            // sort in descending order of start position
            correctionExtents.Sort((x, y) =>
            {
                var xRange = (Range)x;
                var yRange = (Range)y;
                return(xRange.Start < yRange.Start ? 1 : (xRange.Start == yRange.Start ? 0 : -1));
            });

            var editableText       = new EditableText(funcDefnAst.Extent.Text);
            var funcDefAstStartPos = funcDefnAst.Extent.ToRange().Start;

            foreach (var correctionExtent in correctionExtents)
            {
                var shiftedCorrectionExtent = Normalize(funcDefAstStartPos, correctionExtent);
                editableText.ApplyEdit(shiftedCorrectionExtent);
            }

            var result = new List <CorrectionExtent>();

            result.Add(
                new CorrectionExtent(
                    funcDefnAst.Extent.StartLineNumber,
                    funcDefnAst.Extent.EndLineNumber,
                    funcDefnAst.Extent.StartColumnNumber,
                    funcDefnAst.Extent.EndColumnNumber,
                    editableText.ToString(),
                    funcDefnAst.Extent.File));
            return(result);
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            // Set all initials for startup, draw and set data.
            getData();
            view_TEXT                 = "Welcome to Virtual Terminal\n(C)2014 Tactician Studios LLC Software Team\nVersion:" + software + "\nUse '?' for list of common commands\n";
            sceneBackgroundPanel      = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            CMD_LINE      = new EditableText();
            CMD_LINE.Name = "CMD_LINE";
            dev           = new MessageDialog();
            dev.Name      = "dev";
            bg            = new Panel();
            bg.Name       = "bg";
            cmd           = new Label();
            cmd.Name      = "cmd";
            Enter         = new Button();
            Enter.Name    = "Enter";
            Hack          = new Button();
            Hack.Name     = "Hack";
            Free          = new Button();
            Free.Name     = "Free";


            isSudo     = false;
            Initialize = false;
            packets    = 0;
            // sceneBackgroundPanel
            sceneBackgroundPanel.BackgroundColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);

            // Terminal
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(CMD_LINE);
            this.RootWidget.AddChildLast(bg);
            this.RootWidget.AddChildLast(Enter);
            this.RootWidget.AddChildLast(Hack);
            this.RootWidget.AddChildLast(Free);
            this.RootWidget.AddChildLast(dev);

            // CMD_LINE
            CMD_LINE.TextColor = new UIColor(102f / 255f, 255f / 255f, 0f / 255f, 255f / 255f);
            CMD_LINE.Font      = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            CMD_LINE.LineBreak = LineBreak.Character;

            // bg
            bg.BackgroundColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            bg.Clip            = true;
            bg.AddChildLast(cmd);

            // cmd
            cmd.TextColor         = new UIColor(0f / 255f, 255f / 255f, 87f / 255f, 255f / 255f);
            cmd.Font              = new UIFont(FontAlias.System, 18, FontStyle.Bold);
            cmd.TextTrimming      = TextTrimming.Character;
            cmd.LineBreak         = LineBreak.Word;
            cmd.VerticalAlignment = VerticalAlignment.Top;

            // Enter
            Enter.TextColor             = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Enter.TextFont              = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Enter.BackgroundFilterColor = new UIColor(0f / 255f, 255f / 255f, 36f / 255f, 255f / 255f);
            Enter.TouchEventReceived   += (sender, e) => update();
            Enter.KeyEventReceived     += (sender, e) => update(e);

            Hack.TextColor             = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Hack.TextFont              = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Hack.BackgroundFilterColor = new UIColor(0f / 255f, 255f / 255f, 36f / 255f, 255f / 255f);
            Hack.TouchEventReceived   += (sender, e) => hackPSN();
            Hack.KeyEventReceived     += (sender, e) => hackPSN(e);
            Hack.Enabled = false;

            Free.TextColor             = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Free.TextFont              = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Free.BackgroundFilterColor = new UIColor(0f / 255f, 255f / 255f, 36f / 255f, 255f / 255f);
            Free.TouchEventReceived   += (sender, e) => PSN();
            Free.KeyEventReceived     += (sender, e) => PSN(e);
            Free.Enabled = false;

            dev.Visible = false;
            dev.Enabled = false;

            dev.ButtonPressed        += (sender, e) => closeInfo();
            dev.CustomBackgroundColor = new UIColor(1.0f, 1.0f, 1.0f, 0.5f);
            dev.KeyEventReceived     += (sender, e) => closeInfo(e);
            dev.TouchEventReceived   += (sender, e) => closeInfo();
            SetWidgetLayout(orientation);
            UpdateLanguage();
        }
Ejemplo n.º 27
0
        public void LocateExternalPlayerExecutable(Choice selector, EditableText textBox, Choice localFixedDrive)
        {
            string driveLetterToScan = localFixedDrive.Chosen as String;
            DriveInfo dInfo = new DriveInfo(driveLetterToScan);

            string startPath = null;

            switch ((ExternalPlayer.KnownPlayers)Enum.Parse(typeof(ExternalPlayer.KnownPlayers), selector.Chosen.ToString()))
            {
                case ExternalPlayer.KnownPlayers.WinDVD9:
                    startPath = DefaultWinDVD9Path;
                    break;

                case ExternalPlayer.KnownPlayers.PowerDVD8:
                    startPath = DefaultPowerDVD8Path;
                    break;

                case ExternalPlayer.KnownPlayers.TotalMediaTheater:
                    startPath = DefaultTMTPath;
                    break;

                // don't do anything if there's no mounting tool selected
                case ExternalPlayer.KnownPlayers.None:
                case ExternalPlayer.KnownPlayers.Other:
                default:
                    return;
            }

            if (File.Exists(Path.Combine(dInfo.RootDirectory.FullName, startPath)))
            {
                textBox.Value = Path.Combine(dInfo.RootDirectory.FullName, startPath);
            }
            else
            {
                // let's scan all the folders for it
                OMLApplication.Current.IsBusy = true;
                Application.DeferredInvokeOnWorkerThread(delegate
                {
                    exePath = ScanAllFoldersForExecutable(dInfo.RootDirectory.FullName, Path.GetFileName(startPath));

                }, delegate
                {
                    OMLApplication.Current.IsBusy = false;
                    if (exePath.Length > 0)
                    {
                        OMLApplication.DebugLine("[Settings] Found Image Mounter: {0}", exePath);
                        textBox.Value = exePath;
                    }
                    else
                    {
                        AddInHost.Current.MediaCenterEnvironment.Dialog(
                            string.Format("The external player was not" +
                                          " found on the [{0}] drive.", driveLetterToScan),
                            "Failed to Find External Player",
                            Microsoft.MediaCenter.DialogButtons.Ok,
                            5, true);
                    }
                }, null);
            }
        }
        private void SetupStartMenu()
        {
            //this.entryPoints = new Choice(this);
            //List<string> entryPointItems = new List<string>();
            //entryPointItems.Add("OML Home");
            //entryPointItems.Add("Movies");
            //entryPointItems.Add("TV");
            //entryPointItems.Add("Trailers");
            //entryPointItems.Add("Favorites");
            //entryPoints.Options = entryPointItems;
            //entryPoints.Chosen = DisplayFromTrailerFormat(OMLSettings.TrailersDefinition);
            //this.selectedTrailerResolution = DisplayFromTrailerFormat(OMLSettings.TrailersDefinition);

            this.name = new EditableText(this);
            this.name.Value = this.selectedItem.Title;

            this.Favorites = new Choice(this);
            List<StartMenuSelection> favoritesItems = new List<StartMenuSelection>();
            favoritesItems.Add(new StartMenuSelection("OML Home", Context.Home,string.Empty));
            favoritesItems.Add(new StartMenuSelection("Trailers", Context.Trailers, string.Empty));
            favoritesItems.Add(new StartMenuSelection("Search",Context.Search,string.Empty));
            favoritesItems.Add(new StartMenuSelection("Settings",Context.Settings, string.Empty));
            Context availableContext = this.GetFreeContext();
            int selectedItemIndex=0;
            foreach (UserFilter filt in OMLSettings.UserFilters)
            {
                StartMenuSelection filtSelection = new StartMenuSelection(string.Format("Favorites: {0}", filt.Name), availableContext, filt.ToString());
                favoritesItems.Add(filtSelection);
                if (this.selectedItem.ExtendedContext == filtSelection.ExtendedContext)
                    selectedItemIndex = favoritesItems.IndexOf(filtSelection);
            }
            Favorites.Options = favoritesItems;
            Favorites.ChosenIndex = selectedItemIndex;
            switch (this.selectedItem.Context)
            {
                case Context.Home:
                    Favorites.ChosenIndex = 0;
                    break;

                case Context.Trailers:
                    Favorites.ChosenIndex = 1;
                    break;

                case Context.Search:
                    Favorites.ChosenIndex = 2;
                    break;
                case Context.Settings:
                    Favorites.ChosenIndex = 3;
                    break;
            }
        }
 public EditValueTextWidget_v3(UIContext context) : base(context)
 {
     _editableWidget = (EditableText)typeof(EditableTextWidget).GetField("_editableText", BindingFlags.Instance | BindingFlags.NonPublic)
                       .GetValue(this);
 }
Ejemplo n.º 30
0
 private void SetupImpersonation()
 {
     this.impersonationUserName = new EditableText(this);
     this.impersonationPassword = new EditableText(this);
     this.impersonationUserName.Value = OMLSettings.ImpersonationUsername;
     this.impersonationPassword.Value = OMLSettings.ImpersonationPassword;
 }
 private void SetupFavoriteItem()
 {
     this.name = new EditableText(this);
     this.name.Value = this.filter.Name;
 }
Ejemplo n.º 32
0
        public TitleScreen(Sce.PlayStation.HighLevel.GameEngine2D.Scene scene, Sce.PlayStation.HighLevel.UI.Scene uiScene) : base(scene)
        {
            scene1 = scene;

            textureInfo     = new TextureInfo("/Application/textures/GravityNinja.png");
            sprite          = new SpriteUV();
            sprite          = new SpriteUV(textureInfo);
            sprite.Quad.S   = textureInfo.TextureSizef;
            sprite.Position = new Vector2(0.0f, 0.0f);

            playTexture         = new TextureInfo("/Application/textures/play.png");
            playSelectTexture   = new TextureInfo("/Application/textures/playSelected.png");
            playSprite          = new SpriteUV();
            playSprite          = new SpriteUV(playSelectTexture);
            playSprite.Quad.S   = playTexture.TextureSizef * 0.7f;
            playSprite.Position = new Vector2(Director.Instance.GL.Context.GetViewport().Width *0.78f - (playTexture.TextureSizef.X / 2), 200);

            controlTexture         = new TextureInfo("/Application/textures/cog.png");
            controlSprite          = new SpriteUV();
            controlSprite          = new SpriteUV(controlTexture);
            controlSprite.Quad.S   = controlTexture.TextureSizef * 0.05f;
            controlSprite.Position = new Vector2(10.0f, 10.0f);

            playBox.Min = playSprite.Position;
            playBox.Max = playSprite.Position + playSprite.TextureInfo.TextureSizef;

            controlsBox.Min = controlSprite.Position;
            controlsBox.Max = controlSprite.Position + controlSprite.TextureInfo.TextureSizef * 0.05f;

            label = new Sce.PlayStation.HighLevel.UI.Label();
            label.SetPosition(10, 90);
            label.Text = "Awaiting Input...";

            backButton = new Button();
            backButton.SetPosition(10, 140);
            backButton.SetSize(100, 50);
            backButton.Text          = "Back";
            backButton.ButtonAction += HandleButtonAction;

            inputButton = new Button();
            inputButton.SetPosition(380, 10);
            inputButton.SetSize(100, 50);
            inputButton.Text          = "Enter";
            inputButton.ButtonAction += HandleInputAction;

            command = new EditableText();
            command.SetPosition(10, 10);
            command.Text = "Enter Command";

            dialog = new Dialog();
            dialog.SetSize(500, 200);
            dialog.ShowEffect = new BunjeeJumpEffect(dialog, 0.4f);
            dialog.HideEffect = new TiltDropEffect();
            dialog.AddChildFirst(label);
            dialog.AddChildFirst(command);
            dialog.AddChildFirst(backButton);
            dialog.AddChildFirst(inputButton);

            scene.AddChild(sprite);
            scene.AddChild(playSprite);
            scene.AddChild(controlSprite);

            UISystem.SetScene(uiScene);
        }
Ejemplo n.º 33
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Label_1          = new Label();
            Label_1.Name     = "Label_1";
            txtIp            = new EditableText();
            txtIp.Name       = "txtIp";
            txtPort          = new EditableText();
            txtPort.Name     = "txtPort";
            Label_2          = new Label();
            Label_2.Name     = "Label_2";
            btn_Connect      = new Button();
            btn_Connect.Name = "btn_Connect";
            btn_Cancel       = new Button();
            btn_Cancel.Name  = "btn_Cancel";

            // Label_1
            Label_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_1.Font      = new Font(FontAlias.System, 20, FontStyle.Regular);
            Label_1.LineBreak = LineBreak.Character;

            // txtIp
            txtIp.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            txtIp.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            txtIp.LineBreak = LineBreak.Character;

            // txtPort
            txtPort.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            txtPort.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            txtPort.LineBreak = LineBreak.Character;

            // Label_2
            Label_2.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_2.Font      = new Font(FontAlias.System, 20, FontStyle.Regular);
            Label_2.LineBreak = LineBreak.Character;

            // btn_Connect
            btn_Connect.TextColor     = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            btn_Connect.TextFont      = new Font(FontAlias.System, 25, FontStyle.Regular);
            btn_Connect.ButtonAction += Connect;

            // btn_Cancel
            btn_Cancel.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            btn_Cancel.TextFont  = new Font(FontAlias.System, 25, FontStyle.Regular);

            // DLG_CONNECTION
            this.Visible = false;
            // Dialog
            this.AddChildLast(Label_1);
            this.AddChildLast(txtIp);
            this.AddChildLast(txtPort);
            this.AddChildLast(Label_2);
            this.AddChildLast(btn_Connect);
            this.AddChildLast(btn_Cancel);
            this.ShowEffect = new BunjeeJumpEffect()
            {
            };

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 34
0
        public GalleryPage()
            : base()
        {
            this.PageState = new PageState(this);
            this.PageState.IsCurrentPage = true;

            this.cachedSelectedValue = new IntRangedValue(this);
            this.cachedSelectedValue.Value = 0;

            this.PageStateEx = new PageStateEx();

            this.title = "movies";
            _JILtext = new EditableText(null, "JIL");
            JILtext.Value = "";
            JILtext.Submitted += new EventHandler(JILtext_Submitted);
        }
Ejemplo n.º 35
0
 public ValueSource(Element element)
 {
     accessible   = element.Accessible;
     text         = accessible.QueryText();
     editableText = accessible.QueryEditableText();
 }