Beispiel #1
0
 private void newbuttonCommand(object sender, RoutedEventArgs e)
 {
     newEntry fileNewWindow = new newEntry();
     fileNewWindow.ShowDialog();
     infonameLabel.Content = "Name of fund: " + fileNewWindow.fundName;
     infostartingamountLabel.Content = "Starting Amount: " + fileNewWindow.sAmount;
     infogoalamountLabel.Content = "Goal Amount: " + fileNewWindow.gAmount;
     infopercentageachievedLabel.Content = "Percent Achieved: " + (fileNewWindow.sAmount / fileNewWindow.gAmount)*100;
 }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.NewEntry = ((Omega.newEntry)(target));
     return;
     case 2:
     this.fundnametextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.nameAccount = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.startamounttextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.goaltextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.createButton = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\NewEntry.xaml"
     this.createButton.Click += new System.Windows.RoutedEventHandler(this.createnewfundClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.NewEntry = ((Omega.newEntry)(target));
     return;
     case 2:
     this.textBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.nameAccount = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.startamounttextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.enterButton = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }