private void TryConnectPSDBase() { if (!DataConnections.SetPsdDevice((PSDDevice)cmbPsds.SelectedItem)) { MessageBox.Show(Localization.PsdConnectionError); } }
private void TryConnectAndroidBase(string path) { if (!DataConnections.TrySetPhoneBase(path)) { MessageBox.Show(Localization.CantLoadFileString); } }
private void TryConnectPcBase(string path) { if (!DataConnections.SetPCBase(path)) { MessageBox.Show(Localization.CantLoadFileString); } }
private void btnCreatePhoneFile_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.ShowDialog(); if (!DataConnections.TryCreateAndSetPhoneBase(saveFileDialog.FileName)) { MessageBox.Show(Localization.CantLoadFileString); } UpdateLables(); }
private void btnCreatePhoneFile_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.ShowDialog(); if (!DataConnections.SetPhoneBase(saveFileDialog.FileName)) { DataConnections.DropPhoneBase(); } RebindAll(); }
private void TryConnectPSDBase() { switch (DataConnections.TrySetPsdBase((PSDDevice)cmbPsds.SelectedItem)) { case PSDRepository.SetPsdResult.NotConnected: MessageBox.Show(Localization.PsdConnectionError); break; case PSDRepository.SetPsdResult.WrongPassword: MessageBox.Show(Localization.WrongPasswordPSD); FlushPassword(); break; } }
public PSDForm(DataConnections dataConnections) { InitializeComponent(); _connections = dataConnections; }