Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void VerifyTextBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         VerifyButton.PerformClick();
     }
 }
Exemplo n.º 2
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            // pause for a moment before animations
            await Task.Delay(App.AnimationSpeed);

            // Sequentially animate the login buttons. ScaleTo() makes them "grow" from a singularity to the full button size.
            await VerifyButton.ScaleTo(1, (uint)App.AnimationSpeed, Easing.SinIn);
        }
Exemplo n.º 3
0
 public SupplyOrderConfirmationWindow(SupplyOrder newOrder, Supplier supplier, SupplyOrderWindow window)
 {
     InitializeComponent();
     OrderEntriesListBox.ItemsSource = newOrder.OrderEntries;
     IdLabel.Content           = "SupplyOrder: " + newOrder.Id;
     SupplierNameLabel.Content = supplier.Name;
     ContactLabel.Content      = supplier.ContactInfo;
     TotalLabel.Content        = newOrder.Total;
     Cash_CreditLabel.Content  = newOrder.Paid ? "Cash" : "Credit";
     _observer = window;
     VerifyButton.Focus();
 }
Exemplo n.º 4
0
 public void PrimeNumbersApp_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         Close();
     }
     if (e.KeyCode == Keys.Enter)
     {
         VerifyButton.PerformClick();
     }
     if (e.KeyCode == Keys.ControlKey)
     {
         VerifyTextTick.Checked = !VerifyTextTick.Checked;
     }
 }