示例#1
0
        public void GetDatas(string dates)
        {
            string message_to_send = "getbevetelN" + dates;
            string response        = Server_connection.GetInstance().SendMessageToServer(message_to_send, true);

            List <int> napibe = new List <int>();

            if (response == "NoData")
            {
                MessageBox.Show("There were no transactions on these days");
            }
            else if (response != "Error")
            {
                response = response.Remove(response.Length - 1);
                string datesgive = "";
                foreach (var item in response.Split('?'))
                {
                    napibe.Add(Convert.ToInt32(item.Split(';')[1]));
                    datesgive += item.Split(';')[0] + ";";
                }

                datesgive = datesgive.Substring(0, (datesgive.Length - 1));
                SeriesAddN(napibe, datesgive);

                this.Show();
            }
            else
            {
                MessageBox.Show("Something went wrond! Please try again!");
                PickDate pd = new PickDate();
                pd.Show();
            }
        }
示例#2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            PickDate pd = new PickDate();

            pd.Show();
        }