Exemplo n.º 1
0
        /// <summary>
        /// 値の変更時に呼ばれます。
        /// </summary>
        private static void OnRCrecValueChanged(DependencyObject d,
                                                DependencyPropertyChangedEventArgs e)
        {
            RCrecView control = (RCrecView)d;

            control.RCrecVal.Content = Math.Round((double)Math.Min(Math.Max((double)e.NewValue, control.rcmin), control.rcmax),
                                                  0,
                                                  MidpointRounding.AwayFromZero).ToString();
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main_Window = ((XMonitor_GUI.MainWindow)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.Main_Window.Closing += new System.ComponentModel.CancelEventHandler(this.MainWindowCosing);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.Main_Window.SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.Main_Window.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.MainMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

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

            case 4:
                this.BaseWidth = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 5:
                this.BaseColumn = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 6:
                this.BaseRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 7:
                this.BaseHeight = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 8:
                this.LeftsideArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 9:
                this.TopArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 10:
                this.RightsideArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.TimerName = ((ControlsUnit.TimerView)(target));
                return;

            case 12:
                this.BatteryName = ((ControlsUnit.BatteryView)(target));
                return;

            case 13:
                this.GPSName = ((ControlsUnit.GPSView)(target));
                return;

            case 14:
                this.LinkName = ((ControlsUnit.LinkView)(target));
                return;

            case 15:
                this.RCrecName = ((ControlsUnit.RCrecView)(target));
                return;

            case 16:
                this.ControlModeName = ((ControlsUnit.ControlModeView)(target));
                return;

            case 17:
                this.FlightModeName = ((ControlsUnit.FlightModeView)(target));
                return;

            case 18:
                this.SpeedName = ((ControlsUnit.SpeedView)(target));
                return;

            case 19:
                this.Altitude = ((ControlsUnit.UAVAltitude)(target));
                return;

            case 20:
                this.OpenFlightPlan = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

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

            #line 113 "..\..\MainWindow.xaml"
                this.CloseFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaClose);

            #line default
            #line hidden
                return;

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

            #line 114 "..\..\MainWindow.xaml"
                this.SendFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaTrans);

            #line default
            #line hidden
                return;

            case 23:
                this.ListFlightPlan = ((System.Windows.Controls.MenuItem)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.ListFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaData);

            #line default
            #line hidden
                return;

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

            #line 117 "..\..\MainWindow.xaml"
                this.OpenFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogOpen);

            #line default
            #line hidden
                return;

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

            #line 118 "..\..\MainWindow.xaml"
                this.CloseFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogClose);

            #line default
            #line hidden
                return;

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

            #line 119 "..\..\MainWindow.xaml"
                this.SaveFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogSave);

            #line default
            #line hidden
                return;

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

            #line 120 "..\..\MainWindow.xaml"
                this.OpenExplorer.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_OpenExplorer);

            #line default
            #line hidden
                return;

            case 28:

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

            #line default
            #line hidden
                return;

            case 29:

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

            #line default
            #line hidden
                return;

            case 30:

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

            #line default
            #line hidden
                return;

            case 31:

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

            #line default
            #line hidden
                return;

            case 32:

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

            #line default
            #line hidden
                return;

            case 33:
                this.MarkerIcon = ((System.Windows.Controls.Canvas)(target));

            #line 134 "..\..\MainWindow.xaml"
                this.MarkerIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MarkerIcon_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 34:
                this.TouchIcon = ((System.Windows.Controls.Canvas)(target));

            #line 139 "..\..\MainWindow.xaml"
                this.TouchIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TouchIconMouse);

            #line default
            #line hidden
                return;

            case 35:
                this.SettingIcon = ((System.Windows.Controls.Canvas)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.SettingIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.SettingIconMouseLeftButton);

            #line default
            #line hidden
                return;

            case 36:
                this.GridLine = ((System.Windows.Controls.Border)(target));
                return;

            case 37:
                this.canvas = ((System.Windows.Controls.Canvas)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.canvas.Loaded += new System.Windows.RoutedEventHandler(this.canvas_Loaded);

            #line default
            #line hidden

            #line 153 "..\..\MainWindow.xaml"
                this.canvas.SizeChanged += new System.Windows.SizeChangedEventHandler(this.canvas_SizeChanged);

            #line default
            #line hidden
                return;

            case 38:
                this.Arrow = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 40:
                this.Dis1 = ((System.Windows.Shapes.Line)(target));
                return;

            case 41:
                this.Dis2 = ((System.Windows.Shapes.Line)(target));
                return;

            case 42:
                this.Dis3 = ((System.Windows.Shapes.Line)(target));
                return;

            case 43:
                this.DisName = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.User1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 46:
                this.User3 = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.User4 = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.PosSet = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 186 "..\..\MainWindow.xaml"
                this.PosSpd.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.PosSpd_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 50:
                this.PosClear = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.MapRotate = ((ControlsUnit.RotateAzimuthal)(target));

            #line 188 "..\..\MainWindow.xaml"
                this.MapRotate.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.RotateAzimuthalValueChanged);

            #line default
            #line hidden

            #line 188 "..\..\MainWindow.xaml"
                this.MapRotate.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MapRotate_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 52:
                this.Container = ((WPF.MDI.MdiContainer)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.Container.SizeChanged += new System.Windows.SizeChangedEventHandler(this.OptionAreaSizeChanged);

            #line default
            #line hidden
                return;

            case 53:
                this.cm = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 54:

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

            #line default
            #line hidden
                return;

            case 55:

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

            #line default
            #line hidden
                return;

            case 56:

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

            #line default
            #line hidden
                return;

            case 57:

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

            #line default
            #line hidden
                return;

            case 58:

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

            #line default
            #line hidden
                return;

            case 59:

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

            #line default
            #line hidden
                return;

            case 60:

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

            #line default
            #line hidden
                return;

            case 61:

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

            #line default
            #line hidden
                return;

            case 62:
                this.OptionGridSplitter = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 63:
                this.ZoomName = ((ControlsUnit.MapZoom)(target));

            #line 221 "..\..\MainWindow.xaml"
                this.ZoomName.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MapZoomChanged);

            #line default
            #line hidden
                return;

            case 64:
                this.AlertMessageName = ((ControlsUnit.AlarmMessage)(target));
                return;

            case 65:
                this.PlayerSlide = ((ControlsUnit.TrimmingSlide)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.PlayerSlide.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.PlayerSlide_ValueChanged);

            #line default
            #line hidden
                return;

            case 66:
                this.test = ((System.Windows.Controls.TextBox)(target));
                return;

            case 67:
                this.TransmitWindow = ((System.Windows.Controls.Grid)(target));
                return;

            case 68:

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

            #line default
            #line hidden
                return;

            case 69:
                this.TransmitBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 70:

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

            #line default
            #line hidden
                return;

            case 71:

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

            #line default
            #line hidden
                return;

            case 72:
                this.WaitWindow = ((System.Windows.Controls.Label)(target));
                return;

            case 73:
                this.TopCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 74:
                this.VersionName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:

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

            #line default
            #line hidden
                return;

            case 76:

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

            #line default
            #line hidden
                return;

            case 77:

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

            #line default
            #line hidden
                return;

            case 78:

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

            #line default
            #line hidden
                return;

            case 79:
                this.me1 = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 80:
                this.me2 = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 81:
                this.SendSound = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }