Example #1
0
        /**
         * コンストラクタ
         */
        private WvvTrimmingDialog(StorageFile source, WvvTrimmingCompleted completed)
        {
            this.mCompleted = new WeakReference <WvvTrimmingCompleted>(completed);

            this.InitializeComponent();
            this.DataContext = this;
            this.mTrimmingView.SetSource(source);
        }
Example #2
0
        /**
         * ダイアログを表示する。
         */
        public static async Task <bool> Show(StorageFile source, FrameworkElement anchor, WvvTrimmingCompleted completed)
        {
            if (null == completed)
            {
                return(false);
            }

            var content = new WvvTrimmingDialog(source, completed);
            await WvvDialog.Show(content, anchor);

            return(true);
        }