Beispiel #1
0
        /**************************************************************/
        /*                    Constructor/ Destructor
        /**************************************************************/

		internal FrmViewAnt(BaseAntProject aAntProject, BaseAnt aCurrentAnt) {
            fAntProject = aAntProject;
            fCurrentAnt = aCurrentAnt;

            InitializeComponent();

            // Create the Sort Manager for lvAll
            new ListViewSortManager(lvAll,
                                    new Type[] {
                                        typeof(ListViewTextSort),
                                        typeof(ListViewTextSort),
                                        typeof(ListViewInt32Sort),
                                        typeof(ListViewInt32Sort)
                                    });

            // Create the Sort Manager for lvTargets
            new ListViewSortManager(lvTargets,
                                    new Type[] {
                                        typeof(ListViewTextSort),
                                        typeof(ListViewInt32Sort),
                                        typeof(ListViewInt32Sort)
                                    });

            // Create the Sort Manager for lvProperties
            new ListViewSortManager(lvProperties,
                                    new Type[] {
                                        typeof(ListViewTextSort),
                                        typeof(ListViewInt32Sort),
                                        typeof(ListViewInt32Sort)
                                    });
        }
Beispiel #2
0
        protected override BaseTool GetCurrentTool() {
            if ((bool)PropertyRegistry.Get("UseAnt", false)) {
                if (fCurrentAnt == null || fCurrentAnt is NAnt) {
                    fCurrentAnt = new Ant();
                    fCurrentAnt.OnConsoleOutput += new RunProcess.ConsoleOutputEvent(DoRefreshConsole);
                    fCurrentAnt.OnRunCompleted += new EventHandler(DoRunCompleted);
                }
        	} else {
        		if (fCurrentAnt == null || fCurrentAnt is BeWise.SharpBuilderTools.Tools.Ant.Ant) {
                    fCurrentAnt = new NAnt();
                    fCurrentAnt.OnConsoleOutput += new RunProcess.ConsoleOutputEvent(DoRefreshConsole);
                    fCurrentAnt.OnRunCompleted += new EventHandler(DoRunCompleted);
                }
            }

            return fCurrentAnt;
        }