public GitDiffViewModel(IDbObjectText DbObjectText, IIDEProvider IDE, IGitAPI Git, IWarnings Warnings, ISettings Settings) { _DbObjectText = DbObjectText; IDiffText DiffText = Git.GitDiff(DbObjectText); FillDocument(DiffText); CurrentBranch = Git.GetCurrentBranch(); CurrentDataBase = IDE.GetDatabaseConnection(); ObjectDescrName = DbObjectText.DescriptionName; ObjectFullPath = DbObjectText.GetRawFilePath(); if (Settings.UnexpectedBranch) { UnexpectedBranch = Warnings.IsBranchUnexsepted(CurrentBranch, true); } if (Settings.UnexpectedServer) { UnexpectedServer = Warnings.IsServerUnexsepted(CurrentDataBase, true); } SaveTextCommand = NinjectCore.Get <CommandSaveTextToRepository>(); LoadTextCommand = NinjectCore.Get <CommandLoadTextFromRepository>(); ButtonsClassicStyle = Settings.ClassicButtonsPosition; }
public FtoggleViewModel(ISettings Settings, IIDEProvider IDEProvider, string SelectedText) { var FtoggleQuery = string.Format(Settings.SQL_FTOGGLE, SelectedText); var CurrentToggle = IDEProvider.SQLQueryExecute <Ftoggle>(FtoggleQuery); FtoggleList = new ObservableCollection <Ftoggle>(CurrentToggle); }
public TeamCodingViewModel(ITeamCodingProvider TeamCodingProvider, IIDEProvider IDEProvider, ISettings Settings) { _TeamCodingProvider = TeamCodingProvider; UserLogin = Settings.TEAMCODING_LOGIN; DbObject = IDEProvider.GetDbObject <DbObject>(true); if (DbObject == null) { DbObject = new DbObject("SIA", "LOLKEK", "PACKAGE"); } CheckInSource = NinjectCore.Get <CommandCheckIn>(); CheckOutSource = NinjectCore.Get <CommandCheckOut>(); CheckInCommand = new RelayCommand(CheckIn, CheckInSource.CanExecute); CheckOutCommand = new RelayCommand(CheckOut, CheckOutSource.CanExecute); CheckOutList = new ObservableCollection <ICheckOutObject>(); FillCheckOutList(); }
public CommandShowGitBlame(IIDEProvider IDEProvider, IGitAPI GitApi, ISettings Settings) : base("PluginCommandShowGitBlame") { _GitAPI = GitApi; _IIDEProveider = IDEProvider; _Settings = Settings; }
public CommandCheckOut(ITeamCodingProvider TeamCodingProvider, ISettings Settings, IIDEProvider IDEProvider) : base("PluginCommandCheckOut") { _TeamCodingProvider = TeamCodingProvider; _Settings = Settings; _IDEProvider = IDEProvider; }
public CommandShowGitDiff(IIDEProvider IDEProvider) : base("ShowGitDiff") { _IDEProvider = IDEProvider; }
public TeamCodingFileProvider(ITeamCodingProviderChecks TeamCodingChecks, ISettings Settings, IIDEProvider IDEProvider) { Seri.Log.Here().Debug("TeamCodingFileProvider ctor"); _TeamCodingChecks = TeamCodingChecks; _Settings = Settings; var path = Settings.TEAMCODING_FILEPROVIDER_PATH; if (string.IsNullOrEmpty(path) || !Directory.Exists(path)) { throw new Exception("Не указано расположение файла TeamCoding"); } FILE_PATH = Path.Combine(path, FILE_NAME); _ServerName = IDEProvider.SQLQueryExecute <DummyString>(Settings.SQL_SERVERNAME)[0].Value; }
public CommandSaveTextToRepository(IIDEProvider IDEProvider, IGitAPI GitAPI, IWarnings Warnings) : base("SaveTextToRepository") { _IDEProvider = IDEProvider; _GitAPI = GitAPI; _Warnings = Warnings; }
public CommandLoadTextFromRepository(IIDEProvider IDEProvider, IPlsqlCodeFormatter PlsqlCodeFormatter, IWarnings Warnings) : base("LoadTextFromRepository") { _IDEProvider = IDEProvider; _PlsqlCodeFormatter = PlsqlCodeFormatter; _Warnings = Warnings; }
public CommandShowFtoggle(IIDEProvider IDEProvider) : base("PluginCommandShowFtoggle") { _IDEProvider = IDEProvider; }
public TeamCodingChecks(IIDEProvider IDEProvider, ISettings Settings) { _IDEProvider = IDEProvider; _Settings = Settings; }
public CommandShowDicti(IIDEProvider IDEProvider) : base("PluginCommandShowDicti") { _IDEProvider = IDEProvider; }
public PluginCommands(IIDEProvider IDEProvider) { _IDEProvider = IDEProvider; }