public override void edit()
        {
            GrupyTowaroweViewModel id = new GrupyTowaroweViewModel(false);

            if (WybranaGrupa != null)
            {
                id.WybraneId = WybranaGrupa.G_GRId;
                Messenger.Default.Send(id);
            }
        }
        private void AllPrroductGroups(bool x)
        {
            GrupyTowaroweViewModel workspace =
                this.Workspaces.FirstOrDefault(vm => vm is GrupyTowaroweViewModel)
                as GrupyTowaroweViewModel;

            if (workspace == null)
            {
                workspace = new GrupyTowaroweViewModel(x);
                this.Workspaces.Add(workspace);
            }

            this.SetActiveWorkspace(workspace);
        }
 private void editGrupa(GrupyTowaroweViewModel id)
 {
     this.CreateView(new GrupaTowarowaEditViewModel(id.WybraneId));
 }