Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void TabComponent_PointerExited(object sender, PointerRoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(current_tab.TabOriginalPathContent) && current_tab.TabContentType == ContentType.File)
     {
         ShowName.Begin();
     }
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
 private void TabComponent_PointerExited(object sender, PointerRoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(current_tab.PathContent))
     {
         ShowName.Begin();
     }
 }
Exemplo n.º 7
0
    // 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;
            });
        }
    }
Exemplo n.º 8
0
        /// <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"));
        }
Exemplo n.º 9
0
    // 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;
            });
        }
    }
Exemplo n.º 10
0
        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();
        }
Exemplo n.º 11
0
        /*
         * =============
         * = 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 { }
                });
            });
        }
Exemplo n.º 12
0
 public void Init(ShowName id)
 {
     ID    = id;
     image = GetComponent <Image>();
     ii    = GetComponent <IconItem>();
 }
Exemplo n.º 13
0
 private void OnValidate()
 {
     weapon   = GetComponent <Weapon>();
     showname = GetComponent <ShowName>();
     _Name    = "Reward " + weapon.TypeOfWeapon.ToString() + " " + weapon.GetNameOfWeapon();
 }
Exemplo n.º 14
0
 private void Awake()
 {
     showname = GetComponent <ShowName>();
 }
Exemplo n.º 15
0
 public void Init(ShowName id)
 {
     ID         = id;
     _image     = GetComponent <Image>();
     _altasItem = GetComponent <RuntimeAltasItem>();
 }
Exemplo n.º 16
0
 protected override void Awake()
 {
     base.Awake();
     showname = GetComponent <ShowName>();
 }