static void Main(string[] args) { //delegate를 정의 후 호출 Onj onj1 = new Onj("아예아예~"); ShowName act1 = onj1.DisplayToWindow; act1(); //Action delegate를 이용 Onj onj2 = new Onj("뚜루뚜루뚜루"); Action act2 = onj2.DisplayToWindow; act2(); //Action무명 메소드 이용 Onj onj3 = new Onj("블랙핑크"); Action act3 = delegate() { onj3.DisplayToWindow(); }; act3(); //Action delegate에 람다식 이용 Onj onj4 = new Onj("후잉"); Action act5 = () => onj4.DisplayToWindow(); act5(); }
private void TabComponent_PointerExited(object sender, PointerRoutedEventArgs e) { if (!string.IsNullOrEmpty(current_tab.TabOriginalPathContent) && current_tab.TabContentType == ContentType.File) { ShowName.Begin(); } }
static void Main(string[] args) { // delegate를 정의 후 호출 Onj onj1 = new Onj("실무개발자닷넷교육"); ShowName act1 = onj1.DisplayToWindow; act1(); // Action delegate를 이용 Onj onj2 = new Onj("오라클자바커뮤니티"); Action act2 = onj2.DisplayToWindow; act2(); //Action무명 메소드 이용 Onj onj3 = new Onj("오라클자바커뮤니티교육센터"); Action act3 = delegate() { onj3.DisplayToWindow(); }; act3(); //Action delegate에 람다식 이용 Onj onj4 = new Onj("oraclejavacommunity"); Action act5 = () => onj4.DisplayToWindow(); act5(); }
public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (ShowName.Length != 0) { hash ^= ShowName.GetHashCode(); } if (ShowIcon.Length != 0) { hash ^= ShowIcon.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (OpenLevel != 0) { hash ^= OpenLevel.GetHashCode(); } return(hash); }
public static void Main() { Onj onj1 = new Onj("Education"); ShowName act1 = onj1.DisplayToWindow; act1(); Onj onj2 = new Onj("OJC"); Action act2 = onj2.DisplayToWindow; act2(); Onj onj3 = new Onj("OJC EDU"); Action act3 = delegate() { onj3.DisplayToWindow(); }; act3(); Onj onj4 = new Onj("OJC"); Action act5 = () => onj4.DisplayToWindow(); act5(); }
private void TabComponent_PointerExited(object sender, PointerRoutedEventArgs e) { if (!string.IsNullOrEmpty(current_tab.PathContent)) { ShowName.Begin(); } }
// Start is called before the first frame update void Start() { ShowName id = ShowName.ICON_1; foreach (Transform trans in transform) { RuntimeAltasItem altasItem = trans.gameObject.AddComponent <RuntimeAltasItem>(); ShowItem item = trans.gameObject.AddComponent <ShowItem>(); item.Init(id); id++; item.AddListener(() => { _selectedItem = item; _altasItem = altasItem; }); } }
/// <summary> /// 保存视图 /// </summary> /// <param name="ShowNames"></param> /// <param name="TableUrl"></param> /// <returns></returns> public ContentResult saveview(string[] ShowNames, string TableUrl) { TableViewConfig.Delete(TableUrl, CurrentUser.UserName); foreach (string ShowName in ShowNames) { //TableViewConfig oldconfig = TableViewConfig.GetEntity(TableUrl, CurrentUser.UserName, ShowName); //if (oldconfig == null) //{ TableViewConfig config = new TableViewConfig(); config.ShowName = ShowName; config.TableUrl = TableUrl; config.Sort = ShowName.IndexOf(ShowName); config.UserName = CurrentUser.UserName; config.InsertAndReturnIdentity(); //} } return(Content("ok")); }
// Start is called before the first frame update void Start() { ShowName id = ShowName.ICON1; foreach (Transform tran in transform) { IconItem ii = tran.gameObject.AddComponent <IconItem>(); ShowItem si = tran.gameObject.AddComponent <ShowItem>(); si.Init(id); id++; si.AddListener(() => { selectItem = si; iItem = ii; }); } }
static void Main(string[] args) { Onj onj1 = new Onj("실무 개발자 닷넷교육"); ShowName act1 = onj1.DisplayToWindow; act1(); Onj onj2 = new Onj("오라클자바커뮤니티"); Action act2 = onj2.DisplayToWindow; act2(); Onj onj3 = new Onj("오라클자바커뮤니티 닷넷교육"); Action act3 = delegate() { onj3.DisplayToWindow(); }; act3(); Onj onj4 = new Onj("oraclejavacommunity"); Action act5 = () => onj4.DisplayToWindow(); act5(); }
/* * ============= * = FUNCTIONS = * ============= */ private void SetMessenger() { Messenger.Default.Register <EditorViewNotification>(this, async(notification_ui) => { await DispatcherHelper.ExecuteOnUIThreadAsync(() => { try { SetTheme(); } catch { } }); }); Messenger.Default.Register <STSNotification>(this, async(nm) => { await DispatcherHelper.ExecuteOnUIThreadAsync(async() => { try { if (nm.ID.ID_Tab == current_tab.ID && nm.ID.ID_TabsList == current_list) { switch (nm.Type) { case TypeUpdateTab.TabUpdated: UpdateTabInformations(); break; case TypeUpdateTab.TabDeleted: ShowName.Begin(); break; case TypeUpdateTab.TabNewModifications: current_tab.TabNewModifications = true; await TabsWriteManager.PushUpdateTabAsync(current_tab, current_list, false); UpdateTabInformations(); break; } } } catch { } }); }); Messenger.Default.Register <TabSelectedNotification>(this, async(nm) => { await DispatcherHelper.ExecuteOnUIThreadAsync(async() => { try { if (nm.tabID == current_tab.ID && nm.tabsListID == current_list) { switch (nm.contactType) { case ContactTypeSCEE.GetCodeForTab: await TabsWriteManager.PushTabContentViaIDAsync(new TabID { ID_Tab = current_tab.ID, ID_TabsList = current_list }, current_tab.TabContentTemporary, true); break; } } } catch { } }); }); }
public void Init(ShowName id) { ID = id; image = GetComponent <Image>(); ii = GetComponent <IconItem>(); }
private void OnValidate() { weapon = GetComponent <Weapon>(); showname = GetComponent <ShowName>(); _Name = "Reward " + weapon.TypeOfWeapon.ToString() + " " + weapon.GetNameOfWeapon(); }
private void Awake() { showname = GetComponent <ShowName>(); }
public void Init(ShowName id) { ID = id; _image = GetComponent <Image>(); _altasItem = GetComponent <RuntimeAltasItem>(); }
protected override void Awake() { base.Awake(); showname = GetComponent <ShowName>(); }