コード例 #1
0
        // Opening worker, including a posted step
        void Open(object sender, EventArgs e)
        {
            //_171024_175829 inherit explorer location if there is no custom (#13)
            if (_Panel.CurrentLocation == null)
            {
                var location = Explorer.Location;
                if (location.Length > 0)
                {
                    _Panel.CurrentLocation = location;
                }
                else
                {
                    _Panel.CurrentLocation = "*";
                }
            }

            // the first update
            Explorer.EnterPanel(this);

            // go
            if (_Parent == null)
            {
                _Panel.Open();
            }
            else
            {
                _Panel.OpenReplace(_Parent);                 //???? is it correct to close the parent? should I better deny tricky openings?
            }
        }
コード例 #2
0
ファイル: Panel.cs プロジェクト: MoonDav/FarNet
        // Opening worker, including a posted step
        void Open(object sender, EventArgs e)
        {
            // the first update
            Explorer.EnterPanel(this);

            // go
            if (_Parent == null)
            {
                _Panel.Open();
            }
            else
            {
                _Panel.OpenReplace(_Parent);                 //???? is it correct to close the parent? should I better deny tricky openings?
            }
        }