Esempio n. 1
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if(this.username.Text == "admin" && this.password.Text == "admin")
     {
         MainWindow main = new MainWindow();
         main.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Invalid username or password");
     }
 }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Kalibrasi_Kapal = ((KalibrasiKapal.MainWindow)(target));
     return;
     case 2:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.loaInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.lppInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.breadthInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.depthInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.draughtInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.speedInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.label7 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.jmlKapalInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.dwtInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.jnsMuatanInp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.textBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 22:
     this.textBlock_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.textBlock_Copy1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 24:
     this.textBlock_Copy2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.textBlock_Copy3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 26:
     this.textBlock_Copy4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.label9 = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.typeKapalInp = ((System.Windows.Controls.ComboBox)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.typeKapalInp.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.typeKapalInp_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 29:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click_1);
     
     #line default
     #line hidden
     return;
     case 30:
     this.listBox = ((System.Windows.Controls.ListBox)(target));
     
     #line 43 "..\..\MainWindow.xaml"
     this.listBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 31:
     this.listBox_Copy = ((System.Windows.Controls.ListBox)(target));
     
     #line 44 "..\..\MainWindow.xaml"
     this.listBox_Copy.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 32:
     this.listBox_Copy1 = ((System.Windows.Controls.ListBox)(target));
     
     #line 45 "..\..\MainWindow.xaml"
     this.listBox_Copy1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 33:
     this.label10 = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.label10_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 35:
     this.label10_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.label10_Copy2 = ((System.Windows.Controls.Label)(target));
     return;
     case 37:
     this.label10_Copy3 = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.label10_Copy4 = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.label10_Copy5 = ((System.Windows.Controls.Label)(target));
     return;
     case 40:
     this.label10_Copy6 = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.label11_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.label11_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.label11_Copy2 = ((System.Windows.Controls.Label)(target));
     return;
     case 45:
     this.label11_Copy3 = ((System.Windows.Controls.Label)(target));
     return;
     case 46:
     this.label11_Copy4 = ((System.Windows.Controls.Label)(target));
     return;
     case 47:
     this.label11_Copy5 = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.label11_Copy6 = ((System.Windows.Controls.Label)(target));
     return;
     case 49:
     this.label11_Copy7 = ((System.Windows.Controls.Label)(target));
     return;
     case 50:
     this.label11_Copy8 = ((System.Windows.Controls.Label)(target));
     return;
     case 51:
     this.label11_Copy9 = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.label11_Copy10 = ((System.Windows.Controls.Label)(target));
     return;
     case 53:
     this.label11_Copy11 = ((System.Windows.Controls.Label)(target));
     return;
     case 54:
     this.label12 = ((System.Windows.Controls.Label)(target));
     return;
     case 55:
     this.PlateStr = ((System.Windows.Controls.TextBox)(target));
     return;
     case 56:
     this.RollerCon = ((System.Windows.Controls.TextBox)(target));
     return;
     case 57:
     this.ShotBlas = ((System.Windows.Controls.TextBox)(target));
     return;
     case 58:
     this.PrimeMachine = ((System.Windows.Controls.TextBox)(target));
     return;
     case 59:
     this.CuttMachine = ((System.Windows.Controls.TextBox)(target));
     return;
     case 60:
     this.BendMachine = ((System.Windows.Controls.TextBox)(target));
     return;
     case 61:
     this.FrameBend = ((System.Windows.Controls.TextBox)(target));
     return;
     case 62:
     this.CncCutt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 63:
     this.CuttMachineAuto = ((System.Windows.Controls.TextBox)(target));
     return;
     case 64:
     this.BendRoll = ((System.Windows.Controls.TextBox)(target));
     return;
     case 65:
     this.BendMachine500 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 66:
     this.WeldMachine = ((System.Windows.Controls.TextBox)(target));
     return;
     case 67:
     this.MobileWeb = ((System.Windows.Controls.TextBox)(target));
     return;
     case 68:
     this.ServiceWeld = ((System.Windows.Controls.TextBox)(target));
     return;
     case 69:
     this.MobileStiff = ((System.Windows.Controls.TextBox)(target));
     return;
     case 70:
     this.TransferTroll = ((System.Windows.Controls.TextBox)(target));
     return;
     case 71:
     this.FilletWeld = ((System.Windows.Controls.TextBox)(target));
     return;
     case 72:
     this.NcPipe = ((System.Windows.Controls.TextBox)(target));
     return;
     case 73:
     this.SemiAuto = ((System.Windows.Controls.TextBox)(target));
     return;
     case 74:
     this.PipeBend50 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 75:
     this.PipeBend65 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 76:
     this.AutoGas = ((System.Windows.Controls.TextBox)(target));
     return;
     case 77:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 78:
     this.textBlock1_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 79:
     this.textBlock1_Copy1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 80:
     this.textBlock1_Copy2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 81:
     this.textBlock1_Copy3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 82:
     this.textBlock1_Copy4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 83:
     this.textBlock1_Copy5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 84:
     this.textBlock1_Copy6 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 85:
     this.textBlock1_Copy7 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 86:
     this.textBlock1_Copy8 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 87:
     this.textBlock1_Copy9 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 88:
     this.textBlock1_Copy10 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 89:
     this.textBlock1_Copy11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 90:
     this.textBlock1_Copy12 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 91:
     this.textBlock1_Copy13 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 92:
     this.textBlock1_Copy14 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 93:
     this.textBlock1_Copy15 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 94:
     this.textBlock1_Copy16 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 95:
     this.textBlock1_Copy17 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 96:
     this.textBlock1_Copy18 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 97:
     this.textBlock1_Copy19 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 98:
     this.textBlock1_Copy20 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 99:
     this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 100:
     this.textBlock2_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 101:
     this.textBlock2_Copy1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 102:
     this.textBlock2_Copy2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 103:
     this.textBlock2_Copy3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 104:
     this.textBlock2_Copy4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 105:
     this.textBlock2_Copy5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 106:
     this.textBlock2_Copy6 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 107:
     this.textBlock2_Copy7 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 108:
     this.textBlock2_Copy8 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 109:
     this.textBlock2_Copy9 = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }