Ejemplo n.º 1
0
        private void StatisticsClick(object sender, RoutedEventArgs e)
        {
            StatisticsWindow window = StatisticsWindow.GetInstance();

            window.Owner = this;
            window.Show();
            window.Activate();
        }
Ejemplo n.º 2
0
 public static StatisticsWindow GetInstance()
 {
     if (_instance == null)
     {
         return(_instance = new StatisticsWindow());
     }
     else
     {
         return(_instance);
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Time_Owner.StatisticsWindow)(target));
                return;

            case 2:
                this.head = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.PART_TITLEBAR = ((System.Windows.Controls.Border)(target));

            #line 23 "..\..\StatisticsWindow.xaml"
                this.PART_TITLEBAR.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.moveRectangle_PreviewMouseDown);

            #line default
            #line hidden
                return;

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

            case 5:
                this.calendar = ((Time_Owner.MonthCalendar)(target));
                return;

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

            case 7:

            #line 28 "..\..\StatisticsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnRecalculate);

            #line default
            #line hidden
                return;

            case 8:
                this.listBoxTotalTime = ((System.Windows.Controls.ListBox)(target));
                return;

            case 9:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
 public new void Close()
 {
     _instance = null;
     base.Close();
 }