예제 #1
0
		public Window(double area, Glazed glazed, WindowProfile windowProfile)
		{
			Area = area;
			Glazed = glazed;
            WindowProfile = windowProfile;
		}
예제 #2
0
 private List<Window> GetWindows(DataGridView dgw)
 {
     List<Window> windows = new List<Window>();
     for (int i = 0; i < dgw.RowCount -1; i++)
     {
         double area = Convert.ToDouble(dgw[0, i].Value);
         Glazed glazed = new Glazed(dgw[1,i].Value.ToString());
         WindowProfile wp = new WindowProfile(Convert.ToDouble(dgw[2, i].Value), Convert.ToInt32(dgw[3, i].Value), Convert.ToInt32(dgw[4, i].Value));
         windows.Add(new Window(area, glazed, wp));
     }
     return windows;
 }