Пример #1
0
        public static EditBottomControl getInstance()
        {
            if (uni_class_inst == null)
            {
                uni_class_inst = new EditBottomControl();
            }

            return(uni_class_inst);
        }
Пример #2
0
        private void ImgViewGrid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            //SelectedImage.Imagepath = ImageLIstBox.
            Image clickedOnItem = (Image)GetParentDependencyObjectFromVisualTree((DependencyObject)e.MouseDevice.DirectlyOver, typeof(Image));

            if (clickedOnItem != null)
            {
                __Pathupdate         = PathUpdate.getInstance();
                __Pathupdate.PathImg = ((ImageDetails)clickedOnItem.DataContext).Path_Orginal;                                   //clickedOnItem.Source.ToString();
                ServiceProvider.Settings.EditImageByte = DSLR_Tool_PC.StaticClass.ConvertImageToByteArray(__Pathupdate.PathImg); //.Substring(8)) ;// ; //converterDemo(clickedOnItem);
                PhotoUtils.WaitForFile(__Pathupdate.PathImg);
                ServiceProvider.Settings.SelectedBitmap.DisplayEditImage = (WriteableBitmap)BitmapLoader.Instance.LoadImage(__Pathupdate.PathImg, BitmapLoader.LargeThumbSize, 0);

                //PhotoEditModel.GetInstance().ImagePath = Pathupdate.PathImg.Substring(8);
                PhotoEditModel.GetInstance().ImageData = ServiceProvider.Settings.EditImageByte;
                StaticClass.ImageListBoxSelectedItem = (ImageDetails)clickedOnItem.DataContext;

                EditBottomControl.getInstance().CallMouseClick(sender, e);
            }
        }