Beispiel #1
0
 public void Copy(Schedule schedule)
 {
     Monday.Copy(schedule.Monday);
     Tuesday.Copy(schedule.Tuesday);
     Wednesday.Copy(schedule.Wednesday);
     Thursday.Copy(schedule.Thursday);
     Friday.Copy(schedule.Friday);
 }
Beispiel #2
0
        /// <summary>
        /// Compares the current instance with another object of the same type and returns an integer that
        /// indicates whether the current instance precedes, follows, or occurs in the same position in the
        /// sort order as the other object.
        /// </summary>
        /// <param name="other">The object to compare with this instance.</param>
        /// <returns>A value that indicates the relative order of the objects being compared.</returns>
        public int CompareTo(TimeSlotRow other)
        {
            if (other == null)
            {
                return(1);
            }

            var hourComparison = Hour.CompareTo(other.Hour);

            if (hourComparison != 0)
            {
                return(hourComparison);
            }

            var mondayComparison = Monday.CompareTo(other.Monday);

            if (mondayComparison != 0)
            {
                return(mondayComparison);
            }

            var tuesdayComparison = Tuesday.CompareTo(other.Tuesday);

            if (tuesdayComparison != 0)
            {
                return(tuesdayComparison);
            }

            var wednesdayComparison = Wednesday.CompareTo(other.Wednesday);

            if (wednesdayComparison != 0)
            {
                return(wednesdayComparison);
            }

            var thursdayComparison = Thursday.CompareTo(other.Thursday);

            if (thursdayComparison != 0)
            {
                return(thursdayComparison);
            }

            var fridayComparison = Friday.CompareTo(other.Friday);

            if (fridayComparison != 0)
            {
                return(fridayComparison);
            }

            var saturdayComparison = Saturday.CompareTo(other.Saturday);

            if (saturdayComparison != 0)
            {
                return(saturdayComparison);
            }

            return(Sunday.CompareTo(other.Sunday));
        }
 private void ClearEventArrays()
 {
     Monday.Clear();
     Tuesday.Clear();
     Wednesday.Clear();
     Thursday.Clear();
     Friday.Clear();
     Saturday.Clear();
     Sunday.Clear();
 }
Beispiel #4
0
        static public double Average(Tuesday tuesday, int j)
        {
            double s = 0;

            for (int i = 0; i < 3; i++)
            {
                s += tuesday[i, j];
            }
            return(s / 3);
        }
Beispiel #5
0
 private void ClearLists()
 {
     Monday.Clear();
     Tuesday.Clear();
     Wednesday.Clear();
     Thursday.Clear();
     Friday.Clear();
     Saturday.Clear();
     Sunday.Clear();
 }
        internal void AddShareSkill()
        {
            ExcelLib.PopulateInCollection(Base.ExcelPath, "ManageListings");

            GlobalDefinitions.WaitForElement(ShareSkillButton, 30);
            ShareSkillButton.Click();

            GlobalDefinitions.WaitForElement(Title, 30);
            Title.SendKeys(ExcelLib.ReadData(2, "Title"));

            Description.SendKeys(ExcelLib.ReadData(2, "Description"));

            Category(CategoryDropDown, ExcelLib.ReadData(2, "Category"));

            SubCategory(SubCategoryDropDown, ExcelLib.ReadData(2, "Sub Category"));

            Tags.SendKeys(ExcelLib.ReadData(2, "Tags"));
            Tags.SendKeys(Keys.Enter);

            OneOff.Click();

            OnLine.Click();

            StartDateDropDown.SendKeys(ExcelLib.ReadData(2, "Start Date"));

            EndDateDropDown.SendKeys(ExcelLib.ReadData(2, "End Date"));

            Sunday.Click();
            SundayStartTime.SendKeys(ExcelLib.ReadData(2, "Sunday Start Time"));
            SundayEndTime.SendKeys(ExcelLib.ReadData(2, "Sunday End Time"));

            Monday.Click();
            MondayStartTime.SendKeys(ExcelLib.ReadData(2, "Monday Start Time"));
            MondayEndTime.SendKeys(ExcelLib.ReadData(2, "Monday End Time"));

            Tuesday.Click();
            TuesdayStartTime.SendKeys(ExcelLib.ReadData(2, "Monday Start Time"));
            TuesdayEndTime.SendKeys(ExcelLib.ReadData(2, "Monday End Time"));

            CreditOption.Click();

            if (SkillExchangeOption.Selected)
            {
                SkillExchange.SendKeys(ExcelLib.ReadData(2, "Skill Exchange"));
            }
            else
            {
                CreditAmount.SendKeys(ExcelLib.ReadData(2, "Credit"));
            }

            Hidden.Click();

            Save.Click();
        }
        protected void UpdateListViewHeader()
        {
            CultureInfo ivCEn  = new CultureInfo("en-US");
            Label       lblMon = this.lvStage.Controls[0].FindControl("lblMon") as Label;

            if (lblMon != null)
            {
                lblMon.Text = Monday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblTue = this.lvStage.Controls[0].FindControl("lblTue") as Label;

            if (lblTue != null)
            {
                lblTue.Text = Tuesday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblWed = this.lvStage.Controls[0].FindControl("lblWed") as Label;

            if (lblWed != null)
            {
                lblWed.Text = Wednesday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblThu = this.lvStage.Controls[0].FindControl("lblThu") as Label;

            if (lblThu != null)
            {
                lblThu.Text = Thursday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblFri = this.lvStage.Controls[0].FindControl("lblFri") as Label;

            if (lblFri != null)
            {
                lblFri.Text = Friday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblSat = this.lvStage.Controls[0].FindControl("lblSat") as Label;

            if (lblSat != null)
            {
                lblSat.Text = Saturday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }

            Label lblSun = this.lvStage.Controls[0].FindControl("lblSun") as Label;

            if (lblSun != null)
            {
                lblSun.Text = Sunday.ToString("ddd </br> dd-MMM-yy", ivCEn);
            }
        }
        private void FetchTasks()
        {
            Monday.Clear();
            Tuesday.Clear();
            Wednesday.Clear();
            Thursday.Clear();
            Friday.Clear();
            Saturday.Clear();
            Sunday.Clear();
            List <DailyTask> Models = db.DailyTasks
                                      .Where(p => p.UserId == User.Id)
                                      .ToList <DailyTask>();

            foreach (var m in Models)
            {
                if (m.Date.HasValue)
                {
                    Debug.WriteLine("Has value!");
                    if (m.Date.Value.Date == (WeekDates[0].Date))
                    {
                        Monday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[1].Date))
                    {
                        Tuesday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[2].Date))
                    {
                        Wednesday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[3].Date))
                    {
                        Thursday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[4].Date))
                    {
                        Friday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[5].Date))
                    {
                        Saturday.Add(m);
                    }
                    else if (m.Date.Value.Date == (WeekDates[6].Date))
                    {
                        Sunday.Add(m);
                    }
                }
            }
        }
        public void AddTuesday(Staff s)
        {
            Tuesday t = new Tuesday();

            t.staffId = s.staffId;
            try
            {
                cntx.Tuesday.Add(t);
                cntx.SaveChanges();
            }
            catch (Exception)
            {
                throw new ArgumentException("Error in addming " + s.initials + " to Tuesday schedule.");
            }
        }
        public void Refresh(DayOfWeek?day = null)
        {
            switch (day)
            {
            case DayOfWeek.Monday:
                Monday.InvalidateSurface();
                break;

            case DayOfWeek.Tuesday:
                Tuesday.InvalidateSurface();
                break;

            case DayOfWeek.Wednesday:
                Wednesday.InvalidateSurface();
                break;

            case DayOfWeek.Thursday:
                Thursday.InvalidateSurface();
                break;

            case DayOfWeek.Friday:
                Friday.InvalidateSurface();
                break;

            case DayOfWeek.Saturday:
                Friday.InvalidateSurface();
                break;

            case DayOfWeek.Sunday:
                Friday.InvalidateSurface();
                break;

            default:
                Monday.InvalidateSurface();
                Tuesday.InvalidateSurface();
                Wednesday.InvalidateSurface();
                Thursday.InvalidateSurface();
                Friday.InvalidateSurface();
                Saturday.InvalidateSurface();
                Sunday.InvalidateSurface();
                break;
            }
        }
        public void SortEvents()
        {
            ClearEventArrays();

            foreach (Event e in TimetableEvents)
            {
                switch (e.Day)
                {
                case 1:
                    Monday.Add(e);
                    break;

                case 2:
                    Tuesday.Add(e);
                    break;

                case 3:
                    Wednesday.Add(e);
                    break;

                case 4:
                    Thursday.Add(e);
                    break;

                case 5:
                    Friday.Add(e);
                    break;

                case 6:
                    Saturday.Add(e);
                    break;

                case 7:
                    Sunday.Add(e);
                    break;
                }
            }
        }
