Ejemplo n.º 1
0
        public void Formatting(string widget = "")

        {
            if (widget == "Sparkline")

            {
                NumberFormat.SelectDropdown("Time");
            }

            NumberFormat.SelectDropdown("Number");

            Decimal.SelectDropdown("3");

            ShowCommas.Clicks();

            if (widget == "" || widget == "Heatmap")

            {
                AddCondition.Clicks();

                AddConditionTo.EnterText("10000");

                AddConditionFrom.EnterText("90000");

                ColorSelect.Clicks();

                SelectColor.Clicks();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the Click event of the NewCnd_Button control. Calls a new <see cref="Dialogs.AddCondition"/> dialog to add a condition to the database. If a condition has been added the list of conditions is refreshed
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void newCnd_ButtonClick(object sender, EventArgs e)
 {
     using (AddCondition ac1 = new AddCondition())
     {
         DialogResult AddConditionResult = ac1.ShowDialog();
         if (AddConditionResult == DialogResult.OK)
         {
             RefreshList();
         }
     }
 }