void ReleaseDesignerOutlets()
        {
            if (ServiceAddressField != null)
            {
                ServiceAddressField.Dispose();
                ServiceAddressField = null;
            }

            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (OutputText != null)
            {
                OutputText.Dispose();
                OutputText = null;
            }
        }
예제 #2
0
 public MainPage InputName(string name)
 {
     NameField.Click();
     NameField.Clear();
     NameField.SendKeys(name);
     return(this);
 }
예제 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            hash ^= pattern_.GetHashCode();
            if (NameField.Length != 0)
            {
                hash ^= NameField.GetHashCode();
            }
            if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified)
            {
                hash ^= History.GetHashCode();
            }
            if (Plural.Length != 0)
            {
                hash ^= Plural.GetHashCode();
            }
            if (Singular.Length != 0)
            {
                hash ^= Singular.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!Page.IsPostBack)
            {
                NameField.Focus();

                var categoryId = CategoryId;
                var parentId   = ParentCategoryId;

                if (!string.IsNullOrEmpty(categoryId))
                {
                    var category = HccApp.CatalogServices.Categories.Find(categoryId);
                    if (category == null)
                    {
                        EventLog.LogEvent("Edit Category Page", "Could not find category with bvin " + categoryId,
                                          EventLogSeverity.Warning);
                        Response.Redirect("Categories.aspx");
                    }

                    LoadCategory(category);
                }
                else if (!string.IsNullOrEmpty(parentId))
                {
                    CategoryBreadCrumbTrail1.LoadTrail(parentId);
                }
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (NamespaceField != null)
            {
                NamespaceField.Dispose();
                NamespaceField = null;
            }

            if (AuthorField != null)
            {
                AuthorField.Dispose();
                AuthorField = null;
            }

            if (CopyrightField != null)
            {
                CopyrightField.Dispose();
                CopyrightField = null;
            }
        }
예제 #6
0
        private void Upload_Click(object sender, EventArgs e)
        {
            string Nm, PSW;

            Nm  = NameField.Text;
            PSW = PswField.Text;


            using (Films_dbEntities db = new Films_dbEntities())
            {
                var user = db.Users.Where(x => x.Name.Equals(Nm) && x.Password.Equals(PSW)).FirstOrDefault();

                if (user != null)
                {
                    MessageBox.Show("Sign In Succesfully");

                    this.Hide();


                    Main.ControlID.UserName = Nm;

                    var form2 = new Main();
                    form2.Closed += (s, args) => this.Close();
                    form2.Show();
                }
                else
                {
                    MessageBox.Show("password or Email is incorrect");
                    NameField.ResetText();
                    PswField.ResetText();
                }
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AddToListButton != null)
            {
                AddToListButton.Dispose();
                AddToListButton = null;
            }

            if (EmailField != null)
            {
                EmailField.Dispose();
                EmailField = null;
            }

            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (RemoveButton != null)
            {
                RemoveButton.Dispose();
                RemoveButton = null;
            }
        }
        public virtual void LoadData(AnimationGraphView graphView, NodeAsset nodeAsset, Dictionary <NodeAsset, BaseNodeUI> nodeMap)
        {
            ID = string.IsNullOrEmpty(nodeAsset.ID) ? Guid.NewGuid().ToString() : nodeAsset.ID;

            NameField.SetValueWithoutNotify(string.IsNullOrEmpty(nodeAsset.Data.Name) ? DefaultName : nodeAsset.Data.Name);
            _speedField.SetValueWithoutNotify(nodeAsset.Data.Speed);
        }
예제 #9
0
 public void SendMsg(string name, string email, string subject, string message)
 {
     NameField.SetInput(name);
     EmailField.SetInput(email);
     SubjectField.SetInput(subject);
     MsgField.SendKeys(message);
     SubmitBtn.SetSubmit();
 }
예제 #10
0
        public void SplitNameFieldTest1()
        {
            NameField nameField = new NameField();
            string    text      = "RTL Television";

            nameField.SplitNameField(text);
            Assert.AreEqual(text, nameField.Name);
            Assert.AreEqual(text, nameField.ToString());
        }
        void ReleaseDesignerOutlets()
        {
            if (AddButton != null)
            {
                AddButton.Dispose();
                AddButton = null;
            }

            if (AvailableField != null)
            {
                AvailableField.Dispose();
                AvailableField = null;
            }

            if (BrandField != null)
            {
                BrandField.Dispose();
                BrandField = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (DescriptionField != null)
            {
                DescriptionField.Dispose();
                DescriptionField = null;
            }

            if (ImageView != null)
            {
                ImageView.Dispose();
                ImageView = null;
            }

            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (PriceField != null)
            {
                PriceField.Dispose();
                PriceField = null;
            }

            if (UploadButton != null)
            {
                UploadButton.Dispose();
                UploadButton = null;
            }
        }
예제 #12
0
 public void FillAddNewMovieForm(AddMovie movie)
 {
     NameField.SendKeys(movie.Name);
     DescriptionField.SendKeys(movie.Description);
     ReleaseDate.SendKeys(movie.ReleaseDate);
     RunningTime.SendKeys(movie.RunningTime);
     Genre.SendKeys(movie.Genre);
     Position.SendKeys(movie.Position);
     AddButton.Click();
 }
예제 #13
0
 private void PassField_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ButtonLogin.PerformClick();
     }
     if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down || e.KeyCode == Keys.Left || e.KeyCode == Keys.Right)
     {
         NameField.Focus();
     }
 }
