Esempio n. 1
0
        public WindowSystem.WindowItem GetPrevious(WindowBase instance, ref Breadcrumb breadcrumb, bool activeOnly = true)
        {
            var idx = -1;

            for (int i = breadcrumb.history.Count - 1; i >= 0; --i)
            {
                if (breadcrumb.history[i].instance == instance)
                {
                    idx = i;
                    break;
                }
            }

            while (idx >= 0)
            {
                var item = breadcrumb.history[idx];
                if (activeOnly == false || item.instance != null)
                {
                    return(item);
                }

                --idx;
            }

            return(default);
Esempio n. 2
0
 public void Initialize()
 {
     this.main = this.Create();
 }