Пример #1
0
        public void DeleteFileTest()
        {
            string filepath = "/";
            string filename = @"Web services testing - episode 2.pptx";
            string fullpath = filepath + filename;

            DeleteFiles.UploadFile(fullpath);
            Assert.IsTrue(GetFileInf.CheckIfFileExcists(fullpath));
            DeleteFiles.DeleteFile(fullpath);
            Assert.IsFalse(GetFileInf.CheckIfFileExcists(fullpath));
        }
Пример #2
0
        public RecycleButton()
        {
            InitializeComponent();

            Loaded += delegate
            {
                TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(RecycleButtonBrush);
                TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(RecycleButtonBrush, true);
                TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(RecycleButtonBrush, false);
                TheButton.Click      += delegate { DeleteFiles.DeleteFile(Navigation.Pics[Navigation.FolderIndex], false); };
            };
        }
Пример #3
0
        public RecycleButton()
        {
            InitializeComponent();

            Loaded += delegate
            {
                TheButton.PreviewMouseLeftButtonDown += (s, x) => PreviewMouseButtonDownAnim(RecycleButtonBrush);
                TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(RecycleButtonBrush, true);
                TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(RecycleButtonBrush, false);

                if (!Properties.Settings.Default.DarkTheme)
                {
                    AnimationHelper.LightThemeMouseEvent(this, IconBrush);
                }

                TheButton.Click += delegate { DeleteFiles.DeleteFile(false); };
            };
        }