int counter = 2;
if (counter == 0)
{
counter = 2;
return ("", "", "Вы спрашиваете слишком часто.");
}
int counter = 2;
if (counter == 0)
9,223,372,036,854,775,808
40,000,000,000,000,000,000
static void StartupNextInstanceHandler(object sender, StartupNextInstanceEventArgs e)
{
SingleInstanceApplication sia = (SingleInstanceApplication)sender;
Form1 f = (Form1)sia.ApplicationContext.MainForm;
if (e.CommandLine.Count == 2)
{
string link = e.CommandLine[1];
if (f.CheckURL(link))
{
f.webBrowser1.Navigate(link);
}
}
}
SingleInstanceApplication sia = (SingleInstanceApplication)sender;
Form1 f = (Form1)sia.ApplicationContext.MainForm;