public void TestConstructorAnimationControl() { Ecell.IDE.Plugins.PathwayWindow.PathwayControl control = null; AnimationControl testAnimationControl = new AnimationControl(control); Assert.IsNotNull(testAnimationControl, "Constructor of type, AnimationControl failed to create instance."); Assert.Fail("Create or modify test(s)."); }
/// <summary> /// /// </summary> /// <param name="control"></param> public AnimationModeSettings(AnimationControl control) : this() { m_control = control; backgroundImageComboBox.Brush = control.ViewBGBrush; arrowImageComboBox.Brush = control.ViewEdgeBrush; maxWidthTextBox.Text = control.MaxEdgeWidth.ToString(); }
/// <summary> /// /// </summary> /// <param name="control"></param> public AnimationDialog(AnimationControl control) : this() { this._control = control; List<IAnimationItem> items = control.Items; foreach (IAnimationItem item in items) { item.SetViewItem(); listBox.Items.Add(item); } if (items.Count > 0) this.panel.Controls.Add((AnimationItemBase)items[0]); }
public AnimationSettings(AnimationControl control) { animCon = control; InitializeComponent(); thresholdHigh.Text = control.ThresholdHigh.ToString(); thresholdLow.Text = control.ThresholdLow.ToString(); edgeHighBrush.Brush = control.HighEdgeBrush; edgeLowBrush.Brush = control.LowEdgeBrush; edgeNGBrush.Brush = control.NgEdgeBrush; autoThresholdCheckBox.Checked = control.AutoThreshold; propertyBrush.Brush = control.PropertyBrush; }
/// <summary> /// /// </summary> /// <param name="control"></param> public EditModeSettings(AnimationControl control) : this() { m_control = control; backgroundImageComboBox.Brush = control.EditBGBrush; arrowColorImageComboBox.Brush = control.EditEdgeBrush; widthTextBox.Text = control.EdgeWidth.ToString(); unsharpCheckBox.Checked = control.Control.HighQuality; //MessageResources.DialogTextBackgroundBrush; //MessageResources.DialogTextEdgeWidth; //MessageResources.DialogTextEdgeBrush; }
/// <summary> /// /// </summary> /// <param name="control"></param> public PathwaySettingsPage(AnimationControl control) : base() { InitializeComponent(); m_con = control; m_editModeItems.Control = control; m_viewModeItems.Control = control; //m_editModeItems = new EditModeSettings(control); //m_viewModeItems = new ViewModeSettings(control); //this.SuspendLayout(); //this.Controls.Add(m_editModeItems); //this.Controls.Add(m_viewModeItems); //m_viewModeItems.Top = m_editModeItems.Top + m_editModeItems.Height; //this.ResumeLayout(); //this.PerformLayout(); }
/// <summary> /// /// </summary> /// <param name="control"></param> public MovieAnimationItem(AnimationControl control) : base(control) { InitializeComponent(); string movieFile = MovieFile; if (control.Canvas != null) movieFile = control.Canvas.ModelID + ".avi"; this.aviFileName.FileName = Path.Combine(Util.GetBaseDir(), MovieFile); this.aviFileName.Filter = Constants.FilterAviFile; }
/// <summary> /// the constructor for PathwayView. /// set the handler of event and user control. /// </summary> public PathwayControl(PathwayWindow window) { this.m_window = window; // Create Internal object. m_canvas = null; m_csManager = new ComponentManager(); SetNodeIcons(); // Create menus m_menu = new MenuControl(this); // Set AnimationControl m_animCon = new AnimationControl(this); // Preparing Interfaces m_pathwayView = new PathwayView(this); m_layerView = new LayerView(this); m_toolBox = new Stencils(this); m_layout = new LayoutPane(m_window.Environment); m_layout.ApplyButton.Click += new EventHandler(ApplyButton_Click); m_window.PluginManager.Refresh += new EventHandler(PluginManager_Refresh); }
public void TearDown() { _unitUnderTest = null; }
public void SetUp() { Ecell.IDE.Plugins.PathwayWindow.PathwayControl control = null; _unitUnderTest = new AnimationControl(control); }
/// <summary> /// /// </summary> /// <param name="control"></param> public GraphAnimationItem(AnimationControl control) : base(control) { InitializeComponent(); }
/// <summary> /// /// </summary> /// <param name="control"></param> public PropertyViewAnimationItem(AnimationControl control) : base(control) { InitializeComponent(); }
/// <summary> /// /// </summary> /// <param name="control"></param> public MassCalculationAnimationItem(AnimationControl control) : base(control) { InitializeComponent(); this._highEdgeBrush = _control.HighEdgeBrush; this._lowEdgeBrush = _control.LowEdgeBrush; this._ngEdgeBrush = _control.NgEdgeBrush; this._autoThreshold = _control.AutoThreshold; this._maxEdgeWidth = _control.MaxEdgeWidth; this._thresholdHigh = _control.ThresholdHigh; this._thresholdLow = _control.ThresholdLow; }
/// <summary> /// /// </summary> /// <param name="control"></param> public AnimationItemBase(AnimationControl control) : this() { _control = control; _dManager = control.Control.Window.DataManager; }
/// <summary> /// /// </summary> /// <param name="control"></param> public EntityAnimationItem(AnimationControl control) : base(control) { InitializeComponent(); this._highEdgeBrush = _control.HighEdgeBrush; this._lowEdgeBrush = _control.LowEdgeBrush; this._ngEdgeBrush = _control.NgEdgeBrush; this._autoThreshold = _control.AutoThreshold; this._thresholdHigh = _control.ThresholdHigh; this._thresholdLow = _control.ThresholdLow; }