public static bool DisplayInfoMessage1(string strMsg)
{
if (MessageBox.Show(strMsg, mstrProjectName, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
{
return true;
}
else
{
return false;
}
}
I want to do this using the RadWindow.Confirm box Please Help I try it any times but cannot done it
RadWindow.Confirm(strMsg, new EventHandler<WindowClosedEventArgs>(OnClosed)); can not write inside static Method
private void OnClosed(object sender, WindowClosedEventArgs e)
{
if (e.DialogResult == true)
{
ConfirmationStatus = true;
}
else
{
ConfirmationStatus = false;
}
}
ConfirmationStatus is Public Boolean value.
{
if (MessageBox.Show(strMsg, mstrProjectName, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
{
return true;
}
else
{
return false;
}
}
I want to do this using the RadWindow.Confirm box Please Help I try it any times but cannot done it
RadWindow.Confirm(strMsg, new EventHandler<WindowClosedEventArgs>(OnClosed)); can not write inside static Method
private void OnClosed(object sender, WindowClosedEventArgs e)
{
if (e.DialogResult == true)
{
ConfirmationStatus = true;
}
else
{
ConfirmationStatus = false;
}
}
ConfirmationStatus is Public Boolean value.