Exemplo n.º 1
0
        //setting main form text.
        void _tabbedView_DocumentActivated(object sender, DocumentEventArgs e)
        {
            string Katrin = ResourceService.GetString("Katrin");
            string format = "{0}-{1}";
            string title  = string.Format(format, e.Document.Caption, Katrin);

            _OwnerForm.Text = title;

            //send msg to navbar
            SelectedWorkSpaceChanged workSpaceMsg = new  SelectedWorkSpaceChanged();
            IWorkspace1 workspace = e.Document.Control as IWorkspace1;

            workSpaceMsg.ModuleName    = workspace.ObjectName;
            workSpaceMsg.WorkSpaceName = workspace.ObjectName;
            workspace.Activated();
            //workSpaceMsg.ObjectName = this.ObjectName;
            EventAggregationManager.SendMessage(workSpaceMsg);
        }
Exemplo n.º 2
0
 public new void Handle(SelectedWorkSpaceChanged message)
 {
     this.FocusModule(message.ModuleName);
 }