Esempio n. 1
0
        //Открывание папки или файла
        private void Explorer_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (Explorer.SelectedItems.Count < 1)
            {
                return;
            }
            ListViewItem item = Explorer.SelectedItems[0];

            if (item.SubItems[1].Text == "Folder")
            {
                if (Locate.Length > 3)
                {
                    Locate += "\\";
                }
                Locate += item.Text;
                ReadDir();
            }
            if (item.SubItems[1].Text == "SCR")
            {
                FormView view = new FormView(Locate + "\\" + item.Text + ".scr");
                if (view.ShowDialog() == DialogResult.Abort)
                {
                    ReadDir();
                }
            }
            if (item.SubItems[1].Text == "IMG")
            {
                FormView view = new FormView(Locate + "\\" + item.Text + ".img");
                if (view.ShowDialog() == DialogResult.Abort)
                {
                    ReadDir();
                }
            }
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Palette.Init();
     if (args.Count() > 0)
     {
         FormView view = new FormView(args[0]);
         view.ShowDialog();
         return;
     }
     Application.Run(new FormMain());
 }