本文整理汇总了C#中Form2.Execute方法的典型用法代码示例。如果您正苦于以下问题:C# Form2.Execute方法的具体用法?C# Form2.Execute怎么用?C# Form2.Execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form2
的用法示例。
在下文中一共展示了Form2.Execute方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: f2Exec
private void f2Exec(string[] names)
{
if (String.IsNullOrEmpty(baseUrlTextbox.Text))
{
if (MessageBox.Show("Use html data from clipboard?", "No BaseUrl specified", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
Form2 f2 = new Form2();
f2.Execute(String.Empty, Clipboard.GetText(), null, names, true);
}
}
else
F2Execute(String.Empty, baseUrlTextbox.Text, names, true);
}
示例2: CreateVideoUrlRegexButton_Click
private void CreateVideoUrlRegexButton_Click(object sender, EventArgs e)
{
VideoInfo video = GetTreeViewSelectedNode() as VideoInfo;
if (video != null)
{
Form2 f2 = new Form2();
videoUrlRegExTextBox.Text = f2.Execute(videoUrlRegExTextBox.Text, video.VideoUrl, null,
new string[] { "m0", "m1", "m2" }, false);
}
else
MessageBox.Show("no valid video selected");
}
示例3: CreateFileUrlRegexButton_Click
private void CreateFileUrlRegexButton_Click(object sender, EventArgs e)
{
GuiToUtil(generic);
if (String.IsNullOrEmpty(playListUrlResultTextBox.Text))
MessageBox.Show("PlaylistUrlResult is empty");
else
{
string webData;
string post = (string)GetProperty(generic, "fileUrlPostString");
if (String.IsNullOrEmpty(post))
webData = WebCache.Instance.GetWebData(playListUrlResultTextBox.Text, forceUTF8: GetForceUTF8(),
cookies: GetCookieContainer());
else
webData = WebCache.Instance.GetWebData(playListUrlResultTextBox.Text, post, forceUTF8: GetForceUTF8(),
cookies: GetCookieContainer());
Form2 f2 = new Form2();
fileUrlRegexTextBox.Text = f2.Execute(fileUrlRegexTextBox.Text, webData, playListUrlResultTextBox.Text,
new string[] { "m0", "m1", "m2", "n0", "n1", "n2" }, false);
}
}
示例4: F2Execute
private string F2Execute(string regexString, string url, string[] names, bool cleanupValues)
{
Form2 f2 = new Form2();
return f2.Execute(regexString, url, names, cleanupValues, GetForceUTF8(), GetCookieContainer());
}