Beispiel #1
0
        private async void Button_Process_Click(object sender, EventArgs e)
        {
            if (MainRL53.CheckFiles())
            {
                DialogResult result = MessageBox.Show("Apa file sudah benar ?", "Process", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
                if (result.Equals(DialogResult.OK))
                {
                    LoadingState(true);
                    await Task.Run(() => MainRL53.Process());

                    MainRL53.EmptyFilesDictionary();
                    MessageBox.Show("Process Complete!");
                    LoadingState(false);
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("Please complete file first, before processing!");
            }
        }
Beispiel #2
0
 private void RL53_FormClosing(object sender, FormClosingEventArgs e)
 {
     MainRL53.EmptyFilesDictionary();
 }