private void RegisterForm_Load(object sender, EventArgs e) { //IL_0037: Unknown result type (might be due to invalid IL or missing references) if (Program.GetValue("Color") != null) { components.SetStyle((MetroForm)(object)this, (MetroColorStyle)(Convert.ToInt32(Program.GetValue("Color")) + 1)); } else { components.SetStyle((MetroForm)(object)this, styleManager.get_Style()); } }
private void LoginForm_Load(object sender, EventArgs e) { //IL_0038: Unknown result type (might be due to invalid IL or missing references) if (Program.GetValue("Color") != null) { components.SetStyle((MetroForm)(object)this, (MetroColorStyle)(Convert.ToInt32(Program.GetValue("Color")) + 1)); } else { components.SetStyle((MetroForm)(object)this, styleManager.get_Style()); } if (Program.GetValue("Username") != null && Program.GetValue("Password") != null) { ((Form)this).ShowInTaskbar = false; ((Control)this).Visible = false; ((Form)this).Shown += LoginForm_Shown; } }