예제 #1
0
 /// <summary>
 /// If the view's document is replaced, update the title;
 /// if the view's scale changes, update the status bar
 /// </summary>
 /// <param name="evt"></param>
 protected override void OnPropertyChanged(PropertyChangedEventArgs evt)
 {
     base.OnPropertyChanged(evt);
     if (evt.PropertyName == "Document")
     {
         UpdateFormInfo();
     }
     else if (evt.PropertyName == "DocScale")
     {
         SetStatusZoom?.Invoke(DocScale);
     }
 }
예제 #2
0
        //public String StatusMessage
        //{
        //    get { return myMessage; }
        //    set
        //    {
        //        myMessage = value;
        //        SetStatusMessage?.Invoke(myMessage);
        //    }
        //}

        /// <summary>
        /// This method is responsible for updating all of the view's visible
        /// state outside of the GoView itself--the title bar, status bar, and properties grid.
        /// </summary>
        public void UpdateFormInfo()
        {
            UpdateTitle();
            SetStatusMessage?.Invoke(Doc.Location);
            SetStatusZoom?.Invoke(DocScale);
        }