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

            _gitHost.killProcess();
            _gitHost.Dispose();
            _gitHost = new NativeGitConsoleHost();
            RootGrid.Children.Add(_gitHost);
        }
Exemple #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);
        }