Example #1
0
 public CRMManager()
 {
     clientManager     = ModulesRegistrations.RegisterCRMModule().Resolve <IClientManager>();
     packageManager    = ModulesRegistrations.RegisterCRMModule().Resolve <IPackageManager>();
     clientTypeManager = ModulesRegistrations.RegisterCRMModule().Resolve <IClientTypeManager>();
     lineManager       = ModulesRegistrations.RegisterCRMModule().Resolve <ILineManager>();
 }
Example #2
0
 public OptimalPackageManager()
 {
     packageManager = GetContainer().Resolve <IPackageManager>();
     crmManager     = GetContainer().Resolve <ICRMManager>();
     smsManager     = GetContainer().Resolve <ISMSManager>();
     callManager    = GetContainer().Resolve <ICallManager>();
     lineManager    = GetContainer().Resolve <ILineManager>();
 }
Example #3
0
 public ReportsEngineManager()
 {
     _clientTypeManager = GetContainer().Resolve <IClientTypeManager>();
     _smsManager        = GetContainer().Resolve <ISMSManager>();
     _callManager       = GetContainer().Resolve <ICallManager>();
     _clientManager     = GetContainer().Resolve <IClientManager>();
     _packageManager    = GetContainer().Resolve <IPackageManager>();
     _lineManager       = GetContainer().Resolve <ILineManager>();
     _crmManager        = GetContainer().Resolve <ICRMManager>();
 }
Example #4
0
 public IEnumerable <LineDto> GetLines()
 {
     try
     {
         List <LineDto> lines;
         lock (obj)
         {
             lineManager = GetContainer().Resolve <ILineManager>();
             lines       = lineManager.GetLineDtos().ToList();
             return(lines);
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
         return(null);
     }
 }
Example #5
0
 public LineDto GetLine(string number)
 {
     try
     {
         LineDto line;
         lock (obj)
         {
             lineManager = GetContainer().Resolve <ILineManager>();
             line        = lineManager.GetLineDto(number);
             return(line);
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
         return(null);
     }
 }
Example #6
0
        public FoldingManager(IDocument document, ILineManager lineTracker)
        {
            this.document             = document;
            document.DocumentChanged += new DocumentEventHandler(DocumentChanged);

//			lineTracker.LineCountChanged  += new LineManagerEventHandler(LineManagerLineCountChanged);
//			lineTracker.LineLengthChanged += new LineLengthEventHandler(LineManagerLineLengthChanged);
//			foldMarker.Add(new FoldMarker(0, 5, 3, 5));
//
//			foldMarker.Add(new FoldMarker(5, 5, 10, 3));
//			foldMarker.Add(new FoldMarker(6, 0, 8, 2));
//
//			FoldMarker fm1 = new FoldMarker(10, 4, 10, 7);
//			FoldMarker fm2 = new FoldMarker(10, 10, 10, 14);
//
//			fm1.IsFolded = true;
//			fm2.IsFolded = true;
//
//			foldMarker.Add(fm1);
//			foldMarker.Add(fm2);
//			foldMarker.Sort();
        }
		public FoldingManager(IDocument document, ILineManager lineTracker)
		{
			this.document = document;
			document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
			
//			lineTracker.LineCountChanged  += new LineManagerEventHandler(LineManagerLineCountChanged);
//			lineTracker.LineLengthChanged += new LineLengthEventHandler(LineManagerLineLengthChanged);
//			foldMarker.Add(new FoldMarker(0, 5, 3, 5));
//			
//			foldMarker.Add(new FoldMarker(5, 5, 10, 3));
//			foldMarker.Add(new FoldMarker(6, 0, 8, 2));
//			
//			FoldMarker fm1 = new FoldMarker(10, 4, 10, 7);
//			FoldMarker fm2 = new FoldMarker(10, 10, 10, 14);
//			
//			fm1.IsFolded = true;
//			fm2.IsFolded = true;
//			
//			foldMarker.Add(fm1);
//			foldMarker.Add(fm2);
//			foldMarker.Sort();
		}
		/// <summary>
		/// Creates a new instance of <see cref="CustomLineManager"/>
		/// </summary>
		public CustomLineManager(ILineManager lineTracker)
		{
			lineTracker.LineCountChanged += new LineManagerEventHandler(MoveIndices);
		}
Example #9
0
 /// <summary>
 /// Creates a new instance of <see cref="BookmarkManager"/>
 /// </summary>
 public BookmarkManager(IDocument document, ILineManager lineTracker)
 {
     this.document = document;
     lineTracker.LineCountChanged += new LineManagerEventHandler(MoveIndices);
 }
Example #10
0
 public FoldingManager(IDocument document, ILineManager lineTracker)
 {
     this.document             = document;
     document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
 }
 public CustomLineManager(ILineManager lineTracker)
 {
     lineTracker.LineCountChanged += new LineManagerEventHandler(this.MoveIndices);
 }
Example #12
0
 /// <summary>
 /// Creates a new instance of <see cref="BookmarkManager"/>
 /// </summary>
 public BookmarkManager(ILineManager lineTracker)
 {
     lineTracker.LineCountChanged += new LineManagerEventHandler(MoveIndices);
 }
 /// <summary>
 /// Creates a new instance of <see cref="BookmarkManager"/>
 /// </summary>
 public BookmarkManager(IDocument document, ILineManager lineTracker)
 {
     this.document = document;
     lineTracker.LineCountChanged += new LineManagerEventHandler(MoveIndices);
 }
Example #14
0
 //ctor
 public LineController(ILineManager lineManager)
 {
     _lineManager = lineManager;
 }
		public FoldingManager(IDocument document, ILineManager lineTracker)
		{
			this.document = document;
			document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
		}