Ejemplo n.º 1
0
 public virtual void SetServiceProvider(IServiceProvider serviceProvider,
                                        DThreadProgress threadProgress, SidePanel sidePanel,
                                        BaseItem item, string id, float ratio,
                                        BaseDiagramOptions options)
 {
     _windowManager  = (IWindowManager)serviceProvider.GetService(typeof(IWindowManager));
     _logView        = (ILogView)serviceProvider.GetService(typeof(ILogView));
     _projectBrowser = (IProjectBrowser)serviceProvider.GetService(typeof(IProjectBrowser));
     _threadProgress = threadProgress;
     _sidePanel      = sidePanel;
     _activeItem     = item;
     _id             = id;
     _ratio          = ratio;
     _options        = options;
 }
Ejemplo n.º 2
0
        public BaseDiagram()
        {
            InitializeComponent();

            _options = new BaseDiagramOptions(this.GetID());

            _sidePanel = new SidePanel();
            _sidePanel.RefreshDiagram = new DRefreshDiagram(ForceRefresh);
            _sidePanel.HidePane = new DHidePane(HidePane);
            panel2.Controls.Add(_sidePanel.MainPanel);
            panel2.Visible = false;
            splitter1.Visible = false;

            // Using a single instance of the viewer UI control.
            _viewer = new GV.GViewer();
            _viewer.AsyncLayout = false;
            _viewer.Dock = WF.DockStyle.Fill;
            _viewer.BorderStyle = System.Windows.Forms.BorderStyle.None;
            _viewer.SelectionChanged += new EventHandler(viewer_SelectionChanged);
            _viewer.MouseClick += new WF.MouseEventHandler(viewer_MouseClick);
            _viewer.MouseDown += new System.Windows.Forms.MouseEventHandler(viewer_MouseDown);
            _viewer.MouseUp += new System.Windows.Forms.MouseEventHandler(viewer_MouseUp);
            _viewer.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(viewer_MouseDoubleClick);
            _viewer.MouseMove += new System.Windows.Forms.MouseEventHandler(viewer_MouseMove);
            _viewer.OutsideAreaBrush = new Pen(Color.White).Brush;
            _viewer.Visible = false;
            _viewer.Font = new Font("Arial", 24, FontStyle.Bold);

            panel1.Controls.Add(_viewer);
            _viewer.BringToFront();

            lblCaption.BringToFront();
            lblCaption.Text = string.Empty;
            lblCaption.Top = 6;
            lblCaption.Left = 165;

            lblPleaseWait.Text = string.Empty;

            _timer = new Timer(_timer_Callback, null, Timeout.Infinite, 100);

            _clickTimer.Tick += new EventHandler(_clickTimer_Tick);
            _clickTimer.Interval = 200;

            this.TabText = GetID();
        }
Ejemplo n.º 3
0
        public BaseDiagram()
        {
            InitializeComponent();

            _options = new BaseDiagramOptions(this.GetID());

            _sidePanel = new SidePanel();
            _sidePanel.RefreshDiagram = new DRefreshDiagram(ForceRefresh);
            _sidePanel.HidePane       = new DHidePane(HidePane);
            panel2.Controls.Add(_sidePanel.MainPanel);
            panel2.Visible    = false;
            splitter1.Visible = false;

            // Using a single instance of the viewer UI control.
            _viewer                   = new GV.GViewer();
            _viewer.AsyncLayout       = false;
            _viewer.Dock              = WF.DockStyle.Fill;
            _viewer.BorderStyle       = System.Windows.Forms.BorderStyle.None;
            _viewer.SelectionChanged += new EventHandler(viewer_SelectionChanged);
            _viewer.MouseClick       += new WF.MouseEventHandler(viewer_MouseClick);
            _viewer.MouseDown        += new System.Windows.Forms.MouseEventHandler(viewer_MouseDown);
            _viewer.MouseUp          += new System.Windows.Forms.MouseEventHandler(viewer_MouseUp);
            _viewer.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(viewer_MouseDoubleClick);
            _viewer.MouseMove        += new System.Windows.Forms.MouseEventHandler(viewer_MouseMove);
            _viewer.OutsideAreaBrush  = new Pen(Color.White).Brush;
            _viewer.Visible           = false;
            _viewer.Font              = new Font("Arial", 24, FontStyle.Bold);

            panel1.Controls.Add(_viewer);
            _viewer.BringToFront();

            lblCaption.BringToFront();
            lblCaption.Text = string.Empty;
            lblCaption.Top  = 6;
            lblCaption.Left = 165;

            lblPleaseWait.Text = string.Empty;

            _timer = new Timer(_timer_Callback, null, Timeout.Infinite, 100);

            _clickTimer.Tick    += new EventHandler(_clickTimer_Tick);
            _clickTimer.Interval = 200;

            this.TabText = GetID();
        }
Ejemplo n.º 4
0
 public virtual void SetServiceProvider(IServiceProvider serviceProvider,
     DThreadProgress threadProgress, SidePanel sidePanel,
     BaseItem item, string id, float ratio,
     BaseDiagramOptions options)
 {
     _windowManager = (IWindowManager)serviceProvider.GetService(typeof(IWindowManager));
     _logView = (ILogView)serviceProvider.GetService(typeof(ILogView));
     _projectBrowser = (IProjectBrowser)serviceProvider.GetService(typeof(IProjectBrowser));
     _threadProgress = threadProgress;
     _sidePanel = sidePanel;
     _activeItem = item;
     _id = id;
     _ratio = ratio;
     _options = options;
 }