Пример #1
0
        public CheckInPage(string path)
        {
            InitializeComponent();
            SourceControlIntegration.BusyInProcessWhileDownloading = false;
            mPath = path;
            lblAnalyzedPath.Content = mPath;

            Init();

            SetCheckinGridView();
            CheckInFilesGrid.btnRefresh.AddHandler(Button.ClickEvent, new RoutedEventHandler(RefreshGrid));
            CheckInFilesGrid.AddToolbarTool("@CheckAllColumn_16x16.png", "Select All", new RoutedEventHandler(SelectAll));
            CheckInFilesGrid.AddToolbarTool("@UnCheckAllColumn_16x16.png", "Un-Select All", new RoutedEventHandler(UnSelectAll));
            CheckInFilesGrid.RowDoubleClick += CheckInFilesGrid_grdMain_MouseDoubleClick;
            CommentsTextBox.Focus();
        }
Пример #2
0
        private void SetCheckinGridView()
        {
            GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName);
            ObservableList <GridColView> viewCols = new ObservableList <GridColView>();

            view.GridColsView = viewCols;

            // TODO: use fields
            viewCols.Add(new GridColView()
            {
                Field = nameof(SourceControlFileInfo.Selected), Header = "Selected", WidthWeight = 10, StyleType = GridColView.eGridColStyleType.CheckBox, AllowSorting = true
            });
            viewCols.Add(new GridColView()
            {
                Field = nameof(SourceControlFileInfo.Status), Header = "Status", WidthWeight = 10, ReadOnly = true, AllowSorting = true
            });
            viewCols.Add(new GridColView()
            {
                Field = nameof(SourceControlFileInfo.Name), Header = "Item Name", WidthWeight = 20, AllowSorting = true
            });
            viewCols.Add(new GridColView()
            {
                Field = nameof(SourceControlFileInfo.FileType), Header = "Item Type", WidthWeight = 20, AllowSorting = true
            });
            viewCols.Add(new GridColView()
            {
                Field = nameof(SourceControlFileInfo.SolutionPath), Header = "Item Path", WidthWeight = 40, ReadOnly = true, AllowSorting = true
            });
            if (App.UserProfile.Solution.ShowIndicationkForLockedItems)
            {
                viewCols.Add(new GridColView()
                {
                    Field = nameof(SourceControlFileInfo.Locked), Header = "Locked", WidthWeight = 10, StyleType = GridColView.eGridColStyleType.Text
                });
            }
            CheckInFilesGrid.SetAllColumnsDefaultView(view);
            CheckInFilesGrid.InitViewItems();
        }
Пример #3
0
        public CheckInPage(string path)
        {
            InitializeComponent();
            SourceControlIntegration.BusyInProcessWhileDownloading = false;
            mPath = path;
            lblAnalyzedPath.Content = mPath;
            if (WorkSpace.Instance.Solution.SourceControl.GetSourceControlType == SourceControlBase.eSourceControlType.GIT)
            {
                xSourceControlBranchPanel.Visibility = Visibility.Visible;
                xSourceControlBranchLabel.Content    = WorkSpace.Instance.Solution.SourceControl.SourceControlBranch;
            }
            else
            {
                xSourceControlBranchPanel.Visibility = Visibility.Collapsed;
            }
            Init();

            SetCheckinGridView();
            CheckInFilesGrid.btnRefresh.AddHandler(Button.ClickEvent, new RoutedEventHandler(RefreshGrid));
            CheckInFilesGrid.AddToolbarTool("@CheckAllColumn_16x16.png", "Select All", new RoutedEventHandler(SelectAll));
            CheckInFilesGrid.AddToolbarTool("@UnCheckAllColumn_16x16.png", "Un-Select All", new RoutedEventHandler(UnSelectAll));
            CheckInFilesGrid.RowDoubleClick += CheckInFilesGrid_grdMain_MouseDoubleClick;
            CommentsTextBox.Focus();
        }