コード例 #1
0
 private void ChekTogleBinSave_Unchecked(object sender, RoutedEventArgs e)
 {
     ToggleSwitch.HorizontalToggleSwitch rb = sender as HorizontalToggleSwitch;
     if (rb != null && Way != null)
     {
         UserSetting.FlagSaveBin = rb.IsChecked;
     }
 }
コード例 #2
0
 private void ChekTogleBinSave1_Checked(object sender, RoutedEventArgs e)
 {
     ToggleSwitch.HorizontalToggleSwitch rb = sender as HorizontalToggleSwitch;
     UserSetting.FlagSaveBD = rb.IsChecked;
     if (rb != null && WayBd != null)
     {
         WayBd.IsEnabled = true;
     }
 }
コード例 #3
0
 private void ChekTogleBinSave1_Unchecked(object sender, RoutedEventArgs e)
 {
     ToggleSwitch.HorizontalToggleSwitch rb = sender as HorizontalToggleSwitch;
     if (rb != null && Way != null)
     {
         set.FlagSaveBD  = rb.IsChecked;
         WayBd.IsEnabled = false;
     }
 }
コード例 #4
0
 private void HorizontalToggleSwitch_Checked(object sender, RoutedEventArgs e)
 {
     ToggleSwitch.HorizontalToggleSwitch rb = sender as HorizontalToggleSwitch;
     UserSetting.FlagSaveBin = rb.IsChecked;
     if (rb != null && Way != null)
     {
         Way.IsEnabled    = true;
         ButWay.IsEnabled = true;
         labP.IsEnabled   = true;
         labS.IsEnabled   = true;
     }
 }
コード例 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 79 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.lblDate = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 4:
                this.lblSunrise = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 7:
                this.BtnDCBus = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 8:
                this.BtnACBus = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

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

            case 10:
                this.lblACBus = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_Settings = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 2:
                this.PART_Port = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.CtrPoller = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.PART_EnablePolling = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 5:
                this.PART_ActLed = ((Cet.IO.DemoModbusNetduino.LedControl)(target));
                return;

            case 6:
                this.IcAnalogs = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 7:
                this.IcUpper = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 8:
                this.IcLower = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.sliderProcess = ((System.Windows.Controls.Slider)(target));
                return;

            case 2:
                this.tgBtn = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 3:

            #line 21 "..\..\TopStatus.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Button_PreviewMouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((Smart_Energy_Management_System.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((Smart_Energy_Management_System.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDoubleClick);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 2:
                this.AppIco = ((System.Windows.Controls.Image)(target));
                return;

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

            case 4:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Window_Close);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 7:
                this.DeviceList = ((System.Windows.Controls.ListBox)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.DeviceList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DeviceList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.SelectDatePicker = ((System.Windows.Controls.DatePicker)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.SelectDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.CurveComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 65 "..\..\MainWindow.xaml"
                this.CurveComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CurveComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.P = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 11:
                this.V = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 12:
                this.I = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 13:
                this.Q1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 14:
                this.S = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 15:
                this.S1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 16:
                this.PF = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 17:
                this.PF1 = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 18:
                this.SN = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 19:
                this.N = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 20:
                this.THDI = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 21:
                this.ChartControl = ((Visifire.Charts.Chart)(target));
                return;

            case 22:
                this.ECounterTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.TotalcostTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.ViewComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 123 "..\..\MainWindow.xaml"
                this.ViewComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.Night = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 26:
                this.Morning = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 27:
                this.Afternoon = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 28:
                this.Evening = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 29:
                this.Day = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 30:
                this.Week = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 31:
                this.Month = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 32:
                this.Year = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 33:
                this.DeviceScheList = ((System.Windows.Controls.ListBox)(target));

            #line 148 "..\..\MainWindow.xaml"
                this.DeviceScheList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DeviceScheList_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 150 "..\..\MainWindow.xaml"
                this.btnUpdateSche.Click += new System.Windows.RoutedEventHandler(this.btnUpdateSche_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.NightBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.MorningBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.AfternoonBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.EveningBudgetTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.NightUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.MorningUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.AfternoonUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 42:
                this.EveningUsedTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.BudgetChartControl = ((Visifire.Charts.Chart)(target));
                return;

            case 44:
                this.NightSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 45:
                this.MorningSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 46:
                this.AfternoonSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 47:
                this.EveningSavingSwitch = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 48:
                this.AddedDeviceList = ((System.Windows.Controls.ListBox)(target));

            #line 211 "..\..\MainWindow.xaml"
                this.AddedDeviceList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.AddedDeviceList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 49:
                this.Add_NameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.Add_NameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.Add_IDLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.Add_IDTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.Add_MACLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.Add_MACTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 55:
                this.Add_UserCodeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.Add_UserCodeTextBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 57:
                this.Add_UserCodeTextBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 58:
                this.Add_VoltageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.Add_VoltageTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 60:
                this.Add_PowerTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.Add_BudgettedEnergyTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 62:
                this.btnAddDev = ((System.Windows.Controls.Button)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.btnAddDev.Click += new System.Windows.RoutedEventHandler(this.btnAddDev_Click);

            #line default
            #line hidden
                return;

            case 63:
                this.btnRemoveDev = ((System.Windows.Controls.Button)(target));

            #line 232 "..\..\MainWindow.xaml"
                this.btnRemoveDev.Click += new System.Windows.RoutedEventHandler(this.btnRemoveDev_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.Add_DescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 65:
                this.btnUpdateDev = ((System.Windows.Controls.Button)(target));

            #line 235 "..\..\MainWindow.xaml"
                this.btnUpdateDev.Click += new System.Windows.RoutedEventHandler(this.btnUpdateDev_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DodavanjeUcioniceWindow = ((HCI_Projekat.DodavanjeUcionice)(target));
                return;

            case 2:

            #line 30 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 31 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 32 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 33 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 34 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 7:

            #line 35 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 8:

            #line 36 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 9:

            #line 37 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 10:

            #line 38 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 11:

            #line 39 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 12:

            #line 40 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 13:
                this.FirstMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 14:

            #line 70 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 15:

            #line 76 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 16:

            #line 84 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 17:

            #line 90 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 18:

            #line 98 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 19:

            #line 104 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 20:

            #line 110 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 21:
                this.NextStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 118 "..\..\DodavanjeUcionice.xaml"
                this.NextStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 22:
                this.BackStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 119 "..\..\DodavanjeUcionice.xaml"
                this.BackStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 23:
                this.SecondMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 24:
                this.Undo = ((System.Windows.Controls.MenuItem)(target));

            #line 136 "..\..\DodavanjeUcionice.xaml"
                this.Undo.Click += new System.Windows.RoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 25:
                this.Redo = ((System.Windows.Controls.MenuItem)(target));

            #line 142 "..\..\DodavanjeUcionice.xaml"
                this.Redo.Click += new System.Windows.RoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 26:
                this.Cut = ((System.Windows.Controls.MenuItem)(target));

            #line 148 "..\..\DodavanjeUcionice.xaml"
                this.Cut.Click += new System.Windows.RoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 27:
                this.Copy = ((System.Windows.Controls.MenuItem)(target));

            #line 154 "..\..\DodavanjeUcionice.xaml"
                this.Copy.Click += new System.Windows.RoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 28:
                this.Paste = ((System.Windows.Controls.MenuItem)(target));

            #line 160 "..\..\DodavanjeUcionice.xaml"
                this.Paste.Click += new System.Windows.RoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 29:
                this.tabControlUcionica = ((System.Windows.Controls.TabControl)(target));
                return;

            case 30:
                this.Korak1Ucionica = ((System.Windows.Controls.TabItem)(target));
                return;

            case 31:
                this.oznakaUcionica = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.opisUcionica = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.prisustvoTableUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 34:
                this.prisustvoProjektoraUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 35:
                this.prisustvoPametneTableUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 36:
                this.cancelButtonTab1 = ((System.Windows.Controls.Button)(target));

            #line 377 "..\..\DodavanjeUcionice.xaml"
                this.cancelButtonTab1.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 37:
                this.nextButton = ((System.Windows.Controls.Button)(target));

            #line 399 "..\..\DodavanjeUcionice.xaml"
                this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 38:
                this.Korak2Ucionica = ((System.Windows.Controls.TabItem)(target));
                return;

            case 39:
                this.brojRadnihMestaUcionica = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 40:
                this.LinuxOSUcionica = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 41:
                this.WindowsOSUcionica = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 42:
                this.WindowsAndLinusOSUcionica = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 43:
                this.softverTabela = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 44:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 587 "..\..\DodavanjeUcionice.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 45:
                this.cancelButtonTab2 = ((System.Windows.Controls.Button)(target));

            #line 609 "..\..\DodavanjeUcionice.xaml"
                this.cancelButtonTab2.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 46:
                this.finishButton = ((System.Windows.Controls.Button)(target));

            #line 631 "..\..\DodavanjeUcionice.xaml"
                this.finishButton.Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #10
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.seperator = ((System.Windows.Controls.Border)(target));
     return;
     case 2:
     this.comboSound = ((System.Windows.Controls.ComboBox)(target));
     
     #line 10 "..\..\..\Windows\SettingsAppWindow.xaml"
     this.comboSound.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboSound_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.seperator_Copy = ((System.Windows.Controls.Border)(target));
     return;
     case 4:
     this.btnSaveSettings = ((System.Windows.Controls.Button)(target));
     
     #line 86 "..\..\..\Windows\SettingsAppWindow.xaml"
     this.btnSaveSettings.Click += new System.Windows.RoutedEventHandler(this.btnSaveSettings_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.toggleButton = ((ToggleSwitch.HorizontalToggleSwitch)(target));
     return;
     case 6:
     this.toggleNotification = ((ToggleSwitch.HorizontalToggleSwitch)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DodavanjeUcioniceWindow = ((HCI_Projekat.DodavanjeUcionice)(target));
                return;

            case 2:

            #line 450 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 451 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 452 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 453 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 454 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 7:

            #line 455 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 8:

            #line 456 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.otvoriHelp);

            #line default
            #line hidden
                return;

            case 9:
                this.FirstMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 10:

            #line 490 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 11:

            #line 499 "..\..\DodavanjeUcionice.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 12:
                this.NextStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 545 "..\..\DodavanjeUcionice.xaml"
                this.NextStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 13:
                this.BackStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 550 "..\..\DodavanjeUcionice.xaml"
                this.BackStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 14:
                this.MenuItemHelp = ((System.Windows.Controls.MenuItem)(target));

            #line 559 "..\..\DodavanjeUcionice.xaml"
                this.MenuItemHelp.Click += new System.Windows.RoutedEventHandler(this.otvoriHelp);

            #line default
            #line hidden
                return;

            case 15:
                this.SecondMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 16:
                this.Cut = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 17:
                this.Copy = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.Paste = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 19:
                this.tabControlUcionica = ((System.Windows.Controls.TabControl)(target));
                return;

            case 20:
                this.Korak1Ucionica = ((System.Windows.Controls.TabItem)(target));
                return;

            case 21:
                this.oznakaUcionica = ((System.Windows.Controls.TextBox)(target));

            #line 677 "..\..\DodavanjeUcionice.xaml"
                this.oznakaUcionica.LostFocus += new System.Windows.RoutedEventHandler(this.resetujBojuOkvira);

            #line default
            #line hidden

            #line 677 "..\..\DodavanjeUcionice.xaml"
                this.oznakaUcionica.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UnetaOznakaUcionice);

            #line default
            #line hidden
                return;

            case 22:
                this.GreskaOznakaUcionice = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.opisUcionica = ((System.Windows.Controls.TextBox)(target));

            #line 706 "..\..\DodavanjeUcionice.xaml"
                this.opisUcionica.LostFocus += new System.Windows.RoutedEventHandler(this.resetujBojuOkvira);

            #line default
            #line hidden
                return;

            case 24:
                this.prisustvoTableUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 25:
                this.prisustvoProjektoraUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 26:
                this.prisustvoPametneTableUcionica = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 27:
                this.cancelButtonTab1 = ((System.Windows.Controls.Button)(target));

            #line 831 "..\..\DodavanjeUcionice.xaml"
                this.cancelButtonTab1.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 28:
                this.nextButton = ((System.Windows.Controls.Button)(target));

            #line 853 "..\..\DodavanjeUcionice.xaml"
                this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 29:
                this.Korak2Ucionica = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.brojRadnihMestaUcionica = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 31:
                this.LinuxOSUcionica = ((System.Windows.Controls.RadioButton)(target));

            #line 967 "..\..\DodavanjeUcionice.xaml"
                this.LinuxOSUcionica.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 32:
                this.WindowsOSUcionica = ((System.Windows.Controls.RadioButton)(target));

            #line 968 "..\..\DodavanjeUcionice.xaml"
                this.WindowsOSUcionica.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 33:
                this.WindowsAndLinuxOSUcionica = ((System.Windows.Controls.RadioButton)(target));

            #line 969 "..\..\DodavanjeUcionice.xaml"
                this.WindowsAndLinuxOSUcionica.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 34:
                this.softverTabela = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 35:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 1043 "..\..\DodavanjeUcionice.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 36:
                this.cancelButtonTab2 = ((System.Windows.Controls.Button)(target));

            #line 1065 "..\..\DodavanjeUcionice.xaml"
                this.cancelButtonTab2.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 37:
                this.finishButton = ((System.Windows.Controls.Button)(target));

            #line 1087 "..\..\DodavanjeUcionice.xaml"
                this.finishButton.Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #12
0
ファイル: UI.cs プロジェクト: pragmatrix/Dominator
		static Brush getOriginalUncheckedBrush()
		{
			var sw = new HorizontalToggleSwitch();
			return sw.UncheckedBackground;
		}
コード例 #13
0
ファイル: UI.cs プロジェクト: pragmatrix/Dominator
		static HorizontalToggleSwitch createSwitch()
		{
			var sw = new HorizontalToggleSwitch
			{
				UncheckedContent = L_YES,
				CheckedContent = L_NO_,
				Margin = new Thickness(DefaultMargin, 0, 0, 0),
				Padding = new Thickness(0)
			};
		
			return sw;
		}
コード例 #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DodavanjePredmetaWindow = ((HCI_Projekat.DodavanjePredmeta)(target));
                return;

            case 2:

            #line 30 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 31 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 32 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 33 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 34 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 7:

            #line 35 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 8:

            #line 36 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 9:

            #line 37 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 10:

            #line 38 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 11:

            #line 39 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 12:

            #line 40 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 13:
                this.FirstMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 14:

            #line 70 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 15:

            #line 76 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 16:

            #line 84 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 17:

            #line 90 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 18:

            #line 98 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 19:

            #line 104 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 20:

            #line 110 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 21:
                this.NextStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 118 "..\..\DodavanjePredmeta.xaml"
                this.NextStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 22:
                this.BackStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 119 "..\..\DodavanjePredmeta.xaml"
                this.BackStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 23:
                this.SecondMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 24:
                this.Undo = ((System.Windows.Controls.MenuItem)(target));

            #line 137 "..\..\DodavanjePredmeta.xaml"
                this.Undo.Click += new System.Windows.RoutedEventHandler(this.undoClick);

            #line default
            #line hidden
                return;

            case 25:
                this.Redo = ((System.Windows.Controls.MenuItem)(target));

            #line 143 "..\..\DodavanjePredmeta.xaml"
                this.Redo.Click += new System.Windows.RoutedEventHandler(this.redoClick);

            #line default
            #line hidden
                return;

            case 26:
                this.Cut = ((System.Windows.Controls.MenuItem)(target));

            #line 149 "..\..\DodavanjePredmeta.xaml"
                this.Cut.Click += new System.Windows.RoutedEventHandler(this.cutClick);

            #line default
            #line hidden
                return;

            case 27:
                this.Copy = ((System.Windows.Controls.MenuItem)(target));

            #line 155 "..\..\DodavanjePredmeta.xaml"
                this.Copy.Click += new System.Windows.RoutedEventHandler(this.copyClick);

            #line default
            #line hidden
                return;

            case 28:
                this.Paste = ((System.Windows.Controls.MenuItem)(target));

            #line 161 "..\..\DodavanjePredmeta.xaml"
                this.Paste.Click += new System.Windows.RoutedEventHandler(this.pasteClick);

            #line default
            #line hidden
                return;

            case 29:
                this.tabControlPredmet = ((System.Windows.Controls.TabControl)(target));
                return;

            case 30:
                this.Korak1Predmet = ((System.Windows.Controls.TabItem)(target));
                return;

            case 31:
                this.OznakaPredmeta = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.NazivPredmeta = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 34:
                this.smeroviTabela = ((System.Windows.Controls.DataGrid)(target));

            #line 302 "..\..\DodavanjePredmeta.xaml"
                this.smeroviTabela.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.smeroviTabela_SelectionChanged);

            #line default
            #line hidden
                return;

            case 35:
                this.VelicinaGrupePredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 36:
                this.DuzinaTerminaPredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 37:
                this.BrojTerminaPredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 38:
                this.quitButton = ((System.Windows.Controls.Button)(target));

            #line 433 "..\..\DodavanjePredmeta.xaml"
                this.quitButton.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 39:
                this.nextButton = ((System.Windows.Controls.Button)(target));

            #line 455 "..\..\DodavanjePredmeta.xaml"
                this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 40:
                this.Korak2Predmet = ((System.Windows.Controls.TabItem)(target));
                return;

            case 41:
                this.PrisustvoTablePredmet = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 42:
                this.PrisustvoProjektoraPredmet = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 43:
                this.PrisustvoPametneTable = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 44:
                this.Linux = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 45:
                this.Windows = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 46:
                this.Svejedno = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 47:
                this.softverTabela = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 48:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 710 "..\..\DodavanjePredmeta.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 49:
                this.quitButtonTab2 = ((System.Windows.Controls.Button)(target));

            #line 732 "..\..\DodavanjePredmeta.xaml"
                this.quitButtonTab2.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 50:
                this.finishButton = ((System.Windows.Controls.Button)(target));

            #line 754 "..\..\DodavanjePredmeta.xaml"
                this.finishButton.Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #15
0
        public MainWindow()
        {
            InitializeComponent();

            int numPins = 20;
            // programmatically create the chart series so we don't copy-and-paste
            for (int i = 0; i < numPins; i++)
            {
                channelGrid.RowDefinitions.Add(new System.Windows.Controls.RowDefinition() { Height=new GridLength(1, GridUnitType.Star)});


                var tb = new TextBlock() { Text = i.ToString(), HorizontalAlignment=HorizontalAlignment.Left};
                TextOptions.SetTextFormattingMode(tb, TextFormattingMode.Ideal);
                var vb = new Viewbox() { Width = 70, StretchDirection = StretchDirection.Both, Stretch = Stretch.Uniform };
                vb.Child = tb;

                var toggle = new HorizontalToggleSwitch() { };

                var toggleBinding = new Binding();
                toggleBinding.Source = DataContext;
                toggleBinding.Path = new PropertyPath("ChannelEnabled["+i+"]");
                toggleBinding.Mode = BindingMode.TwoWay;

                BindingOperations.SetBinding(toggle, HorizontalToggleSwitch.IsCheckedProperty, toggleBinding);

                var sp = new StackPanel() { Orientation = Orientation.Horizontal };
                sp.Children.Add(vb);
                sp.Children.Add(toggle);

                channelGrid.Children.Add(sp);

                Grid.SetRow(sp, i);

                var row = new ChartRowDefinition();
                row.BorderThickness = 5;
                row.BorderStroke = new SolidColorBrush(Color.FromArgb(0xff, 0x6C, 0x6C, 0x6C));
                chart.RowDefinitions.Add(row);

                var series = new FastLineSeries();

                var binding = new Binding();
                binding.Source = DataContext;
                binding.Path = new PropertyPath("Data");
                binding.Mode = BindingMode.OneWay;
                binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;

                BindingOperations.SetBinding(series, FastScatterBitmapSeries.ItemsSourceProperty, binding);

                
                series.XBindingPath = "TimestampOffset";
                series.YBindingPath = "Values[" + i + "]";
                var axis = new NumericalAxis();
                axis.TickLineSize = 0;
                axis.LabelFormat = " ";
                axis.ShowGridLines = false;
                axis.Minimum = 0;
                axis.Maximum = 3.3;
                axis.PlotOffset = 10;
                series.YAxis = axis;
                chart.Series.Add(series);
                SfChart.SetRow(axis, numPins - 1 - i); // rows start from the bottom
            }

            channelGrid.RowDefinitions.Add(new System.Windows.Controls.RowDefinition() { Height = new GridLength(35, GridUnitType.Pixel) });

        }
コード例 #16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.RibonBar = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.TopButton = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.BtnFCFS = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 7:
                this.BtnSRT = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 10:
                this.StaticControl = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 12:
                this.BtnReset = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.TBPSCount = ((System.Windows.Controls.TextBox)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.TBPSCount.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tb_rule);

            #line default
            #line hidden

            #line 41 "..\..\..\MainWindow.xaml"
                this.TBPSCount.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TBPSCount_TextChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.ToggleCheck = ((ToggleSwitch.HorizontalToggleSwitch)(target));

            #line 42 "..\..\..\MainWindow.xaml"
                this.ToggleCheck.Checked += new System.Windows.RoutedEventHandler(this.ToggleCheck_Checked);

            #line default
            #line hidden

            #line 42 "..\..\..\MainWindow.xaml"
                this.ToggleCheck.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleCheck_Unchecked);

            #line default
            #line hidden
                return;

            case 15:
                this.Content = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.LeftArea = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.WFH = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 18:
                this.chart1 = ((System.Windows.Forms.DataVisualization.Charting.Chart)(target));
                return;

            case 19:
                this.InfoArea = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.RightControl = ((WpfApp3.ContentRight)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DodavanjePredmetaWindow = ((HCI_Projekat.DodavanjePredmeta)(target));
                return;

            case 2:

            #line 450 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 451 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 452 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 453 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 454 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 7:

            #line 455 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 8:

            #line 456 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.otvoriHelp);

            #line default
            #line hidden
                return;

            case 9:
                this.FirstMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 10:

            #line 490 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;

            case 11:

            #line 499 "..\..\DodavanjePredmeta.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 12:
                this.NextStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 545 "..\..\DodavanjePredmeta.xaml"
                this.NextStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.nextStep);

            #line default
            #line hidden
                return;

            case 13:
                this.BackStepMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 550 "..\..\DodavanjePredmeta.xaml"
                this.BackStepMenuItem.Click += new System.Windows.RoutedEventHandler(this.backStep);

            #line default
            #line hidden
                return;

            case 14:
                this.MenuItemHelp = ((System.Windows.Controls.MenuItem)(target));

            #line 559 "..\..\DodavanjePredmeta.xaml"
                this.MenuItemHelp.Click += new System.Windows.RoutedEventHandler(this.otvoriHelp);

            #line default
            #line hidden
                return;

            case 15:
                this.SecondMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 16:
                this.Cut = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 17:
                this.Copy = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.Paste = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 19:
                this.tabControlPredmet = ((System.Windows.Controls.TabControl)(target));
                return;

            case 20:
                this.Korak1Predmet = ((System.Windows.Controls.TabItem)(target));
                return;

            case 21:
                this.OznakaPredmeta = ((System.Windows.Controls.TextBox)(target));

            #line 681 "..\..\DodavanjePredmeta.xaml"
                this.OznakaPredmeta.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UnetaOznakaPredmeta);

            #line default
            #line hidden

            #line 681 "..\..\DodavanjePredmeta.xaml"
                this.OznakaPredmeta.LostFocus += new System.Windows.RoutedEventHandler(this.resetujBojuOkvira);

            #line default
            #line hidden
                return;

            case 22:
                this.GreskaOznakaPredmeta = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.NazivPredmeta = ((System.Windows.Controls.TextBox)(target));

            #line 710 "..\..\DodavanjePredmeta.xaml"
                this.NazivPredmeta.LostFocus += new System.Windows.RoutedEventHandler(this.resetujBojuOkvira);

            #line default
            #line hidden
                return;

            case 24:
                this.OpisPredmeta = ((System.Windows.Controls.TextBox)(target));

            #line 738 "..\..\DodavanjePredmeta.xaml"
                this.OpisPredmeta.LostFocus += new System.Windows.RoutedEventHandler(this.resetujBojuOkvira);

            #line default
            #line hidden
                return;

            case 25:
                this.smeroviTabela = ((System.Windows.Controls.DataGrid)(target));

            #line 759 "..\..\DodavanjePredmeta.xaml"
                this.smeroviTabela.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.izabranSmerPripadnostiPredmeta);

            #line default
            #line hidden
                return;

            case 26:
                this.VelicinaGrupePredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 27:
                this.DuzinaTerminaPredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 28:
                this.BrojTerminaPredmet = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

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

            #line 904 "..\..\DodavanjePredmeta.xaml"
                this.quitButton.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

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

            #line 926 "..\..\DodavanjePredmeta.xaml"
                this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 31:
                this.Korak2Predmet = ((System.Windows.Controls.TabItem)(target));
                return;

            case 32:
                this.PrisustvoTablePredmet = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 33:
                this.PrisustvoProjektoraPredmet = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 34:
                this.PrisustvoPametneTable = ((ToggleSwitch.HorizontalToggleSwitch)(target));
                return;

            case 35:
                this.Linux = ((System.Windows.Controls.RadioButton)(target));

            #line 1101 "..\..\DodavanjePredmeta.xaml"
                this.Linux.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 36:
                this.Windows = ((System.Windows.Controls.RadioButton)(target));

            #line 1102 "..\..\DodavanjePredmeta.xaml"
                this.Windows.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 37:
                this.Svejedno = ((System.Windows.Controls.RadioButton)(target));

            #line 1103 "..\..\DodavanjePredmeta.xaml"
                this.Svejedno.Checked += new System.Windows.RoutedEventHandler(this.prikazOdgovarajucihSoftvera);

            #line default
            #line hidden
                return;

            case 38:
                this.softverTabela = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 39:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 1177 "..\..\DodavanjePredmeta.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backClick);

            #line default
            #line hidden
                return;

            case 40:
                this.quitButtonTab2 = ((System.Windows.Controls.Button)(target));

            #line 1199 "..\..\DodavanjePredmeta.xaml"
                this.quitButtonTab2.Click += new System.Windows.RoutedEventHandler(this.cancelClick);

            #line default
            #line hidden
                return;

            case 41:
                this.finishButton = ((System.Windows.Controls.Button)(target));

            #line 1221 "..\..\DodavanjePredmeta.xaml"
                this.finishButton.Click += new System.Windows.RoutedEventHandler(this.finishClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }