Exemple #1
0
        private void Transpose_A(object sender, RoutedEventArgs e)
        {
            result.Text = "";
            R1.Text     = "";
            R2.Text     = "";
            R3.Text     = "";
            R4.Text     = "";
            R5.Text     = "";
            R6.Text     = "";
            R7.Text     = "";
            R8.Text     = "";
            R9.Text     = "";

            FlyoutTranspose.Hide();
            try
            {
                R1.Text = A1.Text;
                if (A4.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R2.Text = A4.Text;
                }
                if (A7.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R3.Text = A7.Text;
                }
                if (A2.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R4.Text = A2.Text;
                }
                if (A5.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R5.Text = A5.Text;
                }
                if (A8.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R6.Text = A8.Text;
                }
                if (A3.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R7.Text = A3.Text;
                }
                if (A6.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R8.Text = A6.Text;
                }
                if (A9.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
                {
                    R9.Text = A9.Text;
                }
            }
            catch
            {
                ErrorFlyout.ShowAt((Button)sender);
            }
        }
Exemple #2
0
 private void Transpose_B(object sender, RoutedEventArgs e)
 {
     result.Text = "";
     R1.Text     = "";
     R2.Text     = "";
     R3.Text     = "";
     R4.Text     = "";
     R5.Text     = "";
     R6.Text     = "";
     R7.Text     = "";
     R8.Text     = "";
     R9.Text     = "";
     FlyoutTranspose.Hide();
     try
     {
         R1.Text = B1.Text;
         if (B4.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R2.Text = B4.Text;
         }
         if (B7.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R3.Text = B7.Text;
         }
         if (B2.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R4.Text = B2.Text;
         }
         if (B5.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R5.Text = B5.Text;
         }
         if (B8.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R6.Text = B8.Text;
         }
         if (B3.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R7.Text = B3.Text;
         }
         if (B6.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R8.Text = B6.Text;
         }
         if (B9.Visibility != Windows.UI.Xaml.Visibility.Collapsed)
         {
             R9.Text = B9.Text;
         }
     }
     catch
     {
         ErrorFlyout.ShowAt((Button)sender);
     }
 }