private void Icon_Click(string Name) { try { this.CloseWindows(); string str = Name.ToLower(); if (!(str == "close")) { if (str == "max") { goto Label_004E; } if (str == "min") { goto Label_0057; } if (str == "menubutton") { goto Label_0060; } } else { ApplicationInfo.CloseApplication(); } return; Label_004E: this.LayOut(); return; Label_0057: this.HideOrShow(); return; Label_0060: if (this.Menu.IsOpen) { this.Menu.IsOpen = false; } else { this.Menu.IsOpen = true; } } catch (Exception ex) { OpenWindows.Prompt(ex.CreateErrorMsg()); } }