Exemple #1
0
        public TextViewer()
        {
            AvaloniaXamlLoader.Load(this);

            AvaloniaEdit = this.FindControl <AvaloniaEdit.TextEditor>("PART_AvaloniaEdit");
            Button       = this.FindControl <Button>("PART_Edit");

            Button.Click += (s, e) =>
            {
                EditResource?.Invoke();
            };
        }
Exemple #2
0
        public NameMapViewer()
        {
            AvaloniaXamlLoader.Load(this);

            DataGrid       = this.FindControl <DataGrid>("PART_DataGrid");
            Button         = this.FindControl <Button>("PART_Edit");
            TextBlockCount = this.FindControl <TextBlock>("PART_Count");

            Button.Click += (s, e) =>
            {
                EditResource?.Invoke();
            };
        }
Exemple #3
0
            public void Execute(object parameter)
            {
                EditResource dialog = new EditResource(resource);

                dialog.Show();
            }