Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main2_0 = ((WpfApp1.Window1)(target));
                return;

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

            #line 10 "..\..\Window1.xaml"
                this.ViewAll.Click += new System.Windows.RoutedEventHandler(this.ViewAll_Click);

            #line default
            #line hidden
                return;

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

            #line 11 "..\..\Window1.xaml"
                this.Search.Click += new System.Windows.RoutedEventHandler(this.Search_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ViewPortfolio = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoginWindow = ((WpfApp1.Window1)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

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

            case 4:

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

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\LoginWindow.xaml"
                this.newAccButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

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

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

            #line 15 "..\..\Window1.xaml"
                this.zakoncz.Click += new System.Windows.RoutedEventHandler(this.Zakoncz_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 6:
                this.telefonWpisany = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.adresWpisany = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AM_ME = ((WpfApp1.Window1)(target));
                return;

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

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

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.parent = ((System.Windows.Controls.DockPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wyniki = ((WpfApp1.Window1)(target));
                return;

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

            #line 15 "..\..\Wyniki.xaml"
                this.zakoncz.Click += new System.Windows.RoutedEventHandler(this.ej_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.strona2 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #6
0
        private void postListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Window Window1 = new Window1();

            Window1.Show();
        }
Beispiel #7
0
        private void Rovaniemi_Click(object sender, RoutedEventArgs e)
        {
            Window1 sääTiedot1 = new Window1();

            sääTiedot1.Show();
        }
Beispiel #8
0
        //private void Click_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        //{
        //    Window2 win2 = new Window2();
        //    win2.Show();
        //}

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Window1 win2 = new Window1();

            win2.Show();
        }
Beispiel #9
0
        private void Button_1_Click(object sender, RoutedEventArgs e)
        {
            Xstl_content = File.ReadAllText(Path1);

            //Sprawdzanie czy jest wybrana opcja Klasy
            if (checkBox_1.IsChecked == true)
            {
                if (radioButton_1.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_1.Content.ToString();
                }
                else if (radioButton_2.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_2.Content.ToString();
                }
                else if (radioButton_3.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_3.Content.ToString();
                }
                else if (radioButton_4.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_4.Content.ToString();
                }
                else if (radioButton_5.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_5.Content.ToString();
                }
                else if (radioButton_6.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_6.Content.ToString();
                }
                else if (radioButton_7.IsChecked == true)
                {
                    NameOfTheClassWrittenByUser = "******"; Part_1_of_File_Name1 = radioButton_7.Content.ToString();
                }
                else
                {
                    Window1 window1 = new Window1("Wybierz klasę!");
                    window1.ShowDialog();
                    return;
                }
            }

            //Sprawdzanie czy jest wybrana opcja Nazwy
            if (checkBox_2.IsChecked == true)
            {
                if (Text_changed == true)
                {
                    NameOfTheTitleWrittenByUser = TextBox_1.Text;
                    Part_2_of_File_Name1        = TextBox_1.Text;
                }
                else
                {
                    Window1 window1 = new Window1("Wpisz nazwę!");
                    window1.ShowDialog();
                    return;
                }
            }

            //Ustawianie pliku do raportu
            //Tylko klasa
            if ((checkBox_1.IsChecked == true) && (checkBox_2.IsChecked == false))
            {
                string regex_class = @"Element[Class='" + NameOfTheClassWrittenByUser + "']";
                Xstl_content      = Regex.Replace(Xstl_content, "PetlaForEachDlaElementu", regex_class);
                Xstl_content      = Regex.Replace(Xstl_content, "LengthOfTheTitleWrittenByUser", "2");
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfPoczatek", "");
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfKoniec", "");
                Part_of_File_Name = Part_1_of_File_Name1;
            }
            //Tylko nazwa
            else if ((checkBox_1.IsChecked == false) && (checkBox_2.IsChecked == true))
            {
                Xstl_content = Regex.Replace(Xstl_content, "PetlaForEachDlaElementu", "Element");
                string regex_title_name_1 = "<xsl:if test=" + '"' + "$part_of_title='" + NameOfTheTitleWrittenByUser + "'" + '"' + ">";
                string regex_title_name_2 = "</xsl:if>";
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfPoczatek", regex_title_name_1);
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfKoniec", regex_title_name_2);
                Xstl_content      = Regex.Replace(Xstl_content, "LengthOfTheTitleWrittenByUser", (NameOfTheTitleWrittenByUser.Length + 1).ToString());
                Part_of_File_Name = Part_2_of_File_Name1;
            }
            //Klasa i nazwa
            else if ((checkBox_1.IsChecked == true) && (checkBox_2.IsChecked == true))
            {
                string regex_class = @"Element[Class='" + NameOfTheClassWrittenByUser + "']";
                Xstl_content = Regex.Replace(Xstl_content, "PetlaForEachDlaElementu", regex_class);
                string regex_title_name_1 = "<xsl:if test=" + '"' + "$part_of_title='" + NameOfTheTitleWrittenByUser + "'" + '"' + ">";
                string regex_title_name_2 = "</xsl:if>";
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfPoczatek", regex_title_name_1);
                Xstl_content      = Regex.Replace(Xstl_content, "WarunekIfKoniec", regex_title_name_2);
                Xstl_content      = Regex.Replace(Xstl_content, "LengthOfTheTitleWrittenByUser", (NameOfTheTitleWrittenByUser.Length + 1).ToString());
                Part_of_File_Name = Part_1_of_File_Name1 + "_" + Part_2_of_File_Name1;
            }
            //Brak zaznaczenia
            else if ((checkBox_1.IsChecked == false) && (checkBox_2.IsChecked == false))
            {
                Window1 window1 = new Window1("Zaznacz jedną z opcji!");
                window1.ShowDialog();
                return;
            }
            File.WriteAllText(Path2, Xstl_content);
            Correct = true;
            this.Close();
        }
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Window1 window1 = new Window1();

            window1.Show();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingWindow = ((WpfApp1.Window1)(target));

            #line 9 "..\..\Window1.xaml"
                this.SettingWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.SettingWindow_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.SetSandBox = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            #line 30 "..\..\Window1.xaml"
                this.Btn_setSandBoxParameters.Click += new System.Windows.RoutedEventHandler(this.Btn_setGravity_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 45 "..\..\Window1.xaml"
                this.BallInfo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.BallInfo_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 11:
                this.BTN_UpdatBallPara = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\Window1.xaml"
                this.BTN_UpdatBallPara.Click += new System.Windows.RoutedEventHandler(this.BTN_UpdatBallPara_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            case 16:
                this.BallTemp = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

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

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

            #line 61 "..\..\Window1.xaml"
                this.BtnAddBall.Click += new System.Windows.RoutedEventHandler(this.BtnAddBall_Click);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\Window1.xaml"
                this.RemoveThisBall.Click += new System.Windows.RoutedEventHandler(this.RemoveThisBall_Click);

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\Window1.xaml"
                this.BtnRest.Click += new System.Windows.RoutedEventHandler(this.BtnRest_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.CKBOXErrorControlled = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            #line 65 "..\..\Window1.xaml"
                this.BTN_SaveToFile.Click += new System.Windows.RoutedEventHandler(this.BTN_SaveToFile_Click);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\Window1.xaml"
                this.BTN_LoadFromFile.Click += new System.Windows.RoutedEventHandler(this.BTN_LoadFromFile_Click);

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