Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\win_login.xaml"
                ((foroosh.win_login)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 11 "..\..\win_login.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Rectangle_MouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.txt_username = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txt_password = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 5:
                this.btn_enter = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\win_login.xaml"
                this.btn_enter.Click += new System.Windows.RoutedEventHandler(this.btn_enter_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_exit = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\win_login.xaml"
                this.btn_exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.lbl_dayName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lbl_daynum = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.lbl_month = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.lbl_year = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.calendar = ((Arash.PersianDateControls.PersianCalendar)(target));
                return;

            case 12:
                this.calendar_userlog = ((Arash.PersianDateControls.PersianDatePicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Win_Login.xaml"
                ((Sales_and_warehouse_system.Win_Login)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.label_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.label1_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.txt_password = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 8:
                this.btn_exit = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\Win_Login.xaml"
                this.btn_exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btn_enter = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\Win_Login.xaml"
                this.btn_enter.Click += new System.Windows.RoutedEventHandler(this.btn_enter_Click_1);

            #line default
            #line hidden
                return;

            case 10:
                this.MyCalender = ((Arash.PersianDateControls.PersianCalendar)(target));
                return;

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

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

            case 13:
                this.lbl_dayofmounth = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lbl_mounth = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.lbl_year = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.txt_UserName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.CalnderUserLog = ((Arash.PersianDateControls.PersianDatePicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowMain = ((MoneyManagement.MainWindow)(target));
                return;

            case 2:
                this.tabItemMain = ((System.Windows.Controls.TabItem)(target));
                return;

            case 3:
                this.Chart1 = ((System.Windows.Controls.DataVisualization.Charting.Chart)(target));
                return;

            case 4:
                this.tabItemAccounts = ((System.Windows.Controls.TabItem)(target));
                return;

            case 5:
                this.dataGridAccounts = ((System.Windows.Controls.DataGrid)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.dataGridAccounts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGridAccounts_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.textBoxAccountBank = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.textBoxAccountNumber = ((System.Windows.Controls.TextBox)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.textBoxAccountNumber.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.textBoxAccountNumber_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 8:
                this.textBoxAccountCardnumber = ((System.Windows.Controls.TextBox)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.textBoxAccountCardnumber.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.textBoxAccountCardnumber_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonAddAccount = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.buttonAddAccount.Click += new System.Windows.RoutedEventHandler(this.buttonAddAccount_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.buttonEditAccount = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.buttonEditAccount.Click += new System.Windows.RoutedEventHandler(this.buttonEditAccount_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.buttonDeleteAccount = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.buttonDeleteAccount.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteAccount_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.tabItemTransactions = ((System.Windows.Controls.TabItem)(target));
                return;

            case 13:
                this.dataGridTransactions = ((System.Windows.Controls.DataGrid)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.dataGridTransactions.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGridTransactions_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 47 "..\..\MainWindow.xaml"
                this.buttonDeleteTransaction.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteTransaction_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.buttonAddTransaction = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.buttonAddTransaction.Click += new System.Windows.RoutedEventHandler(this.buttonAddTransaction_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.buttonEditTransaction = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.buttonEditTransaction.Click += new System.Windows.RoutedEventHandler(this.buttonEditTransaction_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.textBoxTransactionMoney = ((System.Windows.Controls.TextBox)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.textBoxTransactionMoney.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.textBoxTransactionMoney_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 18:
                this.textBoxTransactionDescription = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.comboBoxAccounts = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 20:
                this.comboBoxTransactionChange = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 21:
                this.datePickerTransaction = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 22:
                this.tabItemReminder = ((System.Windows.Controls.TabItem)(target));
                return;

            case 23:
                this.gridCalendar = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.calendar1 = ((System.Windows.Controls.Calendar)(target));
                return;

            case 25:
                this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 26:
                this.persianCalendar1 = ((Arash.PersianDateControls.PersianCalendar)(target));
                return;

            case 27:
                this.persianDatePicker1 = ((Arash.PersianDateControls.PersianDatePicker)(target));
                return;

            case 28:
                this.dataGridReminder = ((System.Windows.Controls.DataGrid)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.dataGridReminder.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGridReminder_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.buttonAddReminder = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.buttonAddReminder.Click += new System.Windows.RoutedEventHandler(this.buttonAddReminder_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.buttonEditReminder = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.buttonEditReminder.Click += new System.Windows.RoutedEventHandler(this.buttonEditReminder_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.buttonDeleteReminder = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.buttonDeleteReminder.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteReminder_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.comboBoxAccountsReminder = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 33:
                this.textBoxReminderDetails = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.buttonTest = ((System.Windows.Controls.Button)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.buttonTest.Click += new System.Windows.RoutedEventHandler(this.buttonTest_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
        static PersianCalendar()
        {
            PropertyMetadata displayModeMetaData = new PropertyMetadata(modeChanged);

            DisplayModeProperty =
                DependencyProperty.Register("DisplayMode", typeof(CalendarMode), typeof(PersianCalendar), displayModeMetaData);

            PropertyMetadata displayDateMetaData = new PropertyMetadata(PersianDate.Today, modeChanged);

            displayDateMetaData.CoerceValueCallback = coerceDateToBeInRange;
            DisplayDateProperty =
                DependencyProperty.Register("DisplayDate", typeof(PersianDate), typeof(PersianCalendar), displayDateMetaData);


            PropertyMetadata selectedDateMetaData = new PropertyMetadata(PersianDate.Today,
                                                                         (DependencyObject d, DependencyPropertyChangedEventArgs e) =>
            {
                PersianCalendar pc = d as PersianCalendar;
                pc.selectedDateCheck((PersianDate)e.OldValue);
                pc.RaiseEvent(new RoutedEventArgs(SelectedDateChangedEvent, pc));
            }
                                                                         );

            selectedDateMetaData.CoerceValueCallback = coerceDateToBeInRange;
            SelectedDateProperty =
                DependencyProperty.Register("SelectedDate", typeof(PersianDate), typeof(PersianCalendar), selectedDateMetaData);

            PropertyMetadata displayDateStartMetaData = new PropertyMetadata
            {
                DefaultValue            = new PersianDate(),
                CoerceValueCallback     = new CoerceValueCallback(coerceDisplayDateStart),
                PropertyChangedCallback = new PropertyChangedCallback(DisplayDateStartChanged),
            };

            DisplayDateStartProperty =
                DependencyProperty.Register("DisplayDateStart", typeof(PersianDate), typeof(PersianCalendar), displayDateStartMetaData);

            PropertyMetadata displayDateEndMetaData = new PropertyMetadata
            {
                DefaultValue            = new PersianDate(10000, 1, 1),
                CoerceValueCallback     = new CoerceValueCallback(coerceDisplayDateEnd),
                PropertyChangedCallback = new PropertyChangedCallback(DisplayDateEndChanged),
            };

            DisplayDateEndProperty =
                DependencyProperty.Register("DisplayDateEnd", typeof(PersianDate), typeof(PersianCalendar), displayDateEndMetaData);


            PropertyMetadata todayBackgroundMetaData = new PropertyMetadata(Brushes.AliceBlue,
                                                                            (DependencyObject d, DependencyPropertyChangedEventArgs e) =>
            {
                PersianCalendar pc = d as PersianCalendar;
                pc.todayCheck();
            }
                                                                            );

            TodayBackgroundProperty =
                DependencyProperty.Register("TodayBackground", typeof(Brush), typeof(PersianCalendar), todayBackgroundMetaData);

            SelectedDateChangedEvent = EventManager.RegisterRoutedEvent("SelectedDateChanged",
                                                                        RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(PersianCalendar));
        }
Ejemplo n.º 5
0
        static void modeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PersianCalendar pc = d as PersianCalendar;

            pc.setCalendar();
        }
Ejemplo n.º 6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((AnbarBankManagment.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.menuitem1 = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));
                return;

            case 3:
                this.menuitem4 = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));
                return;

            case 4:
                this.btnback = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.btnback.Click += new System.Windows.RoutedEventHandler(this.Btnback_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnadddevice = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.btnadddevice.Click += new System.Windows.RoutedEventHandler(this.Btnadddevice_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.BtnResiveDevice = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.BtnResiveDevice.Click += new System.Windows.RoutedEventHandler(this.BtnResiveDevice_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.BtnSendDevice = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.BtnSendDevice.Click += new System.Windows.RoutedEventHandler(this.BtnSendDevice_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnequipmentnew = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.btnequipmentnew.Click += new System.Windows.RoutedEventHandler(this.Btnequipmentnew_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnresiveequipment = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.btnresiveequipment.Click += new System.Windows.RoutedEventHandler(this.Btnresiveequipment_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnsendequipment = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.btnsendequipment.Click += new System.Windows.RoutedEventHandler(this.Btnsendequipment_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnrepository = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.btnrepository.Click += new System.Windows.RoutedEventHandler(this.Btnrepository_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.userlist = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 107 "..\..\MainWindow.xaml"
                this.userlist.Click += new System.Windows.RoutedEventHandler(this.Userlist_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.devicetypelist = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 112 "..\..\MainWindow.xaml"
                this.devicetypelist.Click += new System.Windows.RoutedEventHandler(this.Devicetypelist_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.persiancalender = ((Arash.PersianDateControls.PersianCalendar)(target));
                return;

            case 15:
                this.lblpersianday = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.lblday = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.lblmonth = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.lblyear = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.lblmin = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.lblsec = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.lblhor = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.lblkol = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.lblpardakht = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.lbldaryaft = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }