コード例 #1
0
        private void ConfirmButton_Click(object sender, RoutedEventArgs e)
        {
            RegistryTableItem registryTableItem = new RegistryTableItem();

            registryTableItem.Name   = NewItemTextBox.Text;
            registryTableItem.Active = "true";
            try
            {
                Client.AddToRegistry(registry, registryTableItem);
                parent.LoadRegistryTableItems();


                this.Close();
            }catch (Exception ex)
            {
                MessageBox.Show("Invalid new input");
                Console.WriteLine(ex.ToString());
            }
        }