public MainForm () { SuspendLayout (); TestPanel TestPanel = new TestPanel (); TestPanel.AutoScroll = true; TestPanel.Dock = DockStyle.Top; Controls.Add (TestPanel); ResumeLayout (); }
public MainForm () { SuspendLayout (); TestPanel TestPanel = new TestPanel (); TestPanel.AutoScroll = true; TestPanel.Dock = DockStyle.Top; Controls.Add (TestPanel); // // MainForm // Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #342932"; Load += new EventHandler (MainForm_Load); ResumeLayout (); }
protected override void SetUp () { form = new Form (); form.ShowInTaskbar = false; form.Size = new Size (400, 400); panel = new TestPanel (); form.Controls.Add (panel); base.SetUp (); }
public TestPanelMediator(object viewCommponent) : base(NAME, viewCommponent) { View = ((GameObject)ViewComponent).GetComponent <TestPanel>(); Debug.Log(NAME + " 对象已创建"); View.TestButton.onClick.AddListener(OnViewTestButtonClicked); }
private void Awake() { instance = this; }
private void button1_Click(object sender, EventArgs e) { TestPanel testPanel = new TestPanel(); MessageBox.Show(testPanel.Add()); }
public PanelButton () { Window w = new Window (); TestPanel p = new TestPanel (); w.Content = p; p.Children.Add (this); w.Show (); Assert.AreEqual (result.Width, 0); }
/// <summary> /// Check if the current state of project is different from the persisted version /// Also Update ActualData Vie with values from GUI /// </summary> /// <param name="exp"></param> /// <param name="funPanel1"></param> /// <param name="parPanel1"></param> /// <param name="runPanel1"></param> /// <param name="resPanel1"></param> /// <param name="testPanel1"></param> /// <returns></returns> public bool IsModified(ProjectController exp, FunctionPanel funPanel1, ParametersPanel parPanel1, RunPanel runPanel1, ResultPanel resPanel1, TestPanel testPanel1) { var models = exp.Models; if (exp.Project.IsDirty) { return(true); } // foreach (var m in models) { //active model can contains unsaved data if (ActiveView is ModelController) { var mm = (ModelController)ActiveView; if (mm.Model.Guid == m.Model.Guid) { m.getCurrentValues(funPanel1, parPanel1, runPanel1, resPanel1, testPanel1); } } //check for modification if (m.IsModified()) { return(true); } } return(false); }