private void btnLogin_Click(object sender, RoutedEventArgs e) { PostCom signinComm = new PostCom("signin", "email=" + emailInput.Text + "&password="******"success": stileAccount = new Account(signinOriginArr[1], signinOriginArr[2], signinOriginArr[3].Split(',')); listWindow = new ListWindow(this); listWindow.Show(); break; default: MessageBox.Show("로그인 실패"); break; }//switch_signinOriginArr[0] }
public ListWindow(MainWindow mainWindow_) { InitializeComponent(); stileAccount = mainWindow_.stileAccount; int ii = 0; foreach (var i in stileAccount.tiles) { TextBlock textBlock = new TextBlock(); tileBlocks.Add(i.Key, textBlock); textBlock.Text = i.Key; var margin = textBlock.Margin; margin.Left = ii * 20; textBlock.Margin = margin; textBlock.MouseDown += clickTile; tileWrapper.Children.Add(textBlock); ii++; } }