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!"); } }
private void RL53_FormClosing(object sender, FormClosingEventArgs e) { MainRL53.EmptyFilesDictionary(); }
private void Button_Hidup_Click(object sender, EventArgs e) { TextBox_Hidup.Text = MainRL53.OpenAndSave("Hidup"); }
private void Button_Laporan_Click(object sender, EventArgs e) { TextBox_Laporan.Text = MainRL53.OpenAndSave("Laporan"); }
private void Button_10Besar_Click(object sender, EventArgs e) { TextBox_10Besar.Text = MainRL53.OpenAndSave("10Besar"); }