public Brick(int width, int height, int depth, Color color)
{ if (value > 0) this.width = value;
else Console.WriteLine("오류");
if(ProcessStarted != null)
ProcessStarted(this, EventArgs.Empty);
if (ProcessCompleted != null)
ProcessCompleted(this, EventArgs.Empty);
Console.WriteLine("Step1");
Console.WriteLine("Step2");
Console.WriteLine("Step3");
public event EventHandler ProcessStarted;
public event EventHandler ProcessCompleted;
get { return width * height * depth; }
static void Main(string[] args)
Brick b2 = new Brick(15, 20, 30, Color.Gray);
b1.ProcessStarted += B1_ProcessStarted;
private static void B1_ProcessStarted(object sender, EventArgs e)
throw new NotImplementedException();