OpenKNX / Kaenx-Creator

Create your own KnxProd Files with UI.
MIT License
70 stars 20 forks source link

Use of Static Path in MainWindow.xaml.cs #6

Closed derGraph closed 2 years ago

derGraph commented 2 years ago

I'm getting an error if I try to import a Knxprod File. I think it has something to do with this code from MainWindow.xaml

Error message: image

private void ClickViewerKnxProd(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Diese Funktion lädt eine Statische Datei und ist nur für Entwicklungszwecke eingebaut.");
            ViewerWindow viewer = new ViewerWindow(new Viewer.ImporterKnxProd(@"C:\Users\u6\Downloads\output.knxprod"));
            viewer.Show();
        }
thewhobox commented 2 years ago

You dont import. you want to use the ProdViewer with a KnxProd.

As the Message before says its a static path for developlment. Its not finished yet and you should not use this function.

To import an KnxProd use the "import" button in the MenuBar. Then you can open the application in the ProdViewer by right clicking on the version in the application view.