示例#1
0
 private void Izmeni_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if ((RModel)PregledG.SelectedItem == null)
         {
             return;
         }
         RWindow rWindow = new RWindow((RModel)PregledG.SelectedItem);
         rWindow.ShowDialog();
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RWindowN = ((Projekat.Resurs.RWindow)(target));
                return;

            case 2:

            #line 14 "..\..\..\Resurs\RWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\..\Resurs\RWindow.xaml"
                this.OznakaTB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OznakaTB_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.ImeTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.OpisTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.Tip = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 8:
                this.Frekvencija = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.Slika = ((System.Windows.Controls.Image)(target));
                return;

            case 10:

            #line 131 "..\..\..\Resurs\RWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IkonicaB_Click);

            #line default
            #line hidden
                return;

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

            #line 133 "..\..\..\Resurs\RWindow.xaml"
                this.ObnovljivD.Checked += new System.Windows.RoutedEventHandler(this.Obnovljivot_Checked);

            #line default
            #line hidden
                return;

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

            #line 134 "..\..\..\Resurs\RWindow.xaml"
                this.ONe.Checked += new System.Windows.RoutedEventHandler(this.Obnovljivot_Checked);

            #line default
            #line hidden
                return;

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

            #line 136 "..\..\..\Resurs\RWindow.xaml"
                this.StrateskaD.Checked += new System.Windows.RoutedEventHandler(this.Strateska_Checked);

            #line default
            #line hidden
                return;

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

            #line 137 "..\..\..\Resurs\RWindow.xaml"
                this.SNe.Checked += new System.Windows.RoutedEventHandler(this.Strateska_Checked);

            #line default
            #line hidden
                return;

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

            #line 139 "..\..\..\Resurs\RWindow.xaml"
                this.EksploatisanjeD.Checked += new System.Windows.RoutedEventHandler(this.Eksploatisanje_Checked);

            #line default
            #line hidden
                return;

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

            #line 140 "..\..\..\Resurs\RWindow.xaml"
                this.ENe.Checked += new System.Windows.RoutedEventHandler(this.Eksploatisanje_Checked);

            #line default
            #line hidden
                return;

            case 17:
                this.Mera = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 19:
                this.DatumP = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 20:
                this.Button1 = ((System.Windows.Controls.Button)(target));

            #line 185 "..\..\..\Resurs\RWindow.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.SaveB_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
        private void Dodaj_Click(object sender, RoutedEventArgs e)
        {
            RWindow d = new RWindow();

            d.ShowDialog();
        }