コード例 #1
0
ファイル: GitDiffViewModel.cs プロジェクト: dbobylev/Git4PL2
        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;
        }
コード例 #2
0
ファイル: FtoggleViewModel.cs プロジェクト: dbobylev/Git4PL2
        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);
        }
コード例 #3
0
        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();
        }
コード例 #4
0
 public CommandShowGitBlame(IIDEProvider IDEProvider, IGitAPI GitApi, ISettings Settings) : base("PluginCommandShowGitBlame")
 {
     _GitAPI        = GitApi;
     _IIDEProveider = IDEProvider;
     _Settings      = Settings;
 }
コード例 #5
0
 public CommandCheckOut(ITeamCodingProvider TeamCodingProvider, ISettings Settings, IIDEProvider IDEProvider) : base("PluginCommandCheckOut")
 {
     _TeamCodingProvider = TeamCodingProvider;
     _Settings           = Settings;
     _IDEProvider        = IDEProvider;
 }
コード例 #6
0
 public CommandShowGitDiff(IIDEProvider IDEProvider) : base("ShowGitDiff")
 {
     _IDEProvider = IDEProvider;
 }
コード例 #7
0
        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;
        }
コード例 #8
0
 public CommandSaveTextToRepository(IIDEProvider IDEProvider, IGitAPI GitAPI, IWarnings Warnings) : base("SaveTextToRepository")
 {
     _IDEProvider = IDEProvider;
     _GitAPI      = GitAPI;
     _Warnings    = Warnings;
 }
コード例 #9
0
 public CommandLoadTextFromRepository(IIDEProvider IDEProvider, IPlsqlCodeFormatter PlsqlCodeFormatter, IWarnings Warnings) : base("LoadTextFromRepository")
 {
     _IDEProvider        = IDEProvider;
     _PlsqlCodeFormatter = PlsqlCodeFormatter;
     _Warnings           = Warnings;
 }
コード例 #10
0
 public CommandShowFtoggle(IIDEProvider IDEProvider) : base("PluginCommandShowFtoggle")
 {
     _IDEProvider = IDEProvider;
 }
コード例 #11
0
 public TeamCodingChecks(IIDEProvider IDEProvider, ISettings Settings)
 {
     _IDEProvider = IDEProvider;
     _Settings    = Settings;
 }
コード例 #12
0
 public CommandShowDicti(IIDEProvider IDEProvider) : base("PluginCommandShowDicti")
 {
     _IDEProvider = IDEProvider;
 }
コード例 #13
0
 public PluginCommands(IIDEProvider IDEProvider)
 {
     _IDEProvider = IDEProvider;
 }