Esempio n. 1
0
 /// <summary>
 /// Sends user to MaterialListBuilder form with loaded information.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.Items.Count > 0)
     {
         closing = false;
         Material_List_Builder mlb = new Material_List_Builder(PreviewDocument);
         mlb.Show();
         Close();
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Writes XML Data to file and sends user to Material_List_Builder Form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            Hide();
            SetVariables();
            List <Tuple <string, string, string> > list = new List <Tuple <string, string, string> >();

            Estimate.WriteXml(firstName, lastName, address, state, city, zipCode, list);
            Material_List_Builder mlb = new Material_List_Builder(Estimate.ReadXml(lastName + ".xml"));

            mlb.Show();
        }
Esempio n. 3
0
 /// <summary>
 /// Sends user back to previous form.
 /// </summary>
 /// <param name="e"></param>
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     base.OnFormClosed(e);
     mlb.Show();
 }