Esempio n. 1
0
        /// <summary>
        /// modyfikuje obraz
        /// </summary>
        /// <param name="o"></param>
        /// <param name="p"></param>
        /// <param name="quantity"></param>
        public void ModifOrderFoto(OrderFoto o, Papers p, int quantity)
        {
            var all = FotoAppRAll.Ins;

            o.Type = all.TypeTexts
                     .GetTypeTextByTypeALang(new Types {
                TypeID = p.TypeID
            }, new Languages {
                Language = Pref.Preference.Lang
            }).Text;
            o.Size = all.SizeTexts
                     .GetSizeTextBySizeALang(new Sizes {
                Height = p.Height, Width = p.Width
            },
                                             new Languages {
                Language = Pref.Preference.Lang
            }).Text;
            o.Paper    = p;
            o.Quantity = quantity;
        }
Esempio n. 2
0
        /// <summary>
        /// Publikuje obraz
        /// </summary>
        public void Publish()
        {
            var or  = new OrderFoto();
            var all = FotoAppRAll.Ins;

            or.Type = all.TypeTexts
                      .GetTypeTextByTypeALang(new Types {
                TypeID = _papers.TypeID
            }, new Languages {
                Language = Pref.Preference.Lang
            }).Text;
            or.Size = all.SizeTexts
                      .GetSizeTextBySizeALang(new Sizes {
                Height = _papers.Height, Width = _papers.Width
            },
                                              new Languages {
                Language = Pref.Preference.Lang
            }).Text;
            or.Paper    = _papers;
            or.Quantity = _quantity;
            or.Image    = _image;
            or.Foto     = _foto;
            EventAgg.Agregator.EventAggregator.PublishOnCurrentThread(or);
        }