Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Логика взаимодействия для MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public bool comma = false;
- public MainWindow()
- {
- InitializeComponent();
- }
- private void Numbers(object sender, RoutedEventArgs e)
- {
- Button Any_but = (Button)sender;
- switch (Any_but.Content)
- {
- case "0":
- if (Tablo.Text != "0")
- {
- Tablo.Text += "0";
- }
- break;
- default:
- if (Tablo.Text == "0")
- {
- Tablo.Text = Convert.ToString(Any_but.Content);
- }
- else
- {
- Tablo.Text += Any_but.Content;
- }
- break;
- }
- }
- private void Comma_Click(object sender, RoutedEventArgs e)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment