Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Show ();
     Application.Run ();
 }
Ejemplo n.º 2
0
 public Thread(MainWindow form)
 {
     this.form = form;
 }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Project.MainWindow)(target));
                return;

            case 2:
                this.miFile = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.miFileSave = ((System.Windows.Controls.MenuItem)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.miFileSave.Click += new System.Windows.RoutedEventHandler(this.miFileSave_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.miFileLoad = ((System.Windows.Controls.MenuItem)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.miFileLoad.Click += new System.Windows.RoutedEventHandler(this.miFileLoad_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.miFileClear = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.miFileClear.Click += new System.Windows.RoutedEventHandler(this.miFileClear_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.miNewAppointment = ((System.Windows.Controls.MenuItem)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.miNewAppointment.Click += new System.Windows.RoutedEventHandler(this.miNewAppointment_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.dgFutureAppointments = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.dgMenuItemDelete = ((System.Windows.Controls.MenuItem)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.dgMenuItemDelete.Click += new System.Windows.RoutedEventHandler(this.dgMenuItemDelete_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.comboBoxColumnGender = ((System.Windows.Controls.DataGridComboBoxColumn)(target));
                return;

            case 10:
                this.tbSearch = ((System.Windows.Controls.TextBox)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.tbSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tbSearch_TextChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.labelClientSearch = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.labelServiceSearch = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.cbServiceSearch = ((System.Windows.Controls.ComboBox)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.cbServiceSearch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbServiceSearch_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.btClearSelection = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.btClearSelection.Click += new System.Windows.RoutedEventHandler(this.btClearSelection_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
 public Dialog(MainWindow main)
 {
     Build ();
     newThread = new Project.Thread (main);
 }
Ejemplo n.º 5
0
 public void ShowMainForm(int power,Staff curStaff)
 {
     MainWindow frm = new MainWindow(curStaff,power);
     frm.Show();
     //this.Visibility = Visibility.Hidden;
 }