void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.jointsComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

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

            case 5:
                this.chartX = ((Sparrow.Chart.SparrowChart)(target));
                return;

            case 6:
                this.chartY = ((Sparrow.Chart.SparrowChart)(target));
                return;

            case 7:
                this.chartZ = ((Sparrow.Chart.SparrowChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// Calculates the series info.
        /// </summary>
        /// <returns></returns>
        internal Point CalculateSeriesInfo()
        {
            double width        = 1 - SparrowChart.GetSeriesMarginPercentage(this);
            double mininumWidth = double.MaxValue;
            int    position     = Chart.HiLoOpenCloseSeries.IndexOf(this) + 1;
            int    count        = Chart.HiLoOpenCloseSeries.Count;

            foreach (SeriesBase series in Chart.Series)
            {
                List <double> values = series.XValues as List <double>;
                if (values != null)
                {
                    for (int i = 1; i < values.Count; i++)
                    {
                        double delta = values[i] - values[i - 1];
                        if (delta != 0)
                        {
                            mininumWidth = Math.Min(mininumWidth, delta);
                        }
                    }
                }
            }
            mininumWidth = ((mininumWidth == double.MaxValue || mininumWidth >= 1 || mininumWidth < 0) ? 1 : mininumWidth);
            double per   = mininumWidth * width / count;
            double start = per * (position - 1) - mininumWidth * width / 2;
            double end   = start + per;

            return(new Point(start, end));
            //}
        }
        /// <summary>
        /// Called when [is refresh changed].
        /// </summary>
        /// <param name="obj">The obj.</param>
        /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnIsRefreshChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            SparrowChart sender = obj as SparrowChart;

            if (sender != null)
            {
                sender.IsRefreshChanged(args);
            }
        }
Beispiel #4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneApp1;component/Page1.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.chart = ((Sparrow.Chart.SparrowChart)(this.FindName("chart")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ClimateInMyN1;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("myMap")));
     this.chart = ((Sparrow.Chart.SparrowChart)(this.FindName("chart")));
     this.chart2 = ((Sparrow.Chart.SparrowChart)(this.FindName("chart2")));
     this.chart3 = ((Sparrow.Chart.SparrowChart)(this.FindName("chart3")));
     this.chart4 = ((Sparrow.Chart.SparrowChart)(this.FindName("chart4")));
     this.chart5 = ((Sparrow.Chart.SparrowChart)(this.FindName("chart5")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Auction;component/BidPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pictureImage = ((System.Windows.Controls.Image)(this.FindName("pictureImage")));
     this.nameTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("nameTextBlock")));
     this.minimumBidTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("minimumBidTextBlock")));
     this.lastBidTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("lastBidTextBlock")));
     this.bidTextBox = ((System.Windows.Controls.TextBox)(this.FindName("bidTextBox")));
     this.bidButton = ((System.Windows.Controls.Button)(this.FindName("bidButton")));
     this.chart = ((Sparrow.Chart.SparrowChart)(this.FindName("chart")));
 }
Beispiel #7
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ClimateInMyN1;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap      = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("myMap")));
     this.chart      = ((Sparrow.Chart.SparrowChart)(this.FindName("chart")));
     this.chart2     = ((Sparrow.Chart.SparrowChart)(this.FindName("chart2")));
     this.chart3     = ((Sparrow.Chart.SparrowChart)(this.FindName("chart3")));
     this.chart4     = ((Sparrow.Chart.SparrowChart)(this.FindName("chart4")));
     this.chart5     = ((Sparrow.Chart.SparrowChart)(this.FindName("chart5")));
 }
Beispiel #8
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Databot;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel   = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.appName      = ((System.Windows.Controls.TextBlock)(this.FindName("appName")));
     this.imgWarn      = ((System.Windows.Controls.Image)(this.FindName("imgWarn")));
     this.imgMourn     = ((System.Windows.Controls.Image)(this.FindName("imgMourn")));
     this.imgWeep      = ((System.Windows.Controls.Image)(this.FindName("imgWeep")));
     this.imgScream    = ((System.Windows.Controls.Image)(this.FindName("imgScream")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.spchart      = ((Sparrow.Chart.SparrowChart)(this.FindName("spchart")));
     this.prButton     = ((System.Windows.Controls.Button)(this.FindName("prButton")));
     this.configButton = ((System.Windows.Controls.Button)(this.FindName("configButton")));
 }
Beispiel #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 18 "..\..\Gisto.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Buffer);

            #line default
            #line hidden
                return;

            case 2:

            #line 19 "..\..\Gisto.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_File);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\Gisto.xaml"
                this.enthropy.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Copy);

            #line default
            #line hidden
                return;

            case 4:
                this.chart = ((Sparrow.Chart.SparrowChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.jointsComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

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

            case 5:
                this.chartX = ((Sparrow.Chart.SparrowChart)(target));
                return;

            case 6:
                this.chartY = ((Sparrow.Chart.SparrowChart)(target));
                return;

            case 7:
                this.chartZ = ((Sparrow.Chart.SparrowChart)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 50 "..\..\MainWindow.xaml"
                this.csvExportButton.Click += new System.Windows.RoutedEventHandler(this.csvExportButton_Click);

            #line default
            #line hidden
                return;

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

            #line 51 "..\..\MainWindow.xaml"
                this.stopButton.Click += new System.Windows.RoutedEventHandler(this.stopButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Metex = ((wpfMetex.MainWindow)(target));
     return;
     case 2:
     this.btnSettings = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.btnSettings.Click += new System.Windows.RoutedEventHandler(this.btnSettings_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.gridWindow = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.gridContent = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.btnStart = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.txtbWerte = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.chart = ((Sparrow.Chart.SparrowChart)(target));
     return;
     case 8:
     this.Line = ((Sparrow.Chart.LineSeries)(target));
     return;
     case 9:
     this.gridSettings = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.rbtnEmpfangen = ((System.Windows.Controls.RadioButton)(target));
     
     #line 45 "..\..\MainWindow.xaml"
     this.rbtnEmpfangen.Unchecked += new System.Windows.RoutedEventHandler(this.rbtnEmpfangen_Unchecked);
     
     #line default
     #line hidden
     
     #line 45 "..\..\MainWindow.xaml"
     this.rbtnEmpfangen.Checked += new System.Windows.RoutedEventHandler(this.rbtnEmpfangen_Checked);
     
     #line default
     #line hidden
     return;
     case 11:
     this.rbtnUebertragen = ((System.Windows.Controls.RadioButton)(target));
     
     #line 46 "..\..\MainWindow.xaml"
     this.rbtnUebertragen.Checked += new System.Windows.RoutedEventHandler(this.rbtnUebertragen_Checked);
     
     #line default
     #line hidden
     
     #line 46 "..\..\MainWindow.xaml"
     this.rbtnUebertragen.Unchecked += new System.Windows.RoutedEventHandler(this.rbtnUebertragen_Unchecked);
     
     #line default
     #line hidden
     return;
     case 12:
     this.btnStarten = ((System.Windows.Controls.Button)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.btnStarten.Click += new System.Windows.RoutedEventHandler(this.btnStarten_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.txtbIP = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.cbxCSV = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 15:
     this.cbxPlotten = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 16:
     this.btnServerStart = ((System.Windows.Controls.Button)(target));
     
     #line 51 "..\..\MainWindow.xaml"
     this.btnServerStart.Click += new System.Windows.RoutedEventHandler(this.btnServerStart_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.btnSpeichern = ((System.Windows.Controls.Button)(target));
     return;
     case 18:
     this.txtbMessintervall = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.txtbMessdauer = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.lblMessintervall = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.lblMessdauer = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }