public static async Task <IndexPage> CreateIndexPage(bool hasCrud = true) { IndexPage page = new IndexPage(); IndexControl control = await IndexControl.CreateIndexControl(new IndexControlElementMedicalRecord(), new DataGridControlElementMedicalRecord(), crudBtnVisibility : hasCrud?Visibility.Visible : Visibility.Hidden); page.IndexPageGrid.Children.Add(control); page.ChangeTheme(); page.SwitchLanguage(); return(page); }
public static async Task <IndexPage> CreateIndexPage() { IndexPage page = new IndexPage(); IndexControl control = await IndexControl.CreateIndexControl(new IndexControlElementClinic(), new DataGridControlElementClinic()); page.IndexPageGrid.Children.Add(control); page.ChangeTheme(); page.SwitchLanguage(); return(page); }
public static async Task <IndexPage> CreateIndexPage() { IndexPage page = new IndexPage(); IndexControl control = await IndexControl.CreateIndexControl(new IndexControlElementDoctor(), new DataGridControlElementDoctor(), detailsBtnVisibility : System.Windows.Visibility.Visible); page.IndexPageGrid.Children.Add(control); page.ChangeTheme(); page.SwitchLanguage(); return(page); }