Esempio n. 1
0
        private void Clippy_Load(object sender, EventArgs e)
        {
            Height     = 27;
            Location   = new Point((Screen.PrimaryScreen.WorkingArea.Width / 2) - Width / 2, 0);
            MouseDown += Clippy_MouseDown;
            List <List <ItemInfo> > myList = ClippyIO.Data_Load(@"..\..\savefiles\workstuff2.csv");

            foreach (List <ItemInfo> sublist in myList)
            {
                foreach (ItemInfo thing in sublist)
                {
                    items.Add(thing);
                }
            }

            Populate_Combo();
            Button_namer("ButtonOne", ButtonOne);
            Button_namer("ButtonTwo", ButtonTwo);
            Button_namer("ButtonThree", ButtonThree);
            Button_namer("ButtonFour", ButtonFour);
            Button_namer("ButtonFive", ButtonFive);
            Button_namer("ButtonSix", ButtonSix);
            Button_namer("ButtonSeven", ButtonSeven);
            Button_namer("ButtonEight", ButtonEight);
            Button_namer("ButtonNine", ButtonNine);
            Button_namer("ButtonTen", ButtonTen);
        }
Esempio n. 2
0
 private void BtnClose_Click(object sender, EventArgs e)
 {
     ClippyIO.Data_Save(items, path + "workstuff2.csv");
     this.Close();
 }