示例#1
0
 private void TryConnectPSDBase()
 {
     if (!DataConnections.SetPsdDevice((PSDDevice)cmbPsds.SelectedItem))
     {
         MessageBox.Show(Localization.PsdConnectionError);
     }
 }
示例#2
0
 private void TryConnectAndroidBase(string path)
 {
     if (!DataConnections.TrySetPhoneBase(path))
     {
         MessageBox.Show(Localization.CantLoadFileString);
     }
 }
示例#3
0
 private void TryConnectPcBase(string path)
 {
     if (!DataConnections.SetPCBase(path))
     {
         MessageBox.Show(Localization.CantLoadFileString);
     }
 }
示例#4
0
        private void btnCreatePhoneFile_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.ShowDialog();
            if (!DataConnections.TryCreateAndSetPhoneBase(saveFileDialog.FileName))
            {
                MessageBox.Show(Localization.CantLoadFileString);
            }
            UpdateLables();
        }
示例#5
0
        private void btnCreatePhoneFile_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.ShowDialog();
            if (!DataConnections.SetPhoneBase(saveFileDialog.FileName))
            {
                DataConnections.DropPhoneBase();
            }
            RebindAll();
        }
示例#6
0
        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;
            }
        }
示例#7
0
 public PSDForm(DataConnections dataConnections)
 {
     InitializeComponent();
     _connections = dataConnections;
 }
示例#8
0
文件: PSDForm.cs 项目: mihver1/PSD
 public PSDForm(DataConnections dataConnections)
 {
     InitializeComponent();
     _connections = dataConnections;
 }