コード例 #1
0
 /// <summary>
 /// Applications the view model_ delete canvas completed event.
 /// </summary>
 /// <param name="o">The o.</param>
 void applicationViewModel_DeleteCanvasCompletedEvent(object o)
 {
     applicationViewModel.CleanupDashboard();
     applicationViewModel.IsCurrentCanvasShared = false;
     applicationViewModel.CurrentCanvasId       = -1;
     msgDescription.Text = "Dashboard " + canvasName.Text + " has been deleted. Dashboard will be reset.";
     applicationViewModel.SelectedCanvasName = "";
     deleteSp.Visibility      = System.Windows.Visibility.Collapsed;
     spMsg_Success.Visibility = System.Windows.Visibility.Collapsed;
     continueSp.Visibility    = System.Windows.Visibility.Visible;
     canvasName.Text          = applicationViewModel.SelectedCanvasName;
 }
コード例 #2
0
        void applicationViewModel_DatasourceChangedEvent(object o, Client.Application.DatasourceChangedEventArgs e)
        {
            WelcomeStackPanel.Visibility = System.Windows.Visibility.Visible;

            tbWelcome.Text = "You are now connected to Data Source " + applicationViewModel.EwavSelectedDatasource.DatasourceNoCamelName + ".";
            tbMsg.Text     = "Right click on the canvas to start adding statistical gadgets and charts!";

            btnGadgetMenu.Visibility = System.Windows.Visibility.Visible;

            // BorderBrush="{StaticResource ConnectedBrush}" Background="{StaticResource Connected}"

            border.Background  = Application.Current.Resources["Connected"] as LinearGradientBrush;
            border.BorderBrush = Application.Current.Resources["ConnectedBrush"] as SolidColorBrush;
            //applicationViewModel.MainCanvas = this.dgCanvas;
            //applicationViewModel.LayoutRoot = this.LayoutRoot;
            applicationViewModel.CleanupDashboard();
            RemovePopup();
            grdDF.Children.Clear();
            AddDataFilter();
            AddVariables();
            spButtons.Visibility = System.Windows.Visibility.Visible;
        }