コード例 #1
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            var EditApartmentWindow = new AddAgentsWindow(AgentsDataGrid.SelectedItem as Agents);

            if (EditApartmentWindow.ShowDialog() == true)
            {
                AgentsList = Core.Root.Agents.ToArray();
            }
        }
コード例 #2
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            var NewAgentWindow = new AddAgentsWindow(new Agents());

            if (NewAgentWindow.ShowDialog() == true)
            {
                AgentsList = Core.Root.Agents.ToArray();
            }
        }