private void button_Save_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter = "Wulinshu Raymonf Dump (*.json)|*.json";
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                WulinshuRaymonfAPI.Write(saveFileDialog.FileName);
            }
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            Text = Version.ApplicationTitle;

            FilenameDatabase.Load();
            WulinshuRaymonfAPI.Read();
            DescriptionDatabase.GenerateDatabase();

            Helper.CheckUpdates();
        }
        private void button_Load_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "Wulinshu Raymonf Dump (*.json)|*.json";
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                WulinshuRaymonfAPI.Read(openFileDialog.FileName);
                wulinshuRaymonfDataTable1.SetData(WulinshuRaymonfAPI.Entries);
            }
        }
        private void button_Fetch_Click(object sender, EventArgs e)
        {
            WulinshuRaymonfAPI api           = new WulinshuRaymonfAPI();
            LoadingDialog      loadingDialog = new LoadingDialog();

            loadingDialog.SetData(api);
            Thread thread = new Thread(delegate() {
                api.FetchData("both");
            });

            loadingDialog.ShowDialog(thread);
            WulinshuRaymonfAPI.Write();
            wulinshuRaymonfDataTable1.SetData(WulinshuRaymonfAPI.Entries);
        }