Inheritance: IDisposable
コード例 #1
0
ファイル: AssemblyTester.cs プロジェクト: 15070217668/CrossUI
        void removeTest(AssemblyTest test)
        {
            _testPanel.Children.Remove(test.Control);
            _tests.Remove(test);

            test.Dispose();
        }
コード例 #2
0
        void addTest(AssemblyTestConfiguration config)
        {
            var control = new AssemblyTestControl();
            var test = new AssemblyTest(config, control);

            _tests.Add(test);
            var insertPos = _testPanel.Children.Count - 1;
            _testPanel.Children.Insert(insertPos, test.Control);

            control.RemoveButton.Click += (sender, e) => removeTestUser(test);
        }
コード例 #3
0
ファイル: AssemblyTester.cs プロジェクト: 15070217668/CrossUI
        void addTest(AssemblyTestConfiguration config)
        {
            var control = new AssemblyTestControl();
            var test    = new AssemblyTest(config, control);

            test.ConfigChanged += storeConfig;

            _tests.Add(test);
            var insertPos = _testPanel.Children.Count - 1;

            _testPanel.Children.Insert(insertPos, test.Control);

            control.RemoveButton.Click += (sender, e) => removeTestUser(test);
        }
コード例 #4
0
 void removeTestUser(AssemblyTest test)
 {
     removeTest(test);
     storeConfig();
 }
コード例 #5
0
        void removeTest(AssemblyTest test)
        {
            _testPanel.Children.Remove(test.Control);
            _tests.Remove(test);

            test.Dispose();
        }
コード例 #6
0
ファイル: AssemblyTester.cs プロジェクト: 15070217668/CrossUI
 void removeTestUser(AssemblyTest test)
 {
     removeTest(test);
     storeConfig();
 }