Esempio n. 1
0
 private void LoadMinttyHost()
 {
     if (_gitHost == null)
     {
         _gitHost = new NativeGitConsoleHost();
         RootGrid.Children.Add(_gitHost);
     }
 }
Esempio n. 2
0
 public void LoadMinttyHost()
 {
     if (_leftHost == null)
     {
         _leftHost = new NativeGitConsoleHost();
         LeftCol.Children.Add(_leftHost);
     }
 }
Esempio n. 3
0
 private void CleanLeft()
 {
     if (_leftHost != null)
     {
         LeftCol.Children.Remove(_leftHost);
         _leftHost.Reset();
         _leftHost = null;
     }
 }
Esempio n. 4
0
 private void CleanRight()
 {
     if (_rightHost != null)
     {
         RightCol.Children.Remove(_rightHost);
         _rightHost.Reset();
         _rightHost = null;
     }
 }
Esempio n. 5
0
        public void reloadHost()
        {
            if (_gitHost == null)
            {
                return;
            }

            _gitHost.killProcess();
            _gitHost.Dispose();
            _gitHost = new NativeGitConsoleHost();
            RootGrid.Children.Add(_gitHost);
        }
Esempio n. 6
0
        private void SplitView()
        {
            if (_rightHost != null)
            {
                RightColumnDef.Width = GridLength.Auto;
                CleanRight();
                return;
            }

            if (_rightHost == null)
            {
                _rightHost = new NativeGitConsoleHost();
            }
            RightColumnDef.Width = new GridLength(1, GridUnitType.Star);
            RightCol.Children.Add(_rightHost);
        }