Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            ExpenseItHome homeWindow = new ExpenseItHome();

            homeWindow.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            ExpenseItHome homeWindow = new ExpenseItHome();

            homeWindow.Show();
            this.Close();
            homeWindow.Height = this.Height;
            homeWindow.Width  = this.Width;
        }
Ejemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();
            var home = new ExpenseItHome();

            home.Height = Height;
            home.Width  = Width;

            home.Show();
            Close();
        }
Ejemplo n.º 4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            PersonExpenseT = TxtType.Text;
            PersonExpenseC = TxtCost.Text;

            doc.Element("Expenses").Elements("Person").First(c => (string)c.Attribute("Name") == thePerson).Add(new XElement("Expense", new XAttribute("ExpenseType", PersonExpenseT), new XAttribute("ExpenseAmount", PersonExpenseC)));

            doc.Save("C:/Users/jared.ramey/Documents/GitHub/cSharp-Tutorials/ExpenseItV2/ExpenseIt/ExpenseIt/People.xml");

            ExpenseItHome BackHome = new ExpenseItHome();

            this.NavigationService.Navigate(BackHome);
        }
Ejemplo n.º 5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            PersonName = TxtName.Text;
            PersonDep  = TxtDepartment.Text;

            newPerson.Add(new XElement("Person", new XAttribute("Name", PersonName), new XAttribute("Department", PersonDep)));

            doc.Save("C:/Users/jared.ramey/Documents/GitHub/cSharp-Tutorials/ExpenseItV2/ExpenseIt/ExpenseIt/People.xml");

            ExpenseItHome BackHome = new ExpenseItHome();

            this.NavigationService.Navigate(BackHome);
        }