private void AddProjectClick(object sender, RoutedEventArgs e) { _AddProject = new AddProject(); _AddProject.Owner = this; if (_AddProject.ShowDialog() == true) { Loading.start(); client.GetListProjectsAsync(); } else { Loading.start(); client.GetListProjectsAsync(); } }
private void bt_Project_Click(object sender, RoutedEventArgs e) { ServiceReference1.projects temp = dgProjects.SelectedItem as ServiceReference1.projects; _AddProject = new AddProject(); _AddProject.Owner = this; _AddProject.TextBoxNameProject.Text = temp.name; _AddProject.SaveProject.Content = _AddProject.edit_name; _AddProject.id_project = temp.id_project; if (_AddProject.ShowDialog() == true) { Loading.start(); client.GetListProjectsAsync(); } else { Loading.start(); client.GetListProjectsAsync(); } }