예제 #14
0
 public RuleInput(ScoolarshipRule rule)
 {
     InitializeComponent();
     this.Mode  = "Modify";
     this.Title = "Modify rule \"" + rule.Name + "\" ";
     AddNextButton.Visibility = Visibility.Hidden;
     NameField.Text           = rule.Name;
     Mark.Value    = double.Parse(rule.MinMark.ToString());
     Percent.Value = double.Parse(rule.PercToReach.ToString());
     NameField.Focus();
 }
예제 #15
0
        public void SplitNameFieldTest5()
        {
            NameField nameField    = new NameField();
            string    name         = "RTL Television";
            string    providerName = "RTL World";
            string    text         = name + ";" + providerName;

            nameField.SplitNameField(text);
            Assert.AreEqual(name, nameField.Name);
            Assert.AreEqual(providerName, nameField.ProviderName);
            Assert.AreEqual(text, nameField.ToString());
        }
예제 #16
0
        public void SplitNameFieldTest2()
        {
            NameField nameField = new NameField();
            string    name      = "RTL Television";
            string    shortName = "RTL";
            string    text      = name + "," + shortName;

            nameField.SplitNameField(text);
            Assert.AreEqual(name, nameField.Name);
            Assert.AreEqual(shortName, nameField.ShortName);
            Assert.AreEqual(text, nameField.ToString());
        }
예제 #17
0
        public void SplitNameFieldTest7()
        {
            NameField nameField = new NameField();
            string    name      = "RTL,|Television";
            string    shortName = "RTL.";
            string    text      = name + "," + shortName;

            nameField.SplitNameField(text);
            Assert.AreEqual(Helper.ReplacePipeWithColon(name), nameField.Name);
            Assert.AreEqual(Helper.ReplaceDotWithComma(shortName), nameField.ShortName);
            Assert.AreEqual(text, nameField.ToString());
        }
예제 #18
0
        public void SplitToNamesAndProviderNetworkTest8()
        {
            NameField nameField                   = new NameField();
            string    expectedNameShortName       = string.Empty;
            string    expectedProviderNetworkName = string.Empty;
            string    actualNameShortName         = string.Empty;
            string    actualProviderNetworkName   = string.Empty;
            string    completeString              = expectedNameShortName + (string.IsNullOrEmpty(expectedProviderNetworkName) ? string.Empty : ";" + expectedProviderNetworkName);

            nameField.SplitToNamesAndProviderNetwork(completeString, ref actualNameShortName, ref actualProviderNetworkName);
            Assert.AreEqual(expectedNameShortName, actualNameShortName);
            Assert.AreEqual(expectedProviderNetworkName, actualProviderNetworkName);
        }
예제 #19
0
        public void SplitToProviderAndNetworkTest6()
        {
            NameField nameField           = new NameField();
            string    expectedProvider    = " ";
            string    expectedNetwork     = " ";
            string    actualProvider      = string.Empty;
            string    actualNetwork       = string.Empty;
            string    providerNetworkPart = expectedProvider + (string.IsNullOrEmpty(expectedNetwork) ? string.Empty : "=" + expectedNetwork);

            nameField.SplitToProviderAndNetwork(providerNetworkPart, ref actualProvider, ref actualNetwork);
            Assert.AreEqual(expectedProvider, actualProvider);
            Assert.AreEqual(expectedNetwork, actualNetwork);
        }
