Пример #1
0
 public void DeletePracticeApplication()
 {
     PracticeDelete.ClickOn();
     DeletePopup.ClickWait();
     softAssert.VerifyElementHasEqualInsideWindow(utility.TableCount(expertiseTableCount), Constant.tmpTableCount, PracticeWindowClose);
     //  softAssert.VerifyElementPresentInsideWindow(PracticeWindowClose, PracticeWindowClose);
     PracticeWindowClose.ClickOn();
 }
Пример #2
0
        private void PBox_Obrisi_Click(object sender, EventArgs e)
        {
            //PopUp forma
            string      _Id         = Lbl_Id.Text.Substring(0, Lbl_Id.Text.Length - 1);
            int         ClanId      = int.Parse(_Id);
            DeletePopup ObrisiClana = new DeletePopup(ClanId);

            ObrisiClana.ShowDialog();
            Parent.Parent.Parent.Hide();
            Parent.Parent.Parent.Dispose();
            Dashboard dash = new Dashboard();

            dash.ShowDialog();
        }
Пример #3
0
        public void DeleteAdmin()
        {
            HomePage home = new HomePage(this.driver);

            home.GoToPage();
            WebTablesPage webTables = home.GoToWebTables();

            this.driver.SwitchTo().Window(this.driver.WindowHandles[1]);
            webTables.FindAdminUserAndDeleteButton();
            DeletePopup deletePopup = webTables.DeleteAdmin();

            webTables = deletePopup.ClickOk();
            webTables.FindAdminUserAndDeleteButton();
            Assert.IsNull(webTables.AdminDeleteButton);
            this.driver.Quit();
        }
Пример #4
0
 private async void DeleteUser(MessageThread user)
 {
     try
     {
         if (user != null)
         {
             messagethreadUsersData = user;
         }
         DeletePopup DeletePopupview = new DeletePopup();
         DeletePopupview.BindingContext = this;
         await ShowPopup(DeletePopupview);
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
         ShowExceptionAlert(ex);
     }
 }
Пример #5
0
        private void ShowDeleteForm(string fileName)
        {
            FileInfo fi = new FileInfo(Path.Combine(_DigitalGoodPath, fileName));

            DeleteFileName.Text = fileName;
            DeleteFileSize.Text = FileHelper.FormatFileSize(fi.Length);
            IList <DigitalGood> goods = GetFileDigitalGoods(fi.Name);

            if (goods.Count > 0)
            {
                DeleteDigitalGoodsList.DataSource = goods;
                DeleteDigitalGoodsList.DataBind();
                // NEVER DEFAULT TO DELETE THE GOODS
                DeleteDigitalGoodsWithFile.Checked = false;
                DeleteGoodsMessage.Visible         = true;
                trDeleteGoods.Visible = true;
            }
            else
            {
                DeleteGoodsMessage.Visible = false;
                trDeleteGoods.Visible      = false;
            }
            DeletePopup.Show();
        }