Exemplo n.º 1
0
        public void UpdateTextShow()
        {
            var count = MemoListManager.GetCount();

            _scrollBar.MaxValue = count - 1;
            SetTextShow(_scrollBar.Value);
        }
Exemplo n.º 2
0
        public void SetTextShow(int indexBegin)
        {
            var text = new StringBuilder();

            for (var i = 0; i < 10; i++)
            {
                text.Append(MemoListManager.GetString(indexBegin + i) + "\n");
            }
            _text.Text = text.ToString();
        }
Exemplo n.º 3
0
 public static void AddMemo(string text)
 {
     MemoListManager.AddMemo(text);
     UpdateMemoView();
 }
Exemplo n.º 4
0
 public static void Save(string magicListPath, string goodsListPath, string memoListPath)
 {
     MagicListManager.SaveList(magicListPath);
     GoodsListManager.SaveList(goodsListPath);
     MemoListManager.SaveList(memoListPath);
 }
Exemplo n.º 5
0
 public static void Load(string magicListPath, string goodsListPath, string memoListPath)
 {
     MagicListManager.LoadList(magicListPath);
     GoodsListManager.LoadList(goodsListPath);
     MemoListManager.LoadList(memoListPath);
 }