示例#1
0
        private void ChangeName()
        {
            Changetxt objChangetxt = new Changetxt("Enter New Team Name", "Enter a new name for this team");

            objChangetxt.Owner = (((this.Parent as Grid).Parent as Grid).Parent as Border).Parent as Window;
            bool?dialogResult = objChangetxt.ShowDialog();

            if (dialogResult == true)
            {
                this.txtTeamName.Text = objChangetxt.txtOut.Text;
            }
        }
示例#2
0
        private void ChangeNote()
        {
            Changetxt objChangetxt = new Changetxt("Enter New Note", "Enter new note for this Player", true);

            objChangetxt.txtOut.Height = 50;
            objChangetxt.Owner         = (((this.Parent as Grid).Parent as Grid).Parent as Border).Parent as Window;
            bool?dialogResult = objChangetxt.ShowDialog();

            if (dialogResult == true)
            {
                this.txtNote.Text = objChangetxt.txtOut.Text;
            }
        }
示例#3
0
        private void ChangeNumber()
        {
            Changetxt objChangetxt = new Changetxt("Enter New Number", "Enter a new number for this Player", "Number");

            objChangetxt.Owner = (((this.Parent as Grid).Parent as Grid).Parent as Border).Parent as Window;

            bool?DialogResult = objChangetxt.ShowDialog();

            if (DialogResult == true)
            {
                this.txtNumber.Text = objChangetxt.txtOut.Text;
            }
        }