示例#1
0
        private static void Show(Window owner, string log)
        {
            ClipboardLicenseWindow window = new ClipboardLicenseWindow();

            window.Log   = log;
            window.Owner = owner;
            window.ShowDialog();
        }
        private void GetLicense_Click(object sender, RoutedEventArgs e)
        {
            if (ClipboardLicenseWindow.CheckClipboard(this, true))
            {
                return;
            }

            GetLicenseWindow getLicenseWindow = new GetLicenseWindow();

            getLicenseWindow.Owner = this;
            getLicenseWindow.ShowDialog();
        }
        private void Change_Click(object sender, RoutedEventArgs e)
        {
            if (ClipboardLicenseWindow.CheckClipboard(this, false))
            {
                return;
            }

            ChangeProductLicenseWindow changeProductLicenseWindow = new ChangeProductLicenseWindow();

            changeProductLicenseWindow.Owner = this;
            changeProductLicenseWindow.ShowDialog();
        }