/***********************************************************************************************************************/ /* If the add button is pressed this event is called which opens up a new form to add that resurant to your calender. */ /***********************************************************************************************************************/ private void adding(object sender, EventArgs e, Resturants rest) { Button tsb = (Button)sender; AddingEvent ae = new AddingEvent(rest); ae.Show(); }
/*************************************/ /* Un-Used Method */ /*************************************/ private void button1_Click(object sender, EventArgs e) { AddingEvent ae = new AddingEvent(rests); ae.Show(); }