예제 #20
0
        public void SplitToNameAndShortNameTest6()
        {
            NameField nameField         = new NameField();
            string    expectedName      = " ";
            string    expectedShortName = "RTL";
            string    actualName        = string.Empty;
            string    actualShortName   = string.Empty;
            string    nameShortNamePart = expectedName + (string.IsNullOrEmpty(expectedShortName) ? string.Empty : "," + expectedShortName);

            nameField.SplitToNameAndShortName(nameShortNamePart, ref actualName, ref actualShortName);
            Assert.AreEqual(expectedName, actualName);
            Assert.AreEqual(expectedShortName, actualShortName);
        }
        void HandleClicked(object sender, EventArgs e)
        {
            var name   = NameField.Text;
            var client = new JsonServiceClient(ServiceAddressField.Text);

            client.SendAsync <HelloResponse>(
                new Hello {
                Name = name
            },
                (response) => Append(response.Result),
                (response, error) => Append("ERROR: " + error.Message)
                );
            NameField.ResignFirstResponder();
        }
 private async void SaveContact()
 {
     if (NameField == null || NickField == null || NameField.Replace(" ", "") == "" || NickField.Replace(" ", "") == "")
     {
         string text = Resources.Resource.AddEditProfilePage_Alert;
         await UserDialogs.Instance.AlertAsync(text);
     }
     else
     {
         int userId = CrossSettings.Current.GetValueOrDefault("UserId", -1);
         _profileService.AddOrEditContact(NameField ?? "", NickField ?? "", DescriptionField ?? "", ImageSource, userId, _contact);
         await NavigationService.GoBackAsync();
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (DeleteButton != null)
            {
                DeleteButton.Dispose();
                DeleteButton = null;
            }

            if (DoneSwich != null)
            {
                DoneSwich.Dispose();
                DoneSwich = null;
            }

            if (ffff != null)
            {
                ffff.Dispose();
                ffff = null;
            }

            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (ordername != null)
            {
                ordername.Dispose();
                ordername = null;
            }

            if (OrderNamePicker != null)
            {
                OrderNamePicker.Dispose();
                OrderNamePicker = null;
            }

            if (OrderTableView != null)
            {
                OrderTableView.Dispose();
                OrderTableView = null;
            }

            if (SaveButton != null)
            {
                SaveButton.Dispose();
                SaveButton = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (NameField != null)
            {
                NameField.Dispose();
                NameField = null;
            }

            if (PasswordField != null)
            {
                PasswordField.Dispose();
                PasswordField = null;
            }
        }
예제 #25
0
        public List <string> RememberStudent()
        {
            List <string> student = new List <string>();

            student.Add(GroupIdField.GetAttribute("value"));
            student.Add(NameField.GetAttribute("value"));
            student.Add(LastNameField.GetAttribute("value"));
            student.Add(EnglishLevelDDL.GetAttribute("value"));
            student.Add(CvUrlField.GetAttribute("value"));
            student.Add(ImageUrlField.GetAttribute("value"));
            student.Add(EntryScoreField.GetAttribute("value"));
            student.Add(ApprovedByField.GetAttribute("value"));

            return(student);
        }
예제 #26
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 17;
         result = result * 23 + ((Condition != null) ? Condition.GetHashCode() : 0);
         result = result * 23 + ((Code != null) ? Code.GetHashCode() : 0);
         result = result * 23 + ((NameField != null) ? NameField.GetHashCode() : 0);
         result = result * 23 + ((DisplayField != null) ? DisplayField.GetHashCode() : 0);
         result = result * 23 + ((AdditionalFilterSql != null) ? AdditionalFilterSql.GetHashCode() : 0);
         result = result * 23 + ((AdditionalFilterDesc != null) ? AdditionalFilterDesc.GetHashCode() : 0);
         result = result * 23 + AdditionalFilterDesc.GetHashCode();
         return(result);
     }
 }
예제 #27
0
 public RegistrationPage FillAndSubmitRegistrationForm(string login, string email, string name, string surname, string phone, string password, string confirmPassword)
 {
     LoginField.SendKeys(login);
     EmailField.SendKeys(email);
     NameField.SendKeys(name);
     SurnameField.SendKeys(surname);
     PhoneField.SendKeys(phone);
     PasswordField.SendKeys(password);
     RepeatPasswordField.SendKeys(confirmPassword);
     TestDataHelper.ClickRandomDate(BirthDateField);
     UnitField.Click();
     EridCells = Factory.TryFindElements(By.XPath(RegistrationPageLocators.GridCellsLocator));
     TestDataHelper.ClickRandomGridCell(EridCells);
     ConfirmationButton.Click();
     return(new RegistrationPage());
 }
예제 #28
0
        public void SplitNameFieldTest6()
        {
            NameField nameField    = new NameField();
            string    name         = "RTL Television";
            string    shortName    = "RTL";
            string    providerName = "RTL World";
            string    networkName  = "Premiere";
            string    text         = name + "," + shortName + ";" + providerName + "=" + networkName;

            nameField.SplitNameField(text);
            Assert.AreEqual(name, nameField.Name);
            Assert.AreEqual(shortName, nameField.ShortName);
            Assert.AreEqual(providerName, nameField.ProviderName);
            Assert.AreEqual(networkName, nameField.NetworkName);
            Assert.AreEqual(text, nameField.ToString());
        }
예제 #29
0
        public List <string> RememberGroup()
        {
            List <string> group = new List <string>();

            group.Add(NameField.GetAttribute("value"));
            group.Add(LocationDDL.GetAttribute("value"));

            group.Add(DirectionDDL.GetAttribute("value"));
            group.Add(StartDate.GetAttribute("value"));
            group.Add(FinishDate.GetAttribute("value"));
            group.Add(TeachersField.GetAttribute("value"));
            group.Add(ExpertsField.GetAttribute("value"));
            group.Add(StageDDL.GetAttribute("value"));

            return(group);
        }
예제 #30
0
        void SetupMethod()
        {
            AddPlayerButton.Show();
            NameLabel.Show();
            NameField.Show();
            DoneButton.Show();

            CurrentGame.Setup();

            DoneButton.Hide();
            AddPlayerButton.Hide();
            NameLabel.Hide();
            NameField.Hide();
            SetupGameButton.Hide();
            RunGameButton.Show();
        }