public void StatAll() { type = "All"; Datacontrol temp = new Datacontrol(); temp.ChooseAllData(); Age = temp.GetAge(); Sex = temp.GetSex(); desease = temp.GetDesease(); isEmpty = temp.IsDataEmpty(); }
public Form1() { InitializeComponent(); DataTable ds, ds1; Datacontrol a = new Datacontrol(); a.ChooseAllData(); ds = a.Data; ds1 = a.Data1; PatientData.DataSource = ds; PatientData.ReadOnly = true; PatientData.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; PatientData.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; PatientData.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; PatientData1.DataSource = ds1; PatientData1.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; PatientData1.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; PatientData1.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; }