ILSpy
ILSpy copied to clipboard
Conflict between field and variable
There're 2 cmitems_0, first one is a field, and second one is a variable, so the compiler treat the first one variable also, and show an error : use variable without assigning
// LotteryFollowBet.ViewChildFrm
internal void btnChangePwd_Click(object sender, EventArgs e)
{
((INavigatableControl)gdChild).DoAction((NavigatorButtonType)10);
object editValue = ((BaseEdit)icbMemUrl).EditValue;
object obj2;
if (editValue == null)
{
obj2 = null;
}
else
{
obj2 = editValue.ToString();
if (obj2 != null)
{
goto IL_003b;
}
}
obj2 = "";
goto IL_003b;
IL_003b:
string string_0 = (string)obj2;
if (string.IsNullOrWhiteSpace(string_0))
{
XtraMessageBox.Show("没有可用的网址");
return;
}
List<CMItem> list = cmitems_0.Where((CMItem f) => f.IsAttion).ToList();
if (list.Count == 0)
{
XtraMessageBox.Show("请勾选需要首次改密的账号");
return;
}
List<CMItem> cmitems_0;
ThreadPool.QueueUserWorkItem(delegate(object obj)
{
try
{
cmitems_0 = obj as List<CMItem>;
((Control)this).BeginInvoke((Delegate)(MethodInvoker)delegate
{
try
{
if (((Control)this).IsHandleCreated)
{
cmitems_0.ForEach(delegate(CMItem f)
{
f.Msg = "正在更改密码...";
});
((BaseView)gvChild).RefreshData();
((Control)(object)groupControl1).Enabled = false;
((Control)(object)panelControl5).Enabled = false;
Class23.IsComplated = false;
Class23.Cookies = "";
smethod_0();
webBrowser1.Url = new Uri(string_0);
}
}
catch (Exception)
{
}
});
while (!Class23.IsComplated)
{
Thread.Sleep(100);
}
this.string_0 = Class23.Cookies.Replace(" ", "") + ";";
cmitems_0.ForEach(delegate(CMItem f)
{
Class88 @class = new Class88();
@class.UserName = f.LoginName;
@class.Pwd = f.Pwd;
@class.Url = string_0;
@class.vmethod_0(1);
@class.ValiCode = this.string_0;
@class.vmethod_2();
if (@class.LoginState == Enum7.const_6 && @class.ValiCodeMap != null)
{
@class.ValiCode = SingleReadMultiple.smethod_0(@class.ValiCodeMap);
if (@class.vmethod_16(f) == 1)
{
f.IsAttion = false;
}
}
Thread.Sleep(3000);
});
}
catch (Exception)
{
}
finally
{
((Control)this).BeginInvoke((Delegate)(MethodInvoker)delegate
{
try
{
if (((Control)this).IsHandleCreated)
{
((Control)(object)groupControl1).Enabled = true;
((Control)(object)panelControl5).Enabled = true;
((BaseView)gvChild).RefreshData();
}
}
catch
{
}
});
}
}, list);
}