Beispiel #12
0
        public void CopyData(AAS.DB.Course other)
        {
            CRN           = other.CRN;
            Subject       = other.Subject;
            Credits       = other.Credits;
            Title         = other.Title;
            CourseNumber  = other.CourseNumber;
            SectionNumber = other.SectionNumber;

            foreach (AAS.DB.Period p in other.Periods)
            {
                if (p.DayOfWeek.ToUpper() == "M")
                {
                    Monday.Add(new Period(p));
                }
                if (p.DayOfWeek.ToUpper() == "T")
                {
                    Tuesday.Add(new Period(p));
                }
                if (p.DayOfWeek.ToUpper() == "W")
                {
                    Wednesday.Add(new Period(p));
                }
                if (p.DayOfWeek.ToUpper() == "R")
                {
                    Thursday.Add(new Period(p));
                }
                if (p.DayOfWeek.ToUpper() == "F")
                {
                    Friday.Add(new Period(p));
                }
            }

            foreach (AAS.DB.Exam e in other.Exams)
            {
                Exams.Add(new Exam(e));
            }
        }
Beispiel #13
0
        public static Weekday Create(string name, IEnumerable <Item> items)
        {
            Weekday day = null;

            switch (name)
            {
            case "Monday": day = new Monday(); break;

            case "Tuesday": day = new Tuesday(); break;

            case "Wednesday": day = new Wednesday(); break;

            case "Thursday": day = new Thursday(); break;

            case "Friday": day = new Friday(); break;

            default:
                throw new NotSupportedException($"Unsupported weekday '{name}'!");
            }

            day.Items = items;
            return(day);
        }
