Exemplo n.º 1
0
        //***********************
        //*                     *
        //*  ContentType_Click  *
        //*                     *
        //***********************
        // Edit content types.

        private void ContentType_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            ContentTypesDialog dlg = new ContentTypesDialog();

            dlg.LoadContentTypes(ContentTypes);

            if (dlg.ShowDialog().Value)
            {
                this.Cursor = System.Windows.Input.Cursors.Wait;

                ContentTypes = dlg.GetContentTypes();
                SaveContentTypes();

                this.Cursor = System.Windows.Input.Cursors.Arrow;
            }
        }
        //***********************
        //*                     *
        //*  ContentType_Click  *
        //*                     *
        //***********************
        // Edit content types.

        private void ContentType_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            ContentTypesDialog dlg = new ContentTypesDialog();

            dlg.LoadContentTypes(ContentTypes);

            if (dlg.ShowDialog().Value)
            {
                this.Cursor = System.Windows.Input.Cursors.Wait;

                ContentTypes = dlg.GetContentTypes();
                SaveContentTypes();

                this.Cursor = System.Windows.Input.Cursors.Arrow;
            }
        }