示例#1
0
 private void OnAppBarSaveIconClick(object sender, EventArgs e)
 {
     DescTextBox.Focus();
     if (CurrentItem.Name != null)
     {
         if (CurrentItem.Guid == null || CurrentItem.Guid == "00000000-0000-0000-0000-000000000000")
         {
             CurrentItem.Guid = Guid.NewGuid().ToString();
         }
         App.ViewModel.Save(CurrentItem);
         TileUtility.Instance.UpdateTile(CurrentItem);
         Common.Instance.NavigateToUrl(Globals.MainPageUri);
     }
     else
     {
         var toast = new ToastPrompt
         {
             Title                   = AppResources.MissingItemName,
             TextWrapping            = TextWrapping.Wrap,
             MillisecondsUntilHidden = 2000,
             Height                  = 150
         };
         toast.Show();
     }
 }
示例#2
0
        private void NotCriteriaList_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesRight();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The Zero Logical Criteria is met only if the sub criteria is NOT met,";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#3
0
        private void AwardRadio_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesLeft();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The Award / Rank criteria defines whether the player has met the requirments for an award or rank";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#4
0
        private void OrCriteriaList_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesRight();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The \"Or\" Logical Criteria List takes 2 or more Stat Criteria definitions."
                                   + " This condition is met if any of the Stat Criteria's under it are met.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#5
0
        private void GlobalStatRadio_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesLeft();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The player score criteria refers to score related criteria's, such as kills, deaths, "
                                   + " global or round score, and global kit, weapon, and vehicle stats.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#6
0
        private void GenericListRadio_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesRight();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The Generic Logical Criteria List takes 2 or more Stat Criteria definitions."
                                   + " This criteria is only met if ALL sub critiera's are met. A Generic list is mostly used when "
                                   + " there are multiple criteria's to be met to earn an award.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#7
0
        private void GlobalMultStatRadio_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesLeft();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "Global Stat Multiple Times is a special criteria. It defines that, each time the criteria is met, the player "
                                   + "can recieve the award agian. An example would be, If you created a Global Stat Mult Times criteria, and set its criteria "
                                   + "to 5,000 kills... Every time the player reaches 5,000 kills, he will recieve the award again.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#8
0
        private void DivCriteriaList_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesRight();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The Division Logical Criteria List takes 2 Stat Criteria definitions, and divides their values."
                                   + " An example of use would be getting the players Kills to Deaths ratio. A third \"Value Condition\""
                                   + " Can be defined. If a Value Condition is defined, this this criteria will be met if the 2 Stat Criteria's total value"
                                   + " equals, or is greater than the condition value.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#9
0
        private void ObjectStatRadio_CheckedChanged(object sender, EventArgs e)
        {
            UpdateCheckBoxesLeft();
            RadioButton Me = (RadioButton)sender;

            if (Me.Focused)
            {
                Me.Checked       = true;
                DescTextBox.Text = "The object stat criteria refers to the players weapon, kit, and vehicle related stats."
                                   + " Object stats only reflects the current rounds stats for a given player. To get the global value, you will"
                                   + " need to use the \"Player Global Score\" criteria. To get both the global value, and the round stat value, you will"
                                   + " need to create a \"Sum\" Logical Criteria List, And add a Player Global Stat criteria, and Object Stat Criteria.";
                DescTextBox.SelectAll();
                DescTextBox.SelectionColor = Color.Black;
            }
        }
示例#10
0
 private void WorkNameCombo_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         e.Handled = true;
         DescTextBox.Focus();
         return;
     }
     if (e.Key == Key.Space)
     {
         e.Handled = true;
         return;
     }
     e.Handled = true;
     //WorkNameCombo.IsDropDownOpen = true;
 }
        private void CleanUp()
        {
            TitleTextBox.Clear();
            AuthorTextBox.Clear();
            DescTextBox.Clear();
            ShortcutTextBox.Clear();

            IdTextBox.Clear();
            ToolTipTextBox.Clear();
            DefaultTextBox.Clear();

            CodeRichTextBox.Clear();
            LiteralListBox.Items.Clear();
            LiteralList.Clear();

            foreach (TreeNode tn in DllAndNamespaceTreeView.Nodes)
            {
                tn.Checked = false;
            }
        }