예제 #1
0
 public LayoutEditorPage()
 {
     InitializeComponent();
     model                   = new layoutEditorModel();
     DataContext             = model;
     keyDataForm.DataContext = null;
 }
예제 #2
0
 public LayoutEditorPage(MainWindow mainwindow)
 {
     mainWindow = mainwindow;
     InitializeComponent();
     model                   = mainwindow.layouteditormodel;
     DataContext             = model;
     keyDataForm.DataContext = null;
 }
예제 #3
0
        public MainWindow()
        {
            userTemplatesFolderPath = approot + "UserTemplates";
            Directory.CreateDirectory(userTemplatesFolderPath);

            macroFolderPath = approot + "UserMacros";
            Directory.CreateDirectory(macroFolderPath);

            keyboardinfomodel  = new keyboardInfoModel();
            layouteditormodel  = new layoutEditorModel();
            bindingeditormodel = new bindingEditorModel();

            /* Pass the main window for reference to other models in the page constructors. */
            keyboardInfoPage  = new KeyBoardInfoPage(this);
            layoutEditorPage  = new LayoutEditorPage(this);
            bindingEditorPage = new BindingEditorPage(this);
            macroEditorPage   = new MacroEditorPage(this);

            InitializeComponent();

            nav = NavigationService.GetNavigationService(mainFrame);

            mainFrame.Navigate(keyboardInfoPage);
        }