Esempio n. 1
0
        private void AddInControlButton_Click(object sender, RoutedEventArgs e)
        {
            AddControlWindow addControlWindow = new AddControlWindow();

            if (addControlWindow.ShowDialog() == true)
            {
            }
        }
Esempio n. 2
0
        private void SelectCommand()
        {
            AddControlWindow addWindow = new AddControlWindow(this.addControlCommand.CommandParameter);

            addWindow.Owner             = this;
            addWindow.CurrentCollection = this.DashboardReport.Reports;

            var dialogResult = addWindow.ShowDialog().Value;

            if (dialogResult)
            {
                //// Add the recently added tile to the dashboard report
                this.DashboardReport.Tiles.Add(addWindow.Tile);

                this.CreateTile(addWindow.Tile);
            }
        }