Beispiel #14
0
        internal void EnterShareSkill()

        {//GlobalDefinitions.WaitForElement(driver, By.,20)
            GlobalDefinitions.wait(10);
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ShareSkill");
            //clcik on Shareskill button
            ShareSkillButton.Click();
            //Click on Title text box
            Title.SendKeys(ExcelLib.ReadData(2, "Title"));
            //Enter Description in Title
            Description.SendKeys(ExcelLib.ReadData(2, "Description"));
            //CLick on dropdown
            CategoryDropDown.Click();
            //Thread.Sleep(5000);
            //Selecting option from Categorydropdown
            SelectElement oselect = new SelectElement(SelectSubDropdown);

            oselect.SelectByText(ExcelLib.ReadData(2, "Category"));

            //Click on SubCategory
            SubCategoryDropDown.Click();

            //Selecting option from SubCategorydropdown
            SelectElement subCategory = new SelectElement(SelectDropdown);

            subCategory.SelectByValue(ExcelLib.ReadData(2, "SubCategory"));

            //Enter Tags
            Tags.SendKeys(ExcelLib.ReadData(2, "Tags"));
            Tags.SendKeys(Keys.Enter);
            //Select Service Type(Radio buttons)
            switch (ExcelLib.ReadData(2, "ServiceType"))
            {
            case "One-off service":
                OneOffType.Click();
                break;

            case "Hourly basis service":
                HourlyType.Click();
                break;
            }
            //Select Location Type (Radio buttons)
            switch (ExcelLib.ReadData(2, "LocationType"))
            {
            case "On-site":
                OnSiteLocationTypeOption.Click();
                break;

            case "Online":
                OnlineLocationTypeOption.Click();
                break;
            }

            GlobalDefinitions.WaitForElement(driver, By.XPath("//div[3]/div[2]/input[1]"), 10);

            //Select Start Date
            StartDateDropDown.Click();
            Thread.Sleep(5000);
            StartDateDropDown.SendKeys(ExcelLib.ReadData(2, "Startdate"));

            GlobalDefinitions.WaitForElement(driver, By.Name("endDate"), 10);
            //Select End Date
            EndDateDropDown.Click();
            EndDateDropDown.SendKeys(ExcelLib.ReadData(2, "Enddate"));

            //DayAvailability
            switch (ExcelLib.ReadData(2, "Selectday"))
            {
            case "Sun":
                Sunday.Click();
                SundayTime.SendKeys(ExcelLib.ReadData(2, "Starttime"));
                SundayEndTime.SendKeys(ExcelLib.ReadData(2, "Endtime"));
                break;

            case "Mon":
                Monday.Click();
                MondayTime.SendKeys(ExcelLib.ReadData(2, "Starttime"));
                MondayEndTime.SendKeys(ExcelLib.ReadData(2, "Endtime"));
                break;

            case "Tue":
                Tuesday.Click();
                TuesdayTime.SendKeys(ExcelLib.ReadData(2, "Starttime"));
                TuesdayEndTime.SendKeys(ExcelLib.ReadData(2, "Endtime"));
                break;

            case "Wed":
                Wednesday.Click();
                WednesdayTime.SendKeys(ExcelLib.ReadData(2, "Starttime"));
                WednesdayEndTime.SendKeys(ExcelLib.ReadData(2, "Endtime"));
                break;

            case "Thu":
                Thursday.Click();
                ThursdayTime.SendKeys(ExcelLib.ReadData(2, "Starttime"));
                //MondayEndTime.SendKeys(ExcelLib.ReadData(2, "Endtime"));
                break;
            }
            //Select Skill Trade Radio buttons)
            switch (ExcelLib.ReadData(2, "SkillTrade"))
            {
            case "Skill-exchange":
                FirstSkillTradeOption.Click();
                break;

            case "Credit":
                SecondkillTradeOption.Click();
                break;
            }
            //Enter Skill-Exchange
            SkillExchange.SendKeys(ExcelLib.ReadData(2, "Skill-Exchange"));
            SkillExchange.SendKeys(Keys.Enter);
            //Enter WorkSample
            //FileUpload.SendKeys(@"C:\Users\minty\OneDrive\Pictures\FIle1.txt");
            GlobalDefinitions.WaitForElement(driver, By.XPath("//i[@Class = 'huge plus circle icon padding-25']"), 10);
            FileUpload.Click();
            AutoItX3 autoIt = new AutoItX3();

            autoIt.WinActivate("Open");
            Thread.Sleep(5000);
            autoIt.Send(@"C:\Users\minty\OneDrive\Pictures\Camera Roll\Garry.jpeg");
            Thread.Sleep(5000);
            autoIt.Send("{ENTER}");
            //Thread.Sleep(5000);
            ////WorkSample.Click();


            //Select ACtive/Hidden Options ( Radio Buttons)
            switch (ExcelLib.ReadData(2, "Active"))
            {
            case "Active":
                ActiveOption.Click();
                break;

            case "Hidden":
                HiddenOption.Click();
                break;
            }

            //Click on Save
            Save.Click();
            // Assert.IsTrue("Service Listing Saved Successfully".Exist, "OK");
        }
        protected void lvStage_ItemDataBound(object sender, ListViewItemEventArgs e)
        {
            if (lvStage.EditIndex >= 0)
            {
                ListViewDataItem dataItem = (ListViewDataItem)e.Item;
                if (dataItem.DisplayIndex == lvStage.EditIndex)
                {
                    DropDownList ddl = (DropDownList)e.Item.FindControl("ddlPrjTaskEdit"); if (ddl != null)
                    {
                        string lsPrjCode = ((Label)e.Item.FindControl("lblPrjCodeEdit")).Text;
                        string lsSAPB1DB = ((Label)e.Item.FindControl("lblSAPB1DBEdit")).Text;
                        ddl.DataSource = dsPrjList.Tables[0];
                        ddl.DataTextField = "PrjName";
                        ddl.DataValueField = "PrjCode";
                        ddl.DataBind();
                        if (!lsPrjCode.Equals("") && !lsSAPB1DB.Equals(""))
                            ddl.SelectedValue = lsPrjCode + ";" + lsSAPB1DB;
                    }

                    DropDownList ddlPhase = (DropDownList)e.Item.FindControl("ddlPhaseEdit"); if (ddlPhase != null)
                    {
                        if (ddlPhase.Items.FindByValue(msPhase) != null)
                        {
                            ddlPhase.Items.FindByValue(msPhase).Selected = true;
                            msPhase = string.Empty;
                        }
                        else
                            ddlPhase.SelectedIndex = 0;
                    }

                    TextBox txtMon = (TextBox)e.Item.FindControl("txtMonEdit");
                    TextBox txtTue = (TextBox)e.Item.FindControl("txtTueEdit");
                    TextBox txtWed = (TextBox)e.Item.FindControl("txtWedEdit");
                    TextBox txtThu = (TextBox)e.Item.FindControl("txtThuEdit");
                    TextBox txtFri = (TextBox)e.Item.FindControl("txtFriEdit");
                    TextBox txtSat = (TextBox)e.Item.FindControl("txtSatEdit");
                    TextBox txtSun = (TextBox)e.Item.FindControl("txtSunEdit");
                    TextBox txtSrvType = (TextBox)e.Item.FindControl("txtSrvTypeEdit");
                    TextBox txtTimeEndDate = (TextBox)e.Item.FindControl("txtTimeEndDateEdit");

                    txtMon.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtMon.ClientID + "', '" + txtSrvType.Text + "', '" + Monday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtTue.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtTue.ClientID + "', '" + txtSrvType.Text + "', '" + Tuesday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtWed.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtWed.ClientID + "', '" + txtSrvType.Text + "', '" + Wednesday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtThu.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtThu.ClientID + "', '" + txtSrvType.Text + "', '" + Thursday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtFri.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtFri.ClientID + "', '" + txtSrvType.Text + "', '" + Friday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtSat.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtSat.ClientID + "', '" + txtSrvType.Text + "', '" + Saturday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                    txtSun.Attributes.Add("onKeyUp", "txtOnKeyPress( '" + txtSun.ClientID + "', '" + txtSrvType.Text + "', '" + Sunday.ToString("yyyyMMdd") + "', '" + txtTimeEndDate.Text + "' )");
                }
                //mbVisible = true;
                System.Web.UI.HtmlControls.HtmlTableCell td = (System.Web.UI.HtmlControls.HtmlTableCell)e.Item.FindControl("tdButtons");
                if (td != null) td.Visible = true;
            }
            else
            {
                if (e.Item.ItemType == ListViewItemType.DataItem)
                {
                    System.Web.UI.HtmlControls.HtmlTableCell td = (System.Web.UI.HtmlControls.HtmlTableCell)e.Item.FindControl("tdButtons");
                    if (td != null) td.Visible = btnAddRecord.Enabled;
                    
                }
            }
        }
Beispiel #16
0
        private async void DialogHost_DialogClosing(object sender, MaterialDesignThemes.Wpf.DialogClosingEventArgs eventArgs)
        {
            if (!Equals(eventArgs.Parameter, true))
            {
                return;
            }
            if (TaskTitle.Text != null && TaskDescription.Text != null && DialogTime.Text != null)
            {
                switch (DialogDays.Text)
                {
                case "Monday":
                    Monday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(MondayTitle));

                    break;

                case "Tuesday":
                    Tuesday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(TuesdayTitle));

                    break;

                case "Wednesday":
                    Wednesday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(WednesdayTitle));

                    break;

                case "Thursday":
                    Thursday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(ThursdayTitle));

                    break;

                case "Friday":
                    Friday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(FridayTitle));

                    break;

                case "Saturday":
                    Saturday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(SaturdayTitle));

                    break;

                case "Sunday":
                    Sunday.Add(new ListViewStruct
                    {
                        Title       = TaskTitle.Text,
                        Description = TaskDescription.Text,
                        Time        = DialogTime.Text,
                    });
                    await AddToDatabase(Convert.ToDateTime(SundayTitle));

                    break;
                }
            }
        }
Beispiel #17
0
        public void Print()
        {
            Console.WriteLine("Введiть кiлькiсть студентiв: ");
            string input0 = Console.ReadLine();
            int    n      = is_number(input0);

            Temperature temperature = new Temperature(n);
            Monday      monday      = new Monday(3, n);
            Tuesday     tuesday     = new Tuesday(3, n);
            Wednesday   wednesday   = new Wednesday(3, n);
            Thursday    thursday    = new Thursday(3, n);
            Friday      friday      = new Friday(3, n);

            for (int i = 0; i < n; i++)
            {
                Console.WriteLine("\nДні " + (i + 1) + " : ");
                temperature[i] = Console.ReadLine();
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine("Введiть " + (j + 1) + " Понеділок: ");
                    string input = Console.ReadLine();
                    tuesday[j, i] = is_number(input);
                }
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine("Введiть " + (j + 1) + " Вівторок: ");
                    string input = Console.ReadLine();
                    tuesday[j, i] = is_number(input);
                }
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine("Введiть " + (j + 1) + " Середа: ");
                    string input = Console.ReadLine();
                    wednesday[j, i] = is_number(input);
                }
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine("Введiть " + (j + 1) + " Четвер: ");
                    string input = Console.ReadLine();
                    thursday[j, i] = is_number(input);
                }
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine("Введiть " + (j + 1) + "П'ятниця : ");
                    string input = Console.ReadLine();
                    friday[j, i] = is_number(input);
                }
                Console.WriteLine();
            }

            double[,] a = new double[5, n];
            for (int i = 0; i < n; i++)
            {
                a[0, i] = Average(monday, i);
            }
            for (int i = 0; i < n; i++)
            {
                a[1, i] = Average(tuesday, i);
            }
            for (int i = 0; i < n; i++)
            {
                a[2, i] = Average(wednesday, i);
            }
            for (int i = 0; i < n; i++)
            {
                a[3, i] = Average(thursday, i);
            }
            for (int i = 0; i < n; i++)
            {
                a[4, i] = Average(friday, i);
            }

            for (int i = 0; i < n; i++)
            {
                Console.WriteLine("Температура\tПонеділок\t\tВівторк\t\tСереда\t\tЧетвер\t\tП'ятниця");
                Console.WriteLine("{0}\t\t{1}, {2}, {3}\t\t\t{4}, {5}, {6}\t\t{7}, {8}, {9}\t\t{10}, {11}, {12}\t\t{13}, {14}, {15}", temperature[i], monday[0, i], monday[1, i], monday[2, i], tuesday[0, i], tuesday[1, i], tuesday[2, i], wednesday[0, i], wednesday[1, i], wednesday[2, i], thursday[0, i], thursday[1, i], thursday[2, i], friday[0, i], friday[1, i], friday[2, i]);
                Console.WriteLine(" два дні з найбільшим перепадом температури повітря:\t{0:F1}\t\t\t{1:F1}\t\t{2:F1}\t\t{3:F1}\t\t{4:F1}", a[0, i], a[1, i], a[2, i], a[3, i], a[4, i]);
                Console.WriteLine();
            }
        }