//initiate Control Values //// ////Initiate Order Object: //public void ObjectShirtOrderCreator() //{ // ShirtOrder currentOrder = new ShirtOrder("1243431", "Shirt Order", "100% Cotton", 5, screens, tag, "00090000C", "00090000E", // orderTimeClock, dueDateSelector, descriptionNotes, taxForm, amountCollected, 5, // margin, labor); //}//End Initiate OrderObject private void OrderShirtTypeForm_Load(object sender, EventArgs e) { //Add tax to the screen for user TaxAmounttextBox.Text = OrdersESP.SalesTax().ToString(); // DateTime TimeStamp = new DateTime(); TimeStamp = DateTime.Now; //ScreensNumberNumericUpDown.Select(1, 1); decimal.TryParse(TaxAmounttextBox.Text, out taxForm); //Fill & sort ComboBox List <string> StreetTypes = new List <string>(); //Street, Circle, Road, Way, Avenue, Boulevard, Loop, Highway StreetTypes.Add("Street"); StreetTypes.Add("Circle"); StreetTypes.Add("Road"); StreetTypes.Add("Way"); StreetTypes.Add("Avenue"); StreetTypes.Add("Boulevard"); StreetTypes.Add("Loop"); StreetTypes.Add("Highway"); //sort StreetTypes List StreetTypes.Sort(); //add to comboBox foreach (string streets in StreetTypes) { //StreetTypecomboBox.Items.Add(streets); } //end foreach } //end Load Method
}//End ID //Method to be used while in the selection process for fast access to estimates //Class Order Inheritance will have the order total & the tax as well //Method MultiplyShirts public decimal MultiplyItems(int itemCount) { return((this.UnitPrice * itemCount) * (OrdersESP.SalesTax() + 1)); }//end Method MultiplyShirts