public override void Excute() { get_par(); IT = new Item.TextItem(AP.get_item_count()); AP.add_item(IT); AP.unselect(); AP.set_edited(true); AP.logFile("add_text succeeded"); }
public override void Excute() { get_par(); AP.unselect(); IT = new Item.ImageItem(AP.get_item_count()); (IT as Item.ImageItem).set_URL(URL); AP.add_item(IT); AP.unselect(); AP.set_edited(true); AP.logFile("load_logo succeeded"); }
public override void get_par() { IT = AP.get_copied_item(); if (IT == null) { return; } if (IT is Item.ImageItem) { i = new Item.ImageItem((IT as Item.ImageItem), AP.get_item_count()); } else { i = new Item.TextItem((IT as Item.TextItem), AP.get_item_count()); } }