Пример #1
0
        public void UpdateTextShow()
        {
            var count = MemoListManager.GetCount();

            _scrollBar.MaxValue = count - 1;
            SetTextShow(_scrollBar.Value);
        }
Пример #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();
        }
Пример #3
0
 public static void AddMemo(string text)
 {
     MemoListManager.AddMemo(text);
     UpdateMemoView();
 }
Пример #4
0
 public static void Save(string magicListPath, string goodsListPath, string memoListPath)
 {
     MagicListManager.SaveList(magicListPath);
     GoodsListManager.SaveList(goodsListPath);
     MemoListManager.SaveList(memoListPath);
 }
Пример #5
0
 public static void Load(string magicListPath, string goodsListPath, string memoListPath)
 {
     MagicListManager.LoadList(magicListPath);
     GoodsListManager.LoadList(goodsListPath);
     MemoListManager.LoadList(memoListPath);
 }