//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// #region Function Controlling private async void Exec(string type) { switch (type) { case "File": if (F_picker_status_cover.Text != "No Image" && F_btn_save_passwd.IsEnabled == false && F_picker_status_file.Text != "No Image") { if (await PopupDialog.ShowConfirm(Status.Confirm, Detail.Embed_File, Confirm.isExecute, Icon.Flat) == true) { Process.Embed.Starting(type); } } else { await PopupDialog.Show(Status.Err, Detail.Embed_File, Err.Input_isNull, Icon.Sad); } break; case "Message": if (MSG_picker_status_cover.Text != "No Image" && MSG_btn_save_passwd.IsEnabled == false && MSG_btn_save_message.IsEnabled == false) { if (await PopupDialog.ShowConfirm(Status.Confirm, Detail.Embed_Message, Confirm.isExecute, Icon.Flat) == true) { Process.Embed.Starting(type); } } else { await PopupDialog.Show(Status.Err, Detail.Embed_Message, Err.Input_isNull, Icon.Sad); } break; } }
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// #region Function Controlling private async void Exec(string type) { switch (type) { case "STEG": if (STEG_picker_status_stego.Text != "No Image" && STEG_btn_save_passwd.IsEnabled == false) { if (await PopupDialog.ShowConfirm(Status.Confirm, Detail.Extract_FileMessage, Confirm.isExecute, Icon.Flat) == true) { Process.Extract.Starting(type, STEG_textbox_passwd.Password); } } else { await PopupDialog.Show(Status.Err, Detail.Extract_FileMessage, Err.Input_isNull, Icon.Sad); } break; case "CHK": if (CHK_picker_status_stego.Text != "No Image") { if (await PopupDialog.ShowConfirm(Status.Confirm, Detail.Extract_Check, Confirm.isExecute, Icon.Flat) == true) { Process.Extract.Starting(type, String.Empty); } } else { await PopupDialog.Show(Status.Err, Detail.Extract_Check, Err.Input_isNull, Icon.Sad); } break; } }