private async void SaveVariableButton_Click(object sender, RoutedEventArgs e)
 {
     if (DataContext is VariableDefinitionRuleSetViewModel rule)
     {
         await JsonSettings.StoreAsync("VariableRuleSet.json", rule);
     }
 }
Exemplo n.º 2
0
        private async void ConnectButton_Click(object sender, RoutedEventArgs e)
        {
            await InboxViewModel.ConnectAsync(HostBox.Text, UserNameBox.Text, PasswordBox.Password);

            await JsonSettings.StoreAsync("Mails.json", new MailBoxInfo
            {
                ImapHost = HostBox.Text,
                UserName = UserNameBox.Text,
            });

            Pivot.SelectedIndex = 1;
        }