Esempio n. 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  LocalNote.MainPage
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("NoteViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  LocalNote.ViewModels.NoteViewModel
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  LocalNote.Views.SaveNoteDialog
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.ContentDialog"));
                userType.Activator = Activate_5_SaveNoteDialog;
                userType.AddMemberName("NoteTitle");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.Controls.ContentDialog
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Windows.UI.Xaml.Controls.ContentControl
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  String
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Esempio n. 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  LocalNote.MainPageData
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_MainPageData;
                userType.AddMemberName("Notes");
                userType.AddMemberName("enableEditbtn");
                userType.AddMemberName("AddNoteCommand");
                userType.AddMemberName("SaveNoteCommand");
                userType.AddMemberName("EditNoteCommand");
                userType.AddMemberName("DeleteNoteCommand");
                userType.AddMemberName("SelectedNote");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  System.Collections.Generic.List`1<LocalNote.LocalNoteModel>
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_2_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 3:   //  LocalNote.LocalNoteModel
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("Id");
                userType.AddMemberName("Title");
                userType.AddMemberName("Content");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Int32
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  String
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Boolean
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  LocalNote.AddCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  LocalNote.SaveCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  LocalNote.EditCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  LocalNote.DeleteCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  LocalNote.MainPage
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 13:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Esempio n. 3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  LocalNote.MainPageData
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_MainPageData;
                userType.AddMemberName("Notes");
                userType.AddMemberName("ShownNotes");
                userType.AddMemberName("NotesFolder");
                userType.AddMemberName("AddNoteCommand");
                userType.AddMemberName("SaveNoteCommand");
                userType.AddMemberName("EditNoteCommand");
                userType.AddMemberName("DeleteNoteCommand");
                userType.AddMemberName("SelectedNote");
                userType.AddMemberName("CurrentNoteReadOnly");
                userType.AddMemberName("CurrentNoteContent");
                userType.AddMemberName("SearchText");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  System.Collections.ObjectModel.ObservableCollection`1<LocalNote.LocalNoteModel>
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<LocalNote.LocalNoteModel>"));
                userType.CollectionAdd = VectorAdd_2_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 3:   //  System.Collections.ObjectModel.Collection`1<LocalNote.LocalNoteModel>
                userType               = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_3_Collection;
                userType.CollectionAdd = VectorAdd_3_Collection;
                xamlType               = userType;
                break;

            case 4:   //  LocalNote.LocalNoteModel
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("Id");
                userType.AddMemberName("Title");
                userType.AddMemberName("Content");
                userType.AddMemberName("File");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Int32
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  String
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Windows.Storage.StorageFile
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 8:   //  Windows.Storage.StorageFolder
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 9:   //  LocalNote.AddCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  LocalNote.SaveCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  LocalNote.EditCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  LocalNote.DeleteCommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  Boolean
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 14:   //  LocalNote.MainPage
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_14_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 16:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Esempio n. 4
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  LocalNote.AboutPage
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_AboutPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  LocalNote.MainPageData
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_MainPageData;
                userType.AddMemberName("Notes");
                userType.AddMemberName("SelectedNote");
                userType.AddMemberName("AddNoteCommand");
                userType.AddMemberName("SaveNoteCommand");
                userType.AddMemberName("EditNoteCommand");
                userType.AddMemberName("DeleteNoteCommand");
                userType.AddMemberName("AboutCommand");
                userType.AddMemberName("ExitCommand");
                userType.AddMemberName("ActiveContent");
                userType.AddMemberName("AddButtonIsEnabled");
                userType.AddMemberName("SaveButtonIsEnabled");
                userType.AddMemberName("EditButtonIsEnabled");
                userType.AddMemberName("DeleteButtonIsEnabled");
                userType.AddMemberName("SearchBoxIsEnabled");
                userType.AddMemberName("NoteContentIsReadOnly");
                userType.AddMemberName("Filter");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  System.Collections.ObjectModel.ObservableCollection`1<LocalNote.Note>
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<LocalNote.Note>"));
                userType.CollectionAdd = VectorAdd_5_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 6:   //  System.Collections.ObjectModel.Collection`1<LocalNote.Note>
                userType               = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_6_Collection;
                userType.CollectionAdd = VectorAdd_6_Collection;
                xamlType               = userType;
                break;

            case 7:   //  LocalNote.Note
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_Note;
                userType.AddMemberName("ID");
                userType.AddMemberName("Title");
                userType.AddMemberName("Content");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Int32
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  String
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  System.Windows.Input.ICommand
                userType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, null);
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 11:   //  Boolean
                xamlType = new global::LocalNote.LocalNote_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  LocalNote.MainPage
                userType           = new global::LocalNote.LocalNote_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }