コード例 #1
0
        public async Task DeleteItem_Execute(UniverseSources source)
        {
            var universe = Universe(source);
            var command  = new DeleteProperty(new AsyncProperty(universe.Properties().Create("")));

            Assert.IsTrue(command.CanExecute(null));

            await command.ExecuteAsync(null);

            Assert.IsFalse(universe.Properties().Any());
        }
コード例 #2
0
        private void gridViewProperties_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            ComponentProperty property = gridViewProperties.Rows[e.RowIndex].Tag as ComponentProperty;

            if (e.ColumnIndex == DeletePropertyColumn.Index)
            {
                DeleteProperty.RaiseEventEx(this, new GenericEventArgs <ComponentProperty>(property));
            }
            else if (e.ColumnIndex == EditPropertyColumn.Index)
            {
                EditProperty.RaiseEventEx(this, new GenericEventArgs <ComponentProperty>(property));
            }
        }
コード例 #3
0
        //Delete existing Property
        internal void deleteProperty()
        {
            //First edit an existing property
            editProperty();
            System.Threading.Thread.Sleep(10000);
            Actions actions = new Actions(Global.Driver.driver);

            actions.MoveToElement(ClickingAddNewProperty);
            actions.Perform();
            //choosing delete option
            var editOption = Global.Driver.driver.FindElements(By.ClassName("segment"))[0].FindElement(By.ClassName("top-right-corner")).FindElement(By.TagName("i"));

            editOption.Click();
            System.Threading.Thread.Sleep(5000);
            //Deleting property
            DeleteProperty.Click();
            System.Threading.Thread.Sleep(5000);
            DeleteConfirm.Click();
        }
コード例 #4
0
 internal protected virtual T Visit(DeleteProperty node)
 {
     return(Visit(node as Expression));
 }
コード例 #5
0
 protected override EP_VP1 Visit(DeleteProperty node)
 {
     return(Visit(node as Expression));
 }