Inheritance: InteractionPanel
示例#1
0
文件: test.cs 项目: mono/gert
	public MainForm ()
	{
		SuspendLayout ();
		TestPanel TestPanel = new TestPanel ();
		TestPanel.AutoScroll = true;
		TestPanel.Dock = DockStyle.Top;
		Controls.Add (TestPanel);
		ResumeLayout ();
	}
示例#2
0
文件: MainForm.cs 项目: mono/gert
	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 ();
	}
示例#3
0
		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 ();
		}
示例#4
0
 public TestPanelMediator(object viewCommponent) : base(NAME, viewCommponent)
 {
     View = ((GameObject)ViewComponent).GetComponent <TestPanel>();
     Debug.Log(NAME + " 对象已创建");
     View.TestButton.onClick.AddListener(OnViewTestButtonClicked);
 }
示例#5
0
 private void Awake()
 {
     instance = this;
 }
示例#6
0
        private void button1_Click(object sender, EventArgs e)
        {
            TestPanel testPanel = new TestPanel();

            MessageBox.Show(testPanel.Add());
        }
示例#7
0
			public PanelButton ()
			{
				Window w = new Window ();
				TestPanel p = new TestPanel ();
				w.Content = p;
				p.Children.Add (this);
				w.Show ();
				Assert.AreEqual (result.Width, 0);
			}
示例#8
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);
        }