Пример #1
1
        public override bool AttachControl(FilterPropertiesControl control)
        {
            Control = control;

            Grid grid = new Grid();
            int rowIndex = 0;

            TextBlock brightnessText = new TextBlock();
            brightnessText.Text = "Threshold";
            Grid.SetRow(brightnessText, rowIndex++);

            Slider brightnessSlider = new Slider();
            brightnessSlider.Minimum = 0.0;
            brightnessSlider.Maximum = 1.0;
            brightnessSlider.Value = _colorSwapFilter.Threshold;
            brightnessSlider.ValueChanged += brightnessSlider_ValueChanged;
            Grid.SetRow(brightnessSlider, rowIndex++);


            for (int i = 0; i < rowIndex; ++i)
            {
                RowDefinition rd = new RowDefinition();
                grid.RowDefinitions.Add(rd);
            }

            grid.Children.Add(brightnessText);
            grid.Children.Add(brightnessSlider);

            control.ControlsContainer.Children.Add(grid);

            return true;
        }
        public ExamineKeystrokes()
        {
            Title = "Examine Keystrokes";
            FontFamily = new FontFamily("Courier New");

            Grid grid = new Grid();
            Content = grid;

            // Make one row "auto" and the other fill the remaining space.
            RowDefinition rowdef = new RowDefinition();
            rowdef.Height = GridLength.Auto;
            grid.RowDefinitions.Add(rowdef);
            grid.RowDefinitions.Add(new RowDefinition());

            // Display header text.
            TextBlock textHeader = new TextBlock();
            textHeader.FontWeight = FontWeights.Bold;
            textHeader.Text = strHeader;
            grid.Children.Add(textHeader);

            // Create StackPanel as child of ScrollViewer for displaying events.
            scroll = new ScrollViewer();
            grid.Children.Add(scroll);
            Grid.SetRow(scroll, 1);

            stack = new StackPanel();
            scroll.Content = stack;
        }
Пример #3
1
 public MainTab(int page, TabItem newTab, Image newVerso, Image newRecto, Grid canvas, Grid vGrid, Grid rGrid, Button delBtn, ScatterView SV, ScatterViewItem si, Grid vSwipeGrid, Grid rSwipeGrid, Grid vTranslationGrid, Grid rTranslationGrid, Grid vBoxesGrid, Grid rBoxesGrid, TextBlock headerText, SurfaceWindow1.language language)
 {
     _page = page;
     _tab = newTab;
     _verso = newVerso;
     _recto = newRecto;
     _canvas = canvas;
     _vGrid = vGrid;
     _rGrid = rGrid;
     _SVI = si;
     _delButton = delBtn;
     numFingersRecto = 0;
     numFingersVerso = 0;
     fingerPos = new List<Point>();
     avgTouchPoint = new Point(-1, 0);
     _vSwipeGrid = vSwipeGrid;
     _rSwipeGrid = rSwipeGrid;
     _vTranslationGrid = vTranslationGrid;
     _rTranslationGrid = rTranslationGrid;
     _vBoxesGrid = vBoxesGrid;
     _rBoxesGrid = rBoxesGrid;
     _twoPage = true;
     _SV = SV;
     _headerTB = headerText;
     _currentLanguage = language;
     _previousLanguage = _currentLanguage;
     _worker = new Workers(this);
 }
Пример #4
1
        public static Uri Create(string filename, string text, SolidColorBrush backgroundColor, double textSize, Size size)
        {
            var background = new Rectangle();
            background.Width = size.Width;
            background.Height = size.Height;
            background.Fill = backgroundColor;

            var textBlock = new TextBlock();
            textBlock.Width = 500;
            textBlock.Height = 500;
            textBlock.TextWrapping = TextWrapping.Wrap;
            textBlock.Text = text;
            textBlock.FontSize = textSize;
            textBlock.Foreground = new SolidColorBrush(Colors.White);
            textBlock.FontFamily = new FontFamily("Segoe WP");

            var tileImage = "/Shared/ShellContent/" + filename;
            using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
            {
                var bitmap = new WriteableBitmap((int)size.Width, (int)size.Height);
                bitmap.Render(background, new TranslateTransform());
                bitmap.Render(textBlock, new TranslateTransform() { X = 39, Y = 88 });
                var stream = store.CreateFile(tileImage);
                bitmap.Invalidate();
                bitmap.SaveJpeg(stream, (int)size.Width, (int)size.Height, 0, 99);
                stream.Close();
            }
            return new Uri("ms-appdata:///local" + tileImage, UriKind.Absolute);
        }
Пример #5
1
        public PageHeader()
        {
            Brush brush = new SolidColorBrush(Colors.DarkGray);
            brush.Opacity = 0.60;

            this.Background = brush;

            Border frameBorder = new Border();
            frameBorder.BorderBrush = Brushes.Gray;
            frameBorder.BorderThickness = new Thickness(2);

            DockPanel panelMain = new DockPanel();
            panelMain.Margin = new Thickness(5, 5, 5, 5);
            panelMain.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

            txtText = new TextBlock();
            txtText.FontSize = 32;
            txtText.Margin = new Thickness(5, 0, 0, 0);
            txtText.SetResourceReference(TextBlock.ForegroundProperty, "HeaderTextColor");
            txtText.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

            panelMain.Children.Add(txtText);

            frameBorder.Child = panelMain;

            this.Content = frameBorder;
        }
Пример #6
1
        public Game(UserControl userControl, Canvas drawingCanvas, Canvas debugCanvas, TextBlock txtDebug)
        {
            //Initialize
            IsActive = true;
            IsFixedTimeStep = true;
            TargetElapsedTime = new TimeSpan(0, 0, 0, 0, 16);
            Components = new List<DrawableGameComponent>();
            World = new World(new Vector2(0, 0));
            _gameTime = new GameTime();
            _gameTime.GameStartTime = DateTime.Now;
            _gameTime.FrameStartTime = DateTime.Now;
            _gameTime.ElapsedGameTime = TimeSpan.Zero;
            _gameTime.TotalGameTime = TimeSpan.Zero;

            //Setup Canvas
            DrawingCanvas = drawingCanvas;
            DebugCanvas = debugCanvas;
            TxtDebug = txtDebug;
            UserControl = userControl;

            //Setup GameLoop
            _gameLoop = new Storyboard();
            _gameLoop.Completed += GameLoop;
            _gameLoop.Duration = TargetElapsedTime;
            DrawingCanvas.Resources.Add("gameloop", _gameLoop);
        }
Пример #7
1
        public Comment(Node hostNode)
        {
            HostNode = hostNode;

            var scrollViewer = new ScrollViewer
            {
                HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled,
                VerticalScrollBarVisibility = ScrollBarVisibility.Visible,
                Height = 70,
                CanContentScroll = true
            };

            var textBlock = new TextBlock
            {
                Background = Brushes.Transparent,
                TextWrapping = TextWrapping.Wrap,
                Margin = new Thickness(5),
                FontSize = 12
            };

            Child = scrollViewer;
            CornerRadius = new CornerRadius(5);
            scrollViewer.Content = textBlock;


            var bindingTextToTextBlock = new Binding("Text")
            {
                Source = this,
                Mode = BindingMode.OneWay
            };
            textBlock.SetBinding(TextBlock.TextProperty, bindingTextToTextBlock);

            hostNode.SpaceCanvas.Children.Add(this);
        }
Пример #8
1
        private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            var selectedItem = (DataContext as IEntityGridViewModel).SelectedItem;

            if (selectedItem == null)
                return;

                Type type = selectedItem.GetType();
            var relationshipProperties = type.GetProperties()
             .Where(t =>
                     t.Name != "Relationships" &&
                     t.GetGetMethod().IsVirtual &&
                     t.PropertyType.IsGenericType &&
                     t.PropertyType.GetGenericTypeDefinition() == typeof(ICollection<>))
             .ToList();

            foreach (var property in relationshipProperties)
            {
                //Binding binding = new Binding() { Path = new PropertyPath("SelectedItem." + property.Name), Source = this.DataContext };

                TextBlock textBlock = new TextBlock() { Text = property.Name };
                //BindingOperations.SetBinding(textBlock, TextBlock.TextProperty, binding);

                relatedEntitiesStackPanel.Children.Add(textBlock);

                Binding binding = new Binding() { Path = new PropertyPath("SelectedItem." + property.Name), Source = this.DataContext };

                DataGridControl listView = new DataGridControl();
                var value = property.GetValue(selectedItem) as System.Collections.IEnumerable;
                //listView.ItemsSource = value;
                BindingOperations.SetBinding(listView, DataGrid.ItemsSourceProperty, binding);

                relatedEntitiesStackPanel.Children.Add(listView);
            }
        }
Пример #9
0
        internal void SetEvidence(
            IDictionary<string, Tuple<FObservation, FRandomVariable[]>> evidences,
            IDictionary<string, string> abbreviations)
        {
            var evidencesSorted
                = evidences.OrderBy(kvp => kvp.Key);

            xEvidenceList.Children.Clear();

            foreach (var kvp in evidencesSorted)
            {
                // Scenario label.
                TextBlock scenarioLabel = new TextBlock();
                scenarioLabel.Text = kvp.Key;
                xEvidenceList.Children.Add(scenarioLabel);

                // Observation values.
                Observation.Observation obsControl = new Observation.Observation();
                var observation = kvp.Value.Item1;
                var observationVariables = kvp.Value.Item2;
                obsControl.SetData(observation, observationVariables, abbreviations);
                xEvidenceList.Children.Add(obsControl);
                obsControl.Margin = new Thickness(0, 0, 0, 12);
            }
        }
Пример #10
0
 public LowerList()
 {
     InitializeComponent();
     PageSum = new LowerListData();
     PageSum.UserID = "本页合计";
     PageSum.IsOnline = -1;
     TotalSum = new LowerListData();
     TotalSum.UserID = "总合计";
     TotalSum.IsOnline = -1;
     BindedLst = new List<long>();
     srv_UserList = WcfProxy.GetProxy;
     srv_UserList.GetLowerListDataCompleted += new EventHandler<LotterySrv.GetLowerListDataCompletedEventArgs>(srv_UserList_GetLowerListDataCompleted);
     srv_UserList.GetLowerListDataByUIDCompleted += new EventHandler<GetLowerListDataByUIDCompletedEventArgs>(srv_UserList_GetLowerListDataByUIDCompleted);
     BindLowerList(user.ID);
     TextBlock txtb = new TextBlock()
     {
         Text = "本级",
         Style = Resources["TextBlockStyle1"] as Style,
         Cursor=Cursors.Hand
     };
     if (user.RoleID == 3)
         btAddLower.Visibility = Visibility.Collapsed;
     txtb.Tag = user.ID;
     BindedLst.Add(user.ID);
     txtb.MouseLeftButtonDown += new MouseButtonEventHandler(TextBlock_MouseLeftButtonDown);
     NavMenu.Children.Add(txtb);
 }
Пример #11
0
 public TexBlock()
 {
     this.Loaded += TexBlock_Loaded;
     measureTextBlock = new System.Windows.Controls.TextBlock();
     displayTextBlock = new System.Windows.Controls.TextBlock();
     this.Content = displayTextBlock;
 }
Пример #12
0
        public void setChoices(List<string> choices)
        {
            TextBlock txtBlock;
            
            if (choices == null || choices.Count == 0)
            {
                return;
            }

            choicesList = choices;
            listBox.Items.Clear();

            foreach (string str in choices)
            {
                txtBlock = new TextBlock();

                txtBlock.TextWrapping = TextWrapping.Wrap;
                txtBlock.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
                txtBlock.Width = 370;
                txtBlock.Text = str;
                txtBlock.Margin = new Thickness(0, 2, 0, 2);

                listBox.Items.Add(txtBlock);
            }

            //listBox.ItemsSource = choices;
        }
Пример #13
0
 private TextBlock GenerateTextBlock()
 {
     TextBlock textBlock = new TextBlock();
     textBlock.TextWrapping = TextWrapping.Wrap;
     textBlock.Margin = new Thickness(10);
     return textBlock;
 }
    public override void OnApplyTemplate()
    {
        if (MapDetailsControl != null)
        {
            MapDetailsControl.MapDetailsChanged -= RaiseMapDetailsChanged;
            MapDetailsControl.MapSelectedForOpening -= RaiseMapSelectedForOpening;
        }

        if (ResultsListBox != null)
            ResultsListBox.SelectionChanged -= ResultListBox_SelectionChanged;

        base.OnApplyTemplate();

        MapDetailsControl = GetTemplateChild("MapDetailsControl") as MapDetailsControl;
        ResultsListBox = GetTemplateChild("ResultsListBox") as ListBox;
        SearchResultsTextBlock = GetTemplateChild("SearchResultsTextBlock") as TextBlock;
        DataPager = GetTemplateChild("DataPager") as DataPager;

        if (MapDetailsControl != null)
        {
            MapDetailsControl.MapDetailsChanged += RaiseMapDetailsChanged;
            MapDetailsControl.MapSelectedForOpening += RaiseMapSelectedForOpening;
        }

        if (ResultsListBox != null)
        {
            ResultsListBox.SelectionChanged += ResultListBox_SelectionChanged;
            ResultsListBox.DataContext = this;
        }
        if (_isDirty)
            GenerateResults();
    }
Пример #15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow"/> class.
        /// </summary>
        public MainWindow()
        {
            this.InitializeComponent();
            CompositionTarget.Rendering += this.CompositionTargetRendering;

            const int N = 9;
            for (int i = -N; i <= N; i++)
            {
                for (int j = -N; j <= N; j++)
                {
                    var circle = new Ellipse { Width = 4, Height = 4, Fill = Brushes.Tomato };
                    var text = new TextBlock { Text = "(" + i + "," + j + ")" };
                    Overlay.SetPosition3D(circle, new Point3D(i, j, 0));
                    Overlay.SetPosition3D(text, new Point3D(i, j, 0));
                    this.overlay1.Children.Add(circle);
                    this.overlay1.Children.Add(text);
                }
            }

            var text1 = new TextBlock
                {
                    Text = "Hello world!",
                    FontWeight = FontWeights.Bold,
                    FontSize = 16,
                    Foreground = Brushes.YellowGreen,
                    Background = Brushes.Gray,
                    Padding = new Thickness(4)
                };
            Overlay.SetPosition3D(text1, new Point3D(0, 0, 10));
            this.overlay1.Children.Add(text1);
        }
 public static void AddPointToGrid(Point position)
 {
     if (CircleIntersection.IsIntersect(position))
         return;
     var textBlock = new TextBlock()
     {
         Text = AppState.Counter.ToString(),
         FontSize = 30,
         Width = _circleDiameter,
         Height = _circleDiameter,
         Foreground = Brushes.AntiqueWhite,
         VerticalAlignment = VerticalAlignment.Top,
         HorizontalAlignment = HorizontalAlignment.Left,
         Opacity = 30,
         Padding = new Thickness(8.5, 3.5, 0, 0),
         Margin = new Thickness(position.X - 25, position.Y - 25, 0, 0),
         Background = new VisualBrush()
         {
             Visual = new Ellipse()
             {
                 Stroke = Brushes.Black,
                 Fill = Brushes.DarkBlue,
                 Width = _circleDiameter,
                 Height = _circleDiameter,
             }
         }
     };
     textBlock.MouseUp += SelectPointEventHandler;
     View.AddElementToView(textBlock);
 }
Пример #17
0
        public ExtTreeNode(Image icon, string title)
            : this()
        {
            if (icon != null)
            {
                this.icon = icon;
            }
            else//test inti icon
            {
                this.icon = new Image();
                BitmapImage bitmapImage = new BitmapImage();
                bitmapImage.BeginInit();
                bitmapImage.UriSource = new Uri(@"pack://*****:*****@"../../icons/add.png", UriKind.RelativeOrAbsolute);
                bitmapImage.EndInit();
                this.icon.Source = bitmapImage;
            }

            this.icon.Width = 16;
            this.icon.Height = 16;

            this.title = title;

            TextBlock tb = new TextBlock();
            tb.Text = title;
            Grid grid = new Grid();
            grid.ColumnDefinitions.Add(new ColumnDefinition());
            grid.ColumnDefinitions.Add(new ColumnDefinition());
            grid.Children.Add(this.icon);
            grid.Children.Add(tb);
            Grid.SetColumn(this.icon, 0);
            Grid.SetColumn(tb, 1);
            this.Header = grid;
        }
Пример #18
0
 void addStatusLabel(string text, Brush color, StackPanel panel)
 {
     TextBlock lbl = new TextBlock();
     lbl.Text = text;
     lbl.Foreground = color;
     panel.Children.Add(lbl);
 }
Пример #19
0
        public PopupMsg(TextBlock msg)
        {
            //Store TextBlock for message display
            this.msg = msg;
            //Register the textblock's name, this is necessary for creating Storyboard using codes instead of XAML
            NameScope.SetNameScope(msg, new NameScope());
            msg.RegisterName("fadetext", msg);

            //Create the fade in & fade out animation
            DoubleAnimationUsingKeyFrames fadeInOutAni = new DoubleAnimationUsingKeyFrames();
            LinearDoubleKeyFrame keyframe = new LinearDoubleKeyFrame();
            keyframe.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2));
            keyframe.Value = 1;
            fadeInOutAni.KeyFrames.Add(keyframe);
            //keyframe = new LinearDoubleKeyFrame();

            fadeInOutAni.Duration = new Duration(TimeSpan.FromSeconds(4));        
            fadeInOutAni.AutoReverse = true;
            fadeInOutAni.AccelerationRatio = .2;
            fadeInOutAni.DecelerationRatio = .7;

            // Configure the animation to target the message's opacity property
            Storyboard.SetTargetName(fadeInOutAni, "fadetext");
            Storyboard.SetTargetProperty(fadeInOutAni, new PropertyPath(TextBlock.OpacityProperty));

            // Add the fade in & fade out animation to the Storyboard
            Storyboard fadeInOutStoryBoard = new Storyboard();
            fadeInOutStoryBoard.Children.Add(fadeInOutAni);

            // Set event trigger, make this animation played on an event we can control
            msg.IsVisibleChanged += delegate(object sender,  System.Windows.DependencyPropertyChangedEventArgs e)
            {
                if (msg.IsVisible) fadeInOutStoryBoard.Begin(msg);
            };
        }
        private static void TypewriteTextblock(string textToAnimate, TextBlock txt, TimeSpan timeSpan)
        {
            var story = new Storyboard
            {
                FillBehavior = FillBehavior.HoldEnd
            };

            DiscreteStringKeyFrame discreteStringKeyFrame;
            var stringAnimationUsingKeyFrames = new StringAnimationUsingKeyFrames
            {
                Duration = new Duration(timeSpan)
            };

            var tmp = string.Empty;
            foreach (var c in textToAnimate)
            {
                discreteStringKeyFrame = new DiscreteStringKeyFrame
                {
                    KeyTime = KeyTime.Paced
                };
                tmp += c;
                discreteStringKeyFrame.Value = tmp;
                stringAnimationUsingKeyFrames.KeyFrames.Add(discreteStringKeyFrame);
            }

            Storyboard.SetTargetName(stringAnimationUsingKeyFrames, txt.Name);
            Storyboard.SetTargetProperty(stringAnimationUsingKeyFrames, new PropertyPath(TextBlock.TextProperty));
            story.Children.Add(stringAnimationUsingKeyFrames);
            story.Begin(txt);
        }
        private void showPopup2_Click(object sender, RoutedEventArgs e)
        {
            if (p.IsOpen == true)
                return;
            Border border = new Border();
            border.BorderBrush = new SolidColorBrush(Colors.White);
            border.BorderThickness = new Thickness(2.0);

            StackPanel panel1 = new StackPanel();

            Button button1 = new Button();
            button1.Content = "Close";
            button1.Margin = new Thickness(5.0);
            button1.Click += new RoutedEventHandler(button1_Click);
            TextBlock textblock1 = new TextBlock();
            textblock1.Text = "Premi il pulsante Close";
            textblock1.Margin = new Thickness(5.0);
            panel1.Children.Add(textblock1);
            panel1.Children.Add(button1);
            border.Child = panel1;

            p = new Popup();
            // Imposta la proprietà Child con il border che è il contenitore principale che contiene a sua volta uno stackpanel, un textblock ed un button.
            p.Child = border;
            //imposta la posizione del popup
            p.VerticalOffset = 100;
            p.HorizontalOffset = 50;

            // apre il popup
            p.IsOpen = true;
        }
Пример #22
0
    public void setperms(System.Windows.Controls.TextBlock status, string comOBJ)
    {
        startADB();
        status.Text = "Setting Permissions";
        Process audioperm = new Process();

        audioperm.StartInfo.CreateNoWindow = false;
        audioperm.StartInfo.FileName       = adblocation;
        audioperm.StartInfo.Arguments      = "-d shell pm grant " + comOBJ + " android.permission.RECORD_AUDIO";
        audioperm.Start();
        audioperm.WaitForExit();
        status.Text = "Audio Perms Set";


        Process rstorageperm = new Process();

        rstorageperm.StartInfo.CreateNoWindow = false;
        rstorageperm.StartInfo.FileName       = adblocation;
        rstorageperm.StartInfo.Arguments      = "-d shell pm grant " + comOBJ + " android.permission.READ_EXTERNAL_STORAGE";
        rstorageperm.Start();
        rstorageperm.WaitForExit();
        status.Text = "Read Storage Perms Set";


        Process wstorageperm = new Process();

        wstorageperm.StartInfo.CreateNoWindow = false;
        wstorageperm.StartInfo.FileName       = adblocation;
        wstorageperm.StartInfo.Arguments      = "-d shell pm grant " + comOBJ + " android.permission.WRITE_EXTERNAL_STORAGE";
        wstorageperm.Start();
        wstorageperm.WaitForExit();
        status.Text = "Write Storage Perms Set";
    }
Пример #23
0
 public God(string name, int hours, GodPos pos, TextBlock output)
 {
     this.name = name;
     this.hours = hours;
     this.pos = pos;
     this.output = output;
 }
Пример #24
0
        protected override Grid MakeGivenGrid()
        {
            //Set up grid
            Grid grid = new Grid();
            grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });

            //Create the description text
            TextBlock desc = new TextBlock();
            desc.TextWrapping = TextWrapping.Wrap;
            desc.Text = "Specify a midpoint.";
            desc.Margin = new Thickness(0, 0, 0, 10);

            //Create a combo box to choose from
            optionsBox = new ComboBox();
            optionsBox.MinWidth = 200;

            //Align elements in grid and add them to it
            Grid.SetColumn(desc, 0);
            Grid.SetRow(desc, 0);
            grid.Children.Add(desc);
            Grid.SetColumn(optionsBox, 0);
            Grid.SetRow(optionsBox, 1);
            grid.Children.Add(optionsBox);

            return grid;
        }
Пример #25
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var lstItems = new ContentFetcher().GoFetch();
            foreach (var iterItem in lstItems) {
                StackPanel spanel = new StackPanel();

                TextBlock tbTitle = new TextBlock();
                tbTitle.MaxWidth = listBox.Width - 30d;

                ////This does no better than when we hardcode the scrollbar width as 30d, as in listBox.Width - 30d
                //Border border = (Border)VisualTreeHelper.GetChild(listBox, 0);
                //var scrollViewer = (ScrollViewer)VisualTreeHelper.GetChild(border, 0);
                //tbTitle.MaxWidth = scrollViewer.ActualWidth;

                tbTitle.TextWrapping = TextWrapping.Wrap;
                tbTitle.Text = iterItem.Title.Text;
                TextBlock tbPubDate = new TextBlock();
                //tbPubDate.MaxWidth = 200d; //Don't bother; this won't grow very large
                tbPubDate.Text = iterItem.PublishDate.ToLocalTime().DateTime.ToShortDateString() + " " + iterItem.PublishDate.ToLocalTime().DateTime.ToShortTimeString();

                spanel.Children.Add(tbTitle);
                spanel.Children.Add(tbPubDate);
                spanel.Tag = iterItem;
                spanel.Margin = new Thickness() { Bottom=8 };

                listBox.Items.Add(spanel);
            }
        }
Пример #26
0
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/ErrorMessageBox.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.DetailsEnabledStates = (VisualStateGroup) base.FindName("DetailsEnabledStates");
         this.ErrorMessageDetailDisabled = (VisualState) base.FindName("ErrorMessageDetailDisabled");
         this.ErrorMessageDetailEnabled = (VisualState) base.FindName("ErrorMessageDetailEnabled");
         this.DetailsStates = (VisualStateGroup) base.FindName("DetailsStates");
         this.DetailsVisible = (VisualState) base.FindName("DetailsVisible");
         this.DetailsNotVisible = (VisualState) base.FindName("DetailsNotVisible");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.InnerDialogGrid = (Grid) base.FindName("InnerDialogGrid");
         this.DialogRectangle = (Rectangle) base.FindName("DialogRectangle");
         this.CloseButton = (Button) base.FindName("CloseButton");
         this.ErrorMessageTitleTextBlock = (TextBlock) base.FindName("ErrorMessageTitleTextBlock");
         this.ErrorMessageTextBlock = (TextBlock) base.FindName("ErrorMessageTextBlock");
         this.ButtonOK = (Button) base.FindName("ButtonOK");
         this.Icon = (TextBlock) base.FindName("Icon");
         this.SimpleErrorDetails = (Grid) base.FindName("SimpleErrorDetails");
         this.ShowDetailsToggle = (TextToggleButton) base.FindName("ShowDetailsToggle");
         this.DetailsTextBox = (TextBox) base.FindName("DetailsTextBox");
     }
 }
        public SimpleUIBoundToCustomer()
        {
            var stack = new StackPanel();
            Content = stack;

            var textBlock = new TextBlock();
            textBlock.SetBinding(TextBlock.TextProperty, new Binding("FirstName"));
            stack.Children.Add(textBlock);

            textBlock = new TextBlock();
            textBlock.SetBinding(TextBlock.TextProperty, new Binding("LstName")); //purposefully misspelled
            stack.Children.Add(textBlock);

            textBlock = new TextBlock();
            textBlock.SetBinding(TextBlock.TextProperty, new Binding()); //context
            stack.Children.Add(textBlock);

            var checkbox = new CheckBox();
            checkbox.SetBinding(CheckBox.IsCheckedProperty, new Binding("asdfsdf")); //does not exist
            stack.Children.Add(checkbox);

            var tooltip = new ToolTip();
            tooltip.SetBinding(System.Windows.Controls.ToolTip.ContentProperty, new Binding("asdfasdasdf")); // does not exist
            stack.ToolTip = tooltip;

            var childUserControl = new SimpleUIBoundToCustomerByAttachedPorperty();
            stack.Children.Add(childUserControl);
        }
Пример #28
0
 public void SetService(List<EpgServiceInfo> serviceList)
 {
     stackPanel_service.Children.Clear();
     foreach (EpgServiceInfo info in serviceList)
     {
         TextBlock item = new TextBlock();
         item.Text = info.service_name;
         if (info.remote_control_key_id != 0)
         {
             item.Text += "\r\n" + info.remote_control_key_id.ToString();
         }
         else
         {
             item.Text += "\r\n" + info.network_name + " " + info.SID.ToString();
         }
         item.Width = Settings.Instance.ServiceWidth - 2;
         item.Margin = new Thickness(1, 1, 1, 1);
         item.Background = CommonManager.Instance.CustServiceColor;
         item.Foreground = Brushes.White;
         item.TextAlignment = TextAlignment.Center;
         item.FontSize = 12;
         item.MouseLeftButtonDown += new MouseButtonEventHandler(item_MouseLeftButtonDown);
         item.DataContext = info;
         stackPanel_service.Children.Add(item);
     }
 }
Пример #29
0
        public UIElement CreateListPanel(TwitterList list)
        {
            var s = new StackPanel();
            var si = new StackPanel();
            s.Orientation = Orientation.Horizontal;
            Image img = new Image { Width = 36, Height = 36 };
            BitmapImage bi = new BitmapImage(new Uri(list.User.ProfileImageUrlHttps));
            img.Source = bi;
            s.Children.Add(img);

            var ti = new TextBlock { FontSize = 20 };
            ti.Text = (list.Mode == "private" ? "*" : "") + list.Name;
            ti.TextWrapping = TextWrapping.Wrap;
            var de = new TextBlock { Foreground = Brushes.Gray };
            de.Text = list.Description;
            de.TextWrapping = TextWrapping.Wrap;
            var cn = new TextBlock();
            cn.Text = list.MemberCount.ToString() + "人が追加されています";
            si.Children.Add(ti);
            si.Children.Add(cn);
            si.Children.Add(de);
            s.Children.Add(si);
            s.Tag = list;
            return s;
        }
Пример #30
0
 private void Button_Loaded(object sender, RoutedEventArgs args)
 {
     System.Windows.Controls.Button button = sender as System.Windows.Controls.Button;
     if (button != null)
     {
         StackPanel panel = new StackPanel()
         {
             Orientation = Orientation.Horizontal
         };
         Image shield = new Image()
         {
             Width = 24,
             Source = Shield
         };
         panel.Children.Add(shield);
         Rectangle rect = new Rectangle()
         {
             Width = 10
         };
         panel.Children.Add(rect);
         TextBlock text = new TextBlock()
         {
             Text = (button.Command as RoutedUICommand).Text
         };
         panel.Children.Add(text);
         button.Content = panel;
     }
 }
Пример #31
0
        public virtual void Render()
        {
            int pos = _text.IndexOf(_highlight, StringComparison.CurrentCultureIgnoreCase);
            if (pos >= 0) {

                var start = _text.Substring(0, pos);
                var end = _text.Substring(pos + _highlight.Length);
                var highlighted = _text;

                if (!String.IsNullOrEmpty(end)) {
                    highlighted = highlighted.Replace(end, string.Empty);
                }

                if (!String.IsNullOrEmpty(start)) {
                    highlighted = highlighted.Replace(start, string.Empty);
                }

                this.Inlines.Add(start);
                this.Inlines.Add(_part = new TextBlock() {
                    Text = highlighted,
                    FontWeight = FontWeights.Normal
                });
                this.Inlines.Add(end);
            }
            else {
                this.Inlines.Add(_text);
            }
        }
Пример #32
0
 // left mouseclick
 private static void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     // the sender object is the object that generated the event
     // we use this to seek Textblock
     System.Windows.Controls.TextBlock objText = (System.Windows.Controls.TextBlock)((Window)sender).FindName("Text");
     // change text of Textblock
     objText.Text = "Left mouse button was pressed.\n\nRight mouse button (or Alt-X)\n\ncloses the window.";
     // allow "move window" per drag with left mouse button
     ((Window)sender).DragMove();
 }
Пример #33
0
    public void PushMap(string mapDir, string mapname, System.Windows.Controls.TextBlock status)
    {
        startADB();
        Process map_push = new Process();

        map_push.StartInfo.CreateNoWindow = false;
        map_push.StartInfo.FileName       = adblocation;
        map_push.StartInfo.Arguments      = "-d push \"" + mapDir + "\"  /sdcard/pavlov/maps/" + mapname;
        map_push.Start();
        map_push.WaitForExit();
        status.Text = mapname + " Pushed!";
    }
Пример #34
0
    internal void OnLayoutChanged(object sender, Microsoft.VisualStudio.Text.Editor.TextViewLayoutChangedEventArgs e)
    {
        // Raised whenever the rendered text displayed in the ITextView changes - whenever the view does a layout
        // (which happens when DisplayTextLineContainingBufferPosition is called or in response to text or classification
        // changes), and also when the view scrolls or when its size changes.
        // Responsible for adding the adornment to any reformatted lines.

        // This code overlays the document version on line 0 of the file
        if (DocumentId == null)
        {
            var dte            = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(EnvDTE.DTE)) as EnvDTE.DTE;
            var activeDocument = dte?.ActiveDocument; // sometimes we're constructed/invoked before ActiveDocument has been set
            if (activeDocument != null)
            {
                DocumentId = Workspace.CurrentSolution.GetDocumentIdsWithFilePath(activeDocument.FullName).FirstOrDefault();
            }
        }

        if (Adornment == null)
        {
            var line = e.NewOrReformattedLines.SingleOrDefault(l => l.Start.GetContainingLine().LineNumber == 0);
            if (line == null)
            {
                return;
            }
            var geometry = View.TextViewLines.GetMarkerGeometry(line.Extent);
            if (geometry == null)
            {
                return;
            }
            Adornment = new System.Windows.Controls.TextBlock {
                Width = 400, Height = geometry.Bounds.Height, Background = System.Windows.Media.Brushes.Yellow, Opacity = 0.5
            };
            System.Windows.Controls.Canvas.SetLeft(Adornment, 300);
            System.Windows.Controls.Canvas.SetTop(Adornment, geometry.Bounds.Top);
            View.GetAdornmentLayer("TextAdornment1").AddAdornment(Microsoft.VisualStudio.Text.Editor.AdornmentPositioningBehavior.TextRelative, line.Extent, null, Adornment, (tag, ui) => Adornment = null);
        }

        if (DocumentId != null)
        {
            var document = Workspace.CurrentSolution.GetDocument(DocumentId);
            if (document == null)
            {
                return;
            }
            Microsoft.CodeAnalysis.VersionStamp version;
            if (!document.TryGetTextVersion(out version))
            {
                version = Microsoft.CodeAnalysis.VersionStamp.Default;
            }
            Adornment.Text = version.ToString();
        }
    }
Пример #35
0
    public void uninstallGame(System.Windows.Controls.TextBlock status, string comOBJ)
    {
        startADB();
        status.Text = "Uninstalling App From Quest";
        Process uninstall = new Process();

        uninstall.StartInfo.CreateNoWindow = false;
        uninstall.StartInfo.FileName       = adblocation;
        uninstall.StartInfo.Arguments      = "uninstall " + comOBJ;
        uninstall.Start();
        uninstall.WaitForExit();
        status.Text = comOBJ + " Uninstalled";
    }
Пример #36
0
    public void pushOBB(System.Windows.Controls.TextBlock status, string path, string gameName, string obbName, string comOBJ)
    {
        startADB();
        status.Text = "Pushing OBB";
        Process obbpush = new Process();

        obbpush.StartInfo.CreateNoWindow = false;
        obbpush.StartInfo.FileName       = adblocation;
        obbpush.StartInfo.Arguments      = "-d push \"" + path + "\\" + gameName + "\\" + obbName + "\" /sdcard/Android/obb/" + comOBJ + "/" + obbName;
        obbpush.Start();
        obbpush.WaitForExit();
        status.Text = "Obb Pushed";
    }
Пример #37
0
    public void pushAPK(System.Windows.Controls.TextBlock status, string path, string name, string apkname)
    {
        startADB();
        status.Text = "Pushing APK";
        Process apk = new Process();

        apk.StartInfo.CreateNoWindow = false;
        apk.StartInfo.FileName       = adblocation;
        apk.StartInfo.Arguments      = "install \"" + path + "\\" + name + "\\" + apkname + "\"";
        apk.Start();
        apk.WaitForExit();
        status.Text = "Apk Pushed";
    }
Пример #38
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtBlockPath1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 3:
                this.textBlockString = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 5:
                this.textBlockStringLong = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 7:
                this.txtBlockPath2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.txtBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.textBlockString1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 11:
                this.textBlockStringLong1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.txtFirstChar = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.txtBlock3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBlockString2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.txtName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.txtBlockSecondChar = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 18:
                this.textBlockStringLong3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.txtLength = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.txtBlock4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.textBlockCountry = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 23:
                this.txtBlockProvince = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 25:
                this.textBlockCity = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.txtCity = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #39
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Ai_La_Trieu_Phu;component/View/PlayPage.xaml", System.UriKind.Relative));
     this.Storyboard_dongho    = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_dongho")));
     this.Storyboard_moccauhoi = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_moccauhoi")));
     this.Storyboard_trogiup   = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_trogiup")));
     this.Storyboard_dapanA    = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_dapanA")));
     this.Storyboard_dapanB    = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_dapanB")));
     this.Storyboard_dapanC    = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_dapanC")));
     this.Storyboard_dapanD    = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard_dapanD")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.dh1              = ((System.Windows.Controls.Image)(this.FindName("dh1")));
     this.dh2              = ((System.Windows.Controls.Image)(this.FindName("dh2")));
     this.dh3              = ((System.Windows.Controls.Image)(this.FindName("dh3")));
     this.dh4              = ((System.Windows.Controls.Image)(this.FindName("dh4")));
     this.dh5              = ((System.Windows.Controls.Image)(this.FindName("dh5")));
     this.dh6              = ((System.Windows.Controls.Image)(this.FindName("dh6")));
     this.goidien1         = ((System.Windows.Controls.Image)(this.FindName("goidien1")));
     this.goidien2         = ((System.Windows.Controls.Image)(this.FindName("goidien2")));
     this.goidien3         = ((System.Windows.Controls.Image)(this.FindName("goidien3")));
     this.nammuoi_nammuoi1 = ((System.Windows.Controls.Image)(this.FindName("nammuoi_nammuoi1")));
     this.nammuoi_nammuoi2 = ((System.Windows.Controls.Image)(this.FindName("nammuoi_nammuoi2")));
     this.nammuoi_nammuoi3 = ((System.Windows.Controls.Image)(this.FindName("nammuoi_nammuoi3")));
     this.hoikhangia1      = ((System.Windows.Controls.Image)(this.FindName("hoikhangia1")));
     this.hoikhangia2      = ((System.Windows.Controls.Image)(this.FindName("hoikhangia2")));
     this.hoikhangia3      = ((System.Windows.Controls.Image)(this.FindName("hoikhangia3")));
     this.back1            = ((System.Windows.Controls.Image)(this.FindName("back1")));
     this.back2            = ((System.Windows.Controls.Image)(this.FindName("back2")));
     this.back3            = ((System.Windows.Controls.Image)(this.FindName("back3")));
     this.dapan_A          = ((System.Windows.Controls.Image)(this.FindName("dapan_A")));
     this.dapan_B          = ((System.Windows.Controls.Image)(this.FindName("dapan_B")));
     this.dapan_C          = ((System.Windows.Controls.Image)(this.FindName("dapan_C")));
     this.dapan_D          = ((System.Windows.Controls.Image)(this.FindName("dapan_D")));
     this.dapan_A2         = ((System.Windows.Controls.Image)(this.FindName("dapan_A2")));
     this.dapan_B2         = ((System.Windows.Controls.Image)(this.FindName("dapan_B2")));
     this.dapan_C2         = ((System.Windows.Controls.Image)(this.FindName("dapan_C2")));
     this.dapan_D2         = ((System.Windows.Controls.Image)(this.FindName("dapan_D2")));
     this.bangcauhoi       = ((System.Windows.Controls.Image)(this.FindName("bangcauhoi")));
     this.moc1             = ((System.Windows.Controls.Image)(this.FindName("moc1")));
     this.line1            = ((System.Windows.Controls.Image)(this.FindName("line1")));
     this.moc2             = ((System.Windows.Controls.Image)(this.FindName("moc2")));
     this.line2            = ((System.Windows.Controls.Image)(this.FindName("line2")));
     this.moc3             = ((System.Windows.Controls.Image)(this.FindName("moc3")));
     this.line3            = ((System.Windows.Controls.Image)(this.FindName("line3")));
     this.moc4             = ((System.Windows.Controls.Image)(this.FindName("moc4")));
     this.line4            = ((System.Windows.Controls.Image)(this.FindName("line4")));
     this.moc5             = ((System.Windows.Controls.Image)(this.FindName("moc5")));
     this.moc6             = ((System.Windows.Controls.Image)(this.FindName("moc6")));
     this.moc7             = ((System.Windows.Controls.Image)(this.FindName("moc7")));
     this.moc8             = ((System.Windows.Controls.Image)(this.FindName("moc8")));
     this.moc9             = ((System.Windows.Controls.Image)(this.FindName("moc9")));
     this.moc10            = ((System.Windows.Controls.Image)(this.FindName("moc10")));
     this.moc11            = ((System.Windows.Controls.Image)(this.FindName("moc11")));
     this.moc12            = ((System.Windows.Controls.Image)(this.FindName("moc12")));
     this.moc13            = ((System.Windows.Controls.Image)(this.FindName("moc13")));
     this.moc14            = ((System.Windows.Controls.Image)(this.FindName("moc14")));
     this.moc15            = ((System.Windows.Controls.Image)(this.FindName("moc15")));
     this.line5            = ((System.Windows.Controls.Image)(this.FindName("line5")));
     this.line6            = ((System.Windows.Controls.Image)(this.FindName("line6")));
     this.line7            = ((System.Windows.Controls.Image)(this.FindName("line7")));
     this.line8            = ((System.Windows.Controls.Image)(this.FindName("line8")));
     this.line9            = ((System.Windows.Controls.Image)(this.FindName("line9")));
     this.line10           = ((System.Windows.Controls.Image)(this.FindName("line10")));
     this.line11           = ((System.Windows.Controls.Image)(this.FindName("line11")));
     this.line12           = ((System.Windows.Controls.Image)(this.FindName("line12")));
     this.line13           = ((System.Windows.Controls.Image)(this.FindName("line13")));
     this.line14           = ((System.Windows.Controls.Image)(this.FindName("line14")));
     this.line15           = ((System.Windows.Controls.Image)(this.FindName("line15")));
     this.gioithieu        = ((System.Windows.Controls.MediaElement)(this.FindName("gioithieu")));
     this.batdau           = ((System.Windows.Controls.MediaElement)(this.FindName("batdau")));
     this.nhacnen          = ((System.Windows.Controls.MediaElement)(this.FindName("nhacnen")));
     this.tbl1             = ((System.Windows.Controls.TextBlock)(this.FindName("tbl1")));
     this.daA              = ((System.Windows.Controls.TextBlock)(this.FindName("daA")));
     this.daB              = ((System.Windows.Controls.TextBlock)(this.FindName("daB")));
     this.daC              = ((System.Windows.Controls.TextBlock)(this.FindName("daC")));
     this.daD              = ((System.Windows.Controls.TextBlock)(this.FindName("daD")));
     this.dongho           = ((System.Windows.Controls.TextBlock)(this.FindName("dongho")));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.elipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 3:
                this.btnIniciar = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btnIniciar.Click += new System.Windows.RoutedEventHandler(this.btnIniciar_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.btnFinalizar.Click += new System.Windows.RoutedEventHandler(this.btnFinalizar_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lblFrecuencia = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.lblTono = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.lblFrecTono = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.lblA = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.lblAS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.lblB = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.lblC = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.lblCS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.lblD = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.lblDS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.lblE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.lblF = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.lblFS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.lblG = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.lblGS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.elipseTono = ((System.Windows.Shapes.Ellipse)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mitemSacuvaj = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 3:

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);

            #line default
            #line hidden
                return;

            case 4:

            #line 40 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.gridLevi = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.filterGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

            case 10:
                this.cbFilter = ((System.Windows.Controls.ComboBox)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.cbFilter.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbFilter_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.dgTabela = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 12:
                this.dgTipovi = ((System.Windows.Controls.DataGrid)(target));
                return;

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

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

            #line 121 "..\..\MainWindow.xaml"
                this.btnLokali.Click += new System.Windows.RoutedEventHandler(this.Lokali_Prikazi_Click);

            #line default
            #line hidden
                return;

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

            #line 122 "..\..\MainWindow.xaml"
                this.btnEtikete.Click += new System.Windows.RoutedEventHandler(this.Etikete_Prikazi_Click);

            #line default
            #line hidden
                return;

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

            #line 123 "..\..\MainWindow.xaml"
                this.btnTipovi.Click += new System.Windows.RoutedEventHandler(this.Tipovi_Prikazi_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.opisL = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.opisT = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.opisE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.GridOpisLokal = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.textOpisLokal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.GridOpisTip = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.textOpisTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.GridOpisEtiketa = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.textOpisEtiketa = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.GridDodavanje = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:

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

            #line default
            #line hidden
                return;

            case 28:

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

            #line default
            #line hidden
                return;

            case 29:

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

            #line default
            #line hidden
                return;

            case 30:

            #line 183 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBox)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.ListView_MouseMove);

            #line default
            #line hidden

            #line 183 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBox)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ListView_PreviewMoustLeftButtonDown);

            #line default
            #line hidden
                return;

            case 31:
                this.LokalView = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 32:
                this.GridLokaliView = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.lokOznaka = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.lokIme = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.lokKapacitet = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.lokSlika = ((System.Windows.Controls.Image)(target));
                return;

            case 37:
                this.lokHend = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.lokPusenje = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.lokRezervacije = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.lokTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.lokEtiketa = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.lokAlk = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.lokCena = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.lokDatum = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 263 "..\..\MainWindow.xaml"
                this.btnIzmeniLokal.Click += new System.Windows.RoutedEventHandler(this.BtnIzmeniLokal_Click);

            #line default
            #line hidden
                return;

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

            #line 264 "..\..\MainWindow.xaml"
                this.btnIzbrisiLokal.Click += new System.Windows.RoutedEventHandler(this.BtnIzbrisiLokal_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.TipView = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 48:
                this.tipOznaka = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 49:
                this.tipIme = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 50:
                this.tipSlika = ((System.Windows.Controls.Image)(target));
                return;

            case 51:
                this.btnIzmeniTip = ((System.Windows.Controls.Button)(target));

            #line 310 "..\..\MainWindow.xaml"
                this.btnIzmeniTip.Click += new System.Windows.RoutedEventHandler(this.BtnIzmeniTip_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.btnIzbrisiTip = ((System.Windows.Controls.Button)(target));

            #line 311 "..\..\MainWindow.xaml"
                this.btnIzbrisiTip.Click += new System.Windows.RoutedEventHandler(this.BtnIzbrisiTip_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.EtiketaView = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 54:
                this.etOznaka = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.etBoja = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 56:
                this.btnIzmeniEtiketa = ((System.Windows.Controls.Button)(target));

            #line 354 "..\..\MainWindow.xaml"
                this.btnIzmeniEtiketa.Click += new System.Windows.RoutedEventHandler(this.BtnIzmeniEtiketu_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.btnIzbirisiEtiketa = ((System.Windows.Controls.Button)(target));

            #line 355 "..\..\MainWindow.xaml"
                this.btnIzbirisiEtiketa.Click += new System.Windows.RoutedEventHandler(this.BtnIzbirisiEtiketa_Click);

            #line default
            #line hidden
                return;

            case 58:
                this.btnClearMap = ((System.Windows.Controls.Button)(target));

            #line 374 "..\..\MainWindow.xaml"
                this.btnClearMap.Click += new System.Windows.RoutedEventHandler(this.BtnClearMap_Click);

            #line default
            #line hidden
                return;

            case 59:
                this.gridCanvas = ((System.Windows.Controls.Grid)(target));
                return;

            case 60:
                this.canvasMap = ((System.Windows.Controls.Canvas)(target));

            #line 406 "..\..\MainWindow.xaml"
                this.canvasMap.DragEnter += new System.Windows.DragEventHandler(this.ListView_DragEnter);

            #line default
            #line hidden

            #line 406 "..\..\MainWindow.xaml"
                this.canvasMap.Drop += new System.Windows.DragEventHandler(this.ListView_Drop);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.close = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\..\View\CheckOutWindow.xaml"
                this.close.Click += new System.Windows.RoutedEventHandler(this.closeButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.leftGrid = ((System.Windows.Controls.DockPanel)(target));

            #line 32 "..\..\..\View\CheckOutWindow.xaml"
                this.leftGrid.GotFocus += new System.Windows.RoutedEventHandler(this.textBox_GotFocus);

            #line default
            #line hidden

            #line 32 "..\..\..\View\CheckOutWindow.xaml"
                this.leftGrid.KeyDown += new System.Windows.Input.KeyEventHandler(this.OnKeyDown);

            #line default
            #line hidden
                return;

            case 5:
                this.cbxMoney = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            #line 36 "..\..\..\View\CheckOutWindow.xaml"
                this.tbxMoney.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tbxMoney_TextChanged);

            #line default
            #line hidden
                return;

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

            case 8:
                this.cbxWx = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 9:
                this.tbxWx = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.cbxZfb = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.tbxZfb = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.cbxJf = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 14:
                this.rightGrid = ((System.Windows.Controls.Grid)(target));

            #line 64 "..\..\..\View\CheckOutWindow.xaml"
                this.rightGrid.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Grid_Click));

            #line default
            #line hidden
                return;

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

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

            case 17:
                this.button9 = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.button4 = ((System.Windows.Controls.Button)(target));
                return;

            case 19:
                this.button5 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 21:
                this.button1 = ((System.Windows.Controls.Button)(target));
                return;

            case 22:
                this.button2 = ((System.Windows.Controls.Button)(target));
                return;

            case 23:
                this.button3 = ((System.Windows.Controls.Button)(target));
                return;

            case 24:
                this.button0 = ((System.Windows.Controls.Button)(target));
                return;

            case 25:
                this.buttonBackspace = ((System.Windows.Controls.Button)(target));
                return;

            case 26:
                this.buttonDel = ((System.Windows.Controls.Button)(target));
                return;

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

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

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

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

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

            #line 94 "..\..\..\View\CheckOutWindow.xaml"
                this.buttonOK.Click += new System.Windows.RoutedEventHandler(this.OK_Click);

            #line default
            #line hidden
                return;

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

            case 33:
                this.grid_doing = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.grid_succ = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 109 "..\..\..\View\CheckOutWindow.xaml"
                this.button11.Click += new System.Windows.RoutedEventHandler(this.closeButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #43
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 2:
     this.textBlock3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.textBlock4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.textBlock5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.TxtUsername = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.TxtName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.TxtLastName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.textBlock8 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.TxtAge = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.textBlock6 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.TxtEmail = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.btn_SaveChanges = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\UserProfile.xaml"
     this.btn_SaveChanges.Click += new System.Windows.RoutedEventHandler(this.btn_Save_changes_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.textBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.TxtEditUsername = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.textBlock1_Copy = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 17:
     this.TxtEditFirstName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 18:
     this.TxtEditLastName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.TxtEditAge = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.TxtEditEmail = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.textBlock7 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.BtnDeleteUser = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\UserProfile.xaml"
     this.BtnDeleteUser.Click += new System.Windows.RoutedEventHandler(this.BtnDeleteUser_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Пример #44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Pages\CommentObjectPage.xaml"
                ((TatarCulturaWpf.Pages.CommentObjectPage)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.PageIsVisibleChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.TBoxSearch = ((System.Windows.Controls.TextBox)(target));

            #line 24 "..\..\..\Pages\CommentObjectPage.xaml"
                this.TBoxSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TBoxSearchTextChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.CommentListDG = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.TextBlockCount = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 41 "..\..\..\Pages\CommentObjectPage.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSaveClick);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\..\Pages\CommentObjectPage.xaml"
                this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDeleteClick);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\..\Pages\CommentObjectPage.xaml"
                this.btnBack.Click += new System.Windows.RoutedEventHandler(this.btnBackClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #45
0
 public static void SetFontWeight(this System.Windows.Controls.TextBlock textBlock, int weight)
 {
     textBlock.FontWeight = FontWeight.FromOpenTypeWeight(weight);
 }
Пример #46
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._title = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 3:
                this._city = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this._region = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this._source_company = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 7:
                this._detect_item = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this._detect_method1 = ((System.Windows.Controls.CheckBox)(target));

            #line 57 "..\..\..\Manager\SysManualDataEntry.xaml"
                this._detect_method1.Checked += new System.Windows.RoutedEventHandler(this._detect_method1_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this._detect_method2 = ((System.Windows.Controls.CheckBox)(target));

            #line 58 "..\..\..\Manager\SysManualDataEntry.xaml"
                this._detect_method2.Checked += new System.Windows.RoutedEventHandler(this._detect_method1_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this._detect_method3 = ((System.Windows.Controls.CheckBox)(target));

            #line 59 "..\..\..\Manager\SysManualDataEntry.xaml"
                this._detect_method3.Checked += new System.Windows.RoutedEventHandler(this._detect_method1_Checked);

            #line default
            #line hidden
                return;

            case 11:
                this._detect_object = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this._detect_sample = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 14:
                this._detect_result = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 15:
                this._detect_site = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 17:
                this._entering_datetime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.txtMsg = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.btnSave = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\..\Manager\SysManualDataEntry.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\..\Manager\SysManualDataEntry.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.Clear_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #47
0
 public WpfLabel()
 {
     TextBlock = new SWC.TextBlock();
     Content   = TextBlock;
     Padding   = new Thickness(0);
 }
Пример #48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((PorjectDepartmentIT.MainWindow)(target)).Closed += new System.EventHandler(this.AppWindow_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.myDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.myDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.myDataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 9:
                this.tb_Colum5 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 11:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 13:
                this.add_btn = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.add_btn.Click += new System.Windows.RoutedEventHandler(this.add_btn_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 17:
                this.Open_btn = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.Open_btn.Click += new System.Windows.RoutedEventHandler(this.Open_btn_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.comboBox.DropDownClosed += new System.EventHandler(this.comboBox_DropDownClosed);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 25:
                this.user_Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 26:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.u_lbl_Colum1 = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.u_tb_Colum1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.u_lbl_Colum2 = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.u_tb_Colum2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.u_lbl_Colum3 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 33:
                this.lbl_attention_user = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 86 "..\..\MainWindow.xaml"
                this.u_add_btn.Click += new System.Windows.RoutedEventHandler(this.us_add_btn_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\MainWindow.xaml"
                this.u_reset_btn.Click += new System.Windows.RoutedEventHandler(this.us_Reset_btn_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.lbl_name_user = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.lbl_Welcome = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #49
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.lbl_3_3 = ((System.Windows.Controls.Label)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.lbl_3_3.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.lbl_2_3 = ((System.Windows.Controls.Label)(target));
     
     #line 42 "..\..\MainWindow.xaml"
     this.lbl_2_3.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.lbl_1_3 = ((System.Windows.Controls.Label)(target));
     
     #line 52 "..\..\MainWindow.xaml"
     this.lbl_1_3.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.lbl_1_2 = ((System.Windows.Controls.Label)(target));
     
     #line 62 "..\..\MainWindow.xaml"
     this.lbl_1_2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.lbl_2_2 = ((System.Windows.Controls.Label)(target));
     
     #line 72 "..\..\MainWindow.xaml"
     this.lbl_2_2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.lbl_3_2 = ((System.Windows.Controls.Label)(target));
     
     #line 82 "..\..\MainWindow.xaml"
     this.lbl_3_2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.lbl_1_1 = ((System.Windows.Controls.Label)(target));
     
     #line 92 "..\..\MainWindow.xaml"
     this.lbl_1_1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.lbl_2_1 = ((System.Windows.Controls.Label)(target));
     
     #line 102 "..\..\MainWindow.xaml"
     this.lbl_2_1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.lbl_3_1 = ((System.Windows.Controls.Label)(target));
     
     #line 112 "..\..\MainWindow.xaml"
     this.lbl_3_1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_Select_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btn_start_game = ((System.Windows.Controls.Button)(target));
     
     #line 122 "..\..\MainWindow.xaml"
     this.btn_start_game.Click += new System.Windows.RoutedEventHandler(this.btn_start_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.lbl_Player_1 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.lbl_Player_1_value = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.lbl_Player_2 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.lbl_ties = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.lbl_ties_value = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.lbl_Player_2_value = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.gb_statistics = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 18:
     this.gb_game_status = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 19:
     this.tb_player_wins = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GridMenu = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 2:
                this.TransitoningContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 3:
                this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\LibraryDashboard.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\LibraryDashboard.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ListViewMenu = ((System.Windows.Controls.ListView)(target));

            #line 36 "..\..\LibraryDashboard.xaml"
                this.ListViewMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewMenu_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 141 "..\..\LibraryDashboard.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.GridPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.sid = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.schoolid = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.administratorid = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.LoginModal = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 2:
                this.g1 = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 4:
                this._date = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this._user = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:

            #line 100 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.Thumb)(target)).DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta);

            #line default
            #line hidden
                return;

            case 7:
                this.min = ((System.Windows.Controls.Image)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.min.MouseEnter += new System.Windows.Input.MouseEventHandler(this.min_MouseEnter);

            #line default
            #line hidden

            #line 102 "..\..\MainWindow.xaml"
                this.min.MouseLeave += new System.Windows.Input.MouseEventHandler(this.all_MouseLeave);

            #line default
            #line hidden

            #line 102 "..\..\MainWindow.xaml"
                this.min.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.min_MouseDown);

            #line default
            #line hidden
                return;

            case 8:
                this.max = ((System.Windows.Controls.Image)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.max.MouseEnter += new System.Windows.Input.MouseEventHandler(this.max_MouseEnter);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.max.MouseLeave += new System.Windows.Input.MouseEventHandler(this.all_MouseLeave);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.max.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.max_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 104 "..\..\MainWindow.xaml"
                this.exit.MouseEnter += new System.Windows.Input.MouseEventHandler(this.exit_MouseEnter);

            #line default
            #line hidden

            #line 104 "..\..\MainWindow.xaml"
                this.exit.MouseLeave += new System.Windows.Input.MouseEventHandler(this.all_MouseLeave);

            #line default
            #line hidden

            #line 104 "..\..\MainWindow.xaml"
                this.exit.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.exit_MouseDown);

            #line default
            #line hidden
                return;

            case 10:
                this.grid_MainMenu = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this._logo = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this._title_dept = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this._title_1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this._title_2 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 16:
                this._image_0 = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this._text_0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this._grid_1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this._image_1 = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this._text_1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this._grid_2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this._image_2 = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this._text_2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this._grid_3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this._image_3 = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this._text_3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this._grid_4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 28:
                this._image_4 = ((System.Windows.Controls.Image)(target));
                return;

            case 29:
                this._text_4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this._grid_5 = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this._image_5 = ((System.Windows.Controls.Image)(target));
                return;

            case 32:
                this._text_5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this._grid_6 = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this._image_6 = ((System.Windows.Controls.Image)(target));
                return;

            case 35:
                this._text_6 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this._grid_7 = ((System.Windows.Controls.Grid)(target));
                return;

            case 37:
                this._image_7 = ((System.Windows.Controls.Image)(target));
                return;

            case 38:
                this._text_7 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this._grid_8 = ((System.Windows.Controls.Grid)(target));
                return;

            case 40:
                this._image_8 = ((System.Windows.Controls.Image)(target));
                return;

            case 41:
                this._text_8 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.grid_mainpage = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this.grid_Menu = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.grid_Component = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 46:
                this.grid_bottom = ((System.Windows.Controls.Grid)(target));
                return;

            case 47:
                this._bottom = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #52
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addFile_b = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.addFile_b.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

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

            case 3:
                this.status_tb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.removeFile_b.Click += new System.Windows.RoutedEventHandler(this.removeFile_b_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.path_tb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line 19 "..\..\MainWindow.xaml"
                this.convert_b.Click += new System.Windows.RoutedEventHandler(this.convert_b_Click);

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

            #line 9 "..\..\Courses.xaml"
                ((WpfApp1.Courses)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

            case 3:
                this.Txt_Select_Course_Hint = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 5:
                this.Stack_Select_Topic = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 36 "..\..\Courses.xaml"
                this.Cmbx_CourseTopics.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Cmbx_CourseTopics_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.Rect_Divider = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.Course_Image = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.Txt_CourseDesc = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.List_Courses = ((System.Windows.Controls.ListBox)(target));

            #line 62 "..\..\Courses.xaml"
                this.List_Courses.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.List_Courses_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.Course_Filter = ((System.Windows.Controls.TextBox)(target));

            #line 80 "..\..\Courses.xaml"
                this.Course_Filter.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Course_Filter_TextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FileExit_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.HelpAbout_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.connectButton = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

            case 5:
                this.textblockConnect = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.insertButton.Click += new System.Windows.RoutedEventHandler(this.InsertButton_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\MainWindow.xaml"
                this.deleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.listViewAccount = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #55
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 12 "..\..\..\..\Views\Invoice\Skuservice.xaml"
     ((Reyuko.App.Views.Invoice.Skuservice)(target)).Loaded += new System.Windows.RoutedEventHandler(this.load);
     
     #line default
     #line hidden
     return;
     case 2:
     this.info = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.txttotal = ((System.Windows.Controls.TextBox)(target));
     
     #line 60 "..\..\..\..\Views\Invoice\Skuservice.xaml"
     this.txttotal.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txttotal_TextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.srsku = ((System.Windows.Controls.AutoCompleteBox)(target));
     
     #line 67 "..\..\..\..\Views\Invoice\Skuservice.xaml"
     this.srsku.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.produk_selectedchange);
     
     #line default
     #line hidden
     return;
     case 5:
     this.txtprice = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.txtdiskon = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.txttax = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.txttotaltax = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txttotal1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.txtdiskon1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     
     #line 92 "..\..\..\..\Views\Invoice\Skuservice.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Addsku_Clicks);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 99 "..\..\..\..\Views\Invoice\Skuservice.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel_Clicks);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Пример #56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\MainWindow.xaml"
                ((Calculator.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.OnKeyDown);

            #line default
            #line hidden
                return;

            case 2:

            #line 46 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnCopyClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 47 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnPasteClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 49 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnHistoryClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 50 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSettingsClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 51 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnHelpClick);

            #line default
            #line hidden
                return;

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

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

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

            case 10:
                this.panelAuxComplex = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 11:
                this.textBoxComplexAux = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.gridComplexAuxParam = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.upDownComplexAuxParam = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

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

            #line 95 "..\..\..\MainWindow.xaml"
                this.buttonComplexPow.Click += new System.Windows.RoutedEventHandler(this.OnComplexPowClick);

            #line default
            #line hidden
                return;

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

            #line 100 "..\..\..\MainWindow.xaml"
                this.buttonComplexRoot.Click += new System.Windows.RoutedEventHandler(this.OnComplexRootClick);

            #line default
            #line hidden
                return;

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

            #line 105 "..\..\..\MainWindow.xaml"
                this.buttonComplexAbs.Click += new System.Windows.RoutedEventHandler(this.OnComplexMagnitudeClick);

            #line default
            #line hidden
                return;

            case 17:
                this.buttonComplexArgDeg = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\..\MainWindow.xaml"
                this.buttonComplexArgDeg.Click += new System.Windows.RoutedEventHandler(this.OnComplexArgDegClick);

            #line default
            #line hidden
                return;

            case 18:
                this.buttonComplexArgRad = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\..\MainWindow.xaml"
                this.buttonComplexArgRad.Click += new System.Windows.RoutedEventHandler(this.OnComplexArgRadClick);

            #line default
            #line hidden
                return;

            case 19:
                this.rowDefinitionDEF = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 20:
                this.rowDefinitionABC = ((System.Windows.Controls.RowDefinition)(target));
                return;

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

            case 22:
                this.gridPNumBase = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.upDownPNumBase = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 24:
                this.buttonMemClear = ((System.Windows.Controls.Button)(target));

            #line 147 "..\..\..\MainWindow.xaml"
                this.buttonMemClear.Click += new System.Windows.RoutedEventHandler(this.OnMemClearClick);

            #line default
            #line hidden
                return;

            case 25:
                this.buttonMemRead = ((System.Windows.Controls.Button)(target));

            #line 148 "..\..\..\MainWindow.xaml"
                this.buttonMemRead.Click += new System.Windows.RoutedEventHandler(this.OnMemReadClick);

            #line default
            #line hidden
                return;

            case 26:
                this.buttonMemAdd = ((System.Windows.Controls.Button)(target));

            #line 149 "..\..\..\MainWindow.xaml"
                this.buttonMemAdd.Click += new System.Windows.RoutedEventHandler(this.OnMemAddClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 151 "..\..\..\MainWindow.xaml"
                this.buttonClearAll.Click += new System.Windows.RoutedEventHandler(this.OnClearAllClick);

            #line default
            #line hidden
                return;

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

            #line 152 "..\..\..\MainWindow.xaml"
                this.buttonClearInput.Click += new System.Windows.RoutedEventHandler(this.OnClearInputClick);

            #line default
            #line hidden
                return;

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

            #line 153 "..\..\..\MainWindow.xaml"
                this.buttonBackspace.Click += new System.Windows.RoutedEventHandler(this.OnBackspaceClick);

            #line default
            #line hidden
                return;

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

            case 32:
                this.buttonInvert = ((System.Windows.Controls.Button)(target));
                return;

            case 33:
                this.buttonSquare = ((System.Windows.Controls.Button)(target));
                return;

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

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

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

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

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

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

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

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

            case 42:
                this.buttonAdd = ((System.Windows.Controls.Button)(target));
                return;

            case 43:
                this.button7 = ((System.Windows.Controls.Button)(target));
                return;

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

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

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

            case 47:
                this.button5 = ((System.Windows.Controls.Button)(target));
                return;

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

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

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

            case 51:
                this.button3 = ((System.Windows.Controls.Button)(target));
                return;

            case 52:
                this.buttonToggleSign = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\..\MainWindow.xaml"
                this.buttonToggleSign.Click += new System.Windows.RoutedEventHandler(this.OnToggleSignClick);

            #line default
            #line hidden
                return;

            case 53:
                this.buttonToggleSignRe = ((System.Windows.Controls.Button)(target));

            #line 176 "..\..\..\MainWindow.xaml"
                this.buttonToggleSignRe.Click += new System.Windows.RoutedEventHandler(this.OnToggleSignReClick);

            #line default
            #line hidden
                return;

            case 54:
                this.buttonToggleSignIm = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\..\MainWindow.xaml"
                this.buttonToggleSignIm.Click += new System.Windows.RoutedEventHandler(this.OnToggleSignImClick);

            #line default
            #line hidden
                return;

            case 55:
                this.button0 = ((System.Windows.Controls.Button)(target));
                return;

            case 56:
                this.buttonSlash = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\..\MainWindow.xaml"
                this.buttonSlash.Click += new System.Windows.RoutedEventHandler(this.OnFractionSlashClick);

            #line default
            #line hidden
                return;

            case 57:
                this.buttonPNumComma = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\..\MainWindow.xaml"
                this.buttonPNumComma.Click += new System.Windows.RoutedEventHandler(this.OnDecimalSeparatorClick);

            #line default
            #line hidden
                return;

            case 58:
                this.buttonComplexComma = ((System.Windows.Controls.Button)(target));

            #line 181 "..\..\..\MainWindow.xaml"
                this.buttonComplexComma.Click += new System.Windows.RoutedEventHandler(this.OnDecimalSeparatorClick);

            #line default
            #line hidden
                return;

            case 59:
                this.buttonComplexDelim = ((System.Windows.Controls.Button)(target));

            #line 182 "..\..\..\MainWindow.xaml"
                this.buttonComplexDelim.Click += new System.Windows.RoutedEventHandler(this.OnComplexImDelimClick);

            #line default
            #line hidden
                return;

            case 60:
                this.buttonEquals = ((System.Windows.Controls.Button)(target));

            #line 183 "..\..\..\MainWindow.xaml"
                this.buttonEquals.Click += new System.Windows.RoutedEventHandler(this.OnEqualsClick);

            #line default
            #line hidden
                return;

            case 61:
                this.textBlockMemIndicator = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Grid_Search = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            case 4:
                this.First_Name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.Results_Per_Page = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.First_Name_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.Event_Range_Start = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 8:
                this.Date_Range = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 43 "..\..\MemberSearchPage.xaml"
                this.Member_Search_BTN.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Event_Range_Start_Copy = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 11:
                this.Member_ID_Search = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.Event_ID_Search = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 14:
                this.Search_Bar_Copy1 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 49 "..\..\MemberSearchPage.xaml"
                this.Event_ID_Search_BTN.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 50 "..\..\MemberSearchPage.xaml"
                this.Member_ID_Search_BTN.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Date_Range_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.Member_Level1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.Alternate_Search = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.requestMethod = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.getMethod = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 3:
                this.postMethod = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 4:
                this.putMethod = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 5:
                this.deleteMethod = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

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

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

            #line 26 "..\..\MainWindow.xaml"
                this.sendButton.Click += new System.Windows.RoutedEventHandler(this.sendButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.requestOptionsTabControl = ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target));
                return;

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

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

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

            case 12:
                this.variableChoose = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 13:
                this.responseTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.messageFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 2:
                this.InputAll = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.InputAll.Click += new System.Windows.RoutedEventHandler(this.InputAll_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.AddKey = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.AddKey.Click += new System.Windows.RoutedEventHandler(this.AddKey_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\MainWindow.xaml"
                this.ModifyData.Click += new System.Windows.RoutedEventHandler(this.ModifyData_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.treeView = ((System.Windows.Controls.TreeView)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.treeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeView_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.DetailPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 64 "..\..\MainWindow.xaml"
                this.inputCurrent.Click += new System.Windows.RoutedEventHandler(this.inputCurrent_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.mapName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.mapImage = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.mapType = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.AddData_Click);

            #line default
            #line hidden
                return;

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

            #line 69 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.SaveData_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.toolBar = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 3:
                this.treeViewCountry = ((System.Windows.Controls.TreeView)(target));
                return;

            case 4:
                this.textBlockTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 8:
                this.textBlockEmail = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.textBoxEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 11:
                this.tabItem1 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 12:
                this.listView = ((System.Windows.Controls.ListView)(target));
                return;

            case 13:
                this.textBlockSummary = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBlockGender = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 17:
                this.textBlockMarital = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.comboBoxMaritalStatus = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.checkBoxChildren = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 20:
                this.textBoxCode = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

            case 25:
                this.textBlockAddress = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.textBox3_Copy = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.comboBoxState = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.comboBoxCountry = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 185 "..\..\MainWindow.xaml"
                this.buttonSave.Click += new System.Windows.RoutedEventHandler(this.buttonSave_Click);

            #line default
            #line hidden
                return;

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

            #line 194 "..\..\MainWindow.xaml"
                this.buttonDelete.Click += new System.Windows.RoutedEventHandler(this.buttonDelete_Click);

            #line default
            #line hidden
                return;

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

            #line 203 "..\..\MainWindow.xaml"
                this.buttonClose.Click += new System.Windows.RoutedEventHandler(this.buttonClose_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.buttonExit = ((System.Windows.Controls.Button)(target));

            #line 213 "..\..\MainWindow.xaml"
                this.buttonExit.Click += new System.Windows.RoutedEventHandler(this.buttonExit_Click);

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