SHARE
TWEET

Untitled

a guest Aug 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace TriangleExercise
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.  
  19.  
  20.         }
  21.  
  22.         private void Button1_Click(object sender, EventArgs e)
  23.         {
  24.             Triangle triangle = new Triangle
  25.             {
  26.                 TopLeft = new Point(x: 10, y: 10),
  27.                 BottomRight = new Point(50, 50),
  28.                 BottomLeft = new Point(x: 20, y: 20),
  29.                 Color = "Red"
  30.             };
  31.             triangle.DisplayInfo();
  32.         }
  33.  
  34.  
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top