private void LoadMinttyHost() { if (_gitHost == null) { _gitHost = new NativeGitConsoleHost(); RootGrid.Children.Add(_gitHost); } }
public void LoadMinttyHost() { if (_leftHost == null) { _leftHost = new NativeGitConsoleHost(); LeftCol.Children.Add(_leftHost); } }
private void CleanLeft() { if (_leftHost != null) { LeftCol.Children.Remove(_leftHost); _leftHost.Reset(); _leftHost = null; } }
private void CleanRight() { if (_rightHost != null) { RightCol.Children.Remove(_rightHost); _rightHost.Reset(); _rightHost = null; } }
public void reloadHost() { if (_gitHost == null) { return; } _gitHost.killProcess(); _gitHost.Dispose(); _gitHost = new NativeGitConsoleHost(); RootGrid.Children.Add(_gitHost); }
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); }