コード例 #1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (cusBr != null)
     {
         cusBr.Free();
     }
     cusBr          = browserFactory.CreateCustomBrowser();
     label2.Content = "Created in: main thread.";
 }
コード例 #2
0
        public void Free()
        {
            if (IsFree)
            {
                return;
            }

            CustomBrowser?.Free();
            CustomBrowser = null;
            IsFree        = true;
        }