Пример #1
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
         f.RefreshFilenames();
     }
     f.Show();
 }
Пример #2
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
         f.RefreshFilenames();
     }
     f.Show();
 }
Пример #3
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.connection.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }
Пример #4
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.connection.injectManualCommand("M32 " + (currentDirectory.Length > 0?"/":"") + currentDirectory + foldername);
            RefreshFilenames();
        }
Пример #5
0
 public static void Execute()
 {
     if (f == null)
     {
         f = new SDCard();
         Main.conn.eventResponse += f.analyzeEvent;
     }
     f.RefreshFilenames();
     f.Show();
     f.BringToFront();
     f.updateButtons();
 }