Esempio n. 1
0
        private void MaximizeComment()
        {
            try
            {
                if (this._currentViewState == KnowledgeMapCommentViewState.Minimized)
                {
                    this.SetValue(Canvas.LeftProperty, (double)this.GetValue(Canvas.LeftProperty) - (175));
                    this.Width             = 200;
                    this.Height            = 300;
                    this._currentViewState = KnowledgeMapCommentViewState.Maximized;
                    if (this.OnMaximizeComment != null)
                    {
                        this.OnMaximizeComment(this);
                    }
                }
            }
            catch (Exception ex)
            {
                SiliconStudio.DebugManagers.DebugReporter.Report(
                    SiliconStudio.DebugManagers.MessageType.Error,
                    "EjpControls - Knowledge Map Comment",
                    "Maximize Failed" +
                    "\nComment ID: " + this.CommentId.ToString() +
                    "\nError: " + ex.Message);

                this.Height = 200;
            }
        }
Esempio n. 2
0
        private void MinimizeComment()
        {
            this.SetValue(Canvas.LeftProperty, (double)this.GetValue(Canvas.LeftProperty) + (this.ActualWidth - 25));

            this.Height = 25;
            this.Width  = 25;

            this._currentViewState = KnowledgeMapCommentViewState.Minimized;
            if (this.OnMinimizeComment != null)
            {
                this.OnMinimizeComment(this);
            }
        }
Esempio n. 3
0
 private void MaximizeComment()
 {
     try
     {
         if (this._currentViewState == KnowledgeMapCommentViewState.Minimized)
         {
             this.SetValue(Canvas.LeftProperty, (double)this.GetValue(Canvas.LeftProperty) - (175));
             this.Width             = 200;
             this.Height            = 300;
             this._currentViewState = KnowledgeMapCommentViewState.Maximized;
             if (this.OnMaximizeComment != null)
             {
                 this.OnMaximizeComment(this);
             }
         }
     }
     catch (Exception)
     {
         this.Height = 200;
     }
 }
Esempio n. 4
0
 public KnowledgeMapComment()
 {
     InitializeComponent();
     this._currentViewState        = KnowledgeMapCommentViewState.Maximized;
     this._lb_Messages.ItemsSource = this._messages;
 }