Exemple #1
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }
Exemple #2
0
        private void toolNewFolder_Click(object sender, EventArgs e)
        {
            string foldername = StringInput.GetString(Trans.T("L_CREATE_FOLDER"), Trans.T("L_CREATE_FOLDER_INFO")).ToLower();

            if (foldername.Length == 0)
            {
                return;
            }
            int p = foldername.IndexOf('.');

            if (!SDCard.validate83Filename(foldername))
            {
                MessageBox.Show(Trans.T("L_NOT_VALID_83_FILENAME"), Trans.T("L_ERROR"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            Main.conn.injectManualCommand("M32 " + (currentDirectory.Length > 0?"/":"") + currentDirectory + foldername);
            RefreshFilenames();
        }
Exemple #